Skip to content

EduardoFAFernandes/ConfraBotDiscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConfraBotDiscord

Maintenance made-with-python

This is a small bot for a private discord server. The main codebase is written in Python, and the bot is currently hosted in Heroku with auto deployment from the main branch. To interact with discord discord.py is used, you can access its documentation at discordpy.readthedocs.io.

How to install and run

  • Create your bot at the Discord Developer Portal and get the bot token
  • Add the token as an environment variable :
    • Linux export DISCORD_TOKEN=your-token-here
    • Windows ¯\_(ツ)_/¯ (good luck...)
  • Install python3
  • Clone this github project git clone https://github.com/EduardoFAFernandes/ConfraBotDiscord.git or just download the zip and extract it
  • Install dependencies with the following command: pip install -r requirements.txt
  • Start the bot using python main.py

How to add commands

The bot is using the Cog extension from the discord package to group similar commands if you have just a random command you can use the utils.py cog.

See this Cog tutorial in the documentation on how to add commands

When you finish your cog you will need to register it in the main file.

bot_cogs = [
    greetings.Greetings,
    utils.Utils
    #add your cog here
]

About

This is a small bot for a private discord server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published