Skip to content

A bot that allows only links to be posted in channels, plus some other cool commands that utilize public APIs.

Notifications You must be signed in to change notification settings

Kabiirk/discord_bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot Documentation

A bot that allows only links to be posted in channels. Whenever someone posts a non-link message, this bot deletes the message.
Has additional features which utilize some of the free Public APIs listed @ https://github.com/public-apis/public-apis

Contents

  • List of Available commands
  • Try Running it yourself !

List of available commands

I added some additional features to this bot as well ! Type the following commands in the chat to get a response from the bot !

  • $greet - Greets the user and redirects to this repo. greet response

  • $inspire - The bot sends randomly retreived Inspirational quotes fetched from here. inspire response

  • $xkcd number - The bot sends randomly retreived XKCD Comic strips fetched from here. xkcd response

  • $joke - The bot sends randomly retreived jokes fetched from here. joke response

  • $BardofAvon <some text> - The bot responds with Shakespearean translation of <sometext> from here. Bard's response


Try Running it yourself

  • Install requirements This can be done by navigating to the directory having requirments.txt and running the following in the terminal:

    pip install -r requirements.txt
    
  • Create your Discord own bot and generate it's Token

  • Run the project

    • In the first_bot.py file, put your copied token in the client.run() function at the end as a string.
    • All that's left to do now is run the Project ! You can do so by :
python first_bot.py

or

python3 first_bot.py

The script is running successfully and your bot is functional if you see the following in the terminal :

The bot has started.
<BOT username>#number

All Done ✨

About

A bot that allows only links to be posted in channels, plus some other cool commands that utilize public APIs.

Topics

Resources

Stars

Watchers

Forks

Languages