8000 GitHub - kennethbored/charon: Concierge at The Continental
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kennethbored/charon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Charon

Concierge at The Continental

Charon is a template for a role assignment Discord bot. When a user messages !iam <role name> or !iamnot <role name> in any channel, the bot tries to assign the appropriate role. This is a template because the roles.py file is meant to be modified to meet the needs of any Discord server.

Dependencies

  • Python3 should be installed on your system. Grab the latest at https://www.python.org/downloads/
  • Pip is used to manage our modules.
    If you're on Windows, follow these instructions: https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip
    If you're in a Linux environment, use your OS package manager. Ex: sudo apt-get update && apt-get install python3-pip
  • We use the .env file to store the secret Discord Token.
    pip install python-dotenv
  • And finally, we use Discord.py the library that wraps the Discord API
    pip install discord.py

Running the Bot

Set your Discord token. You should replace the ###TOKEN HERE### in .env with the token for your bot at Discord's Developer page.

Add/remove/modify the roles in roles.py. You should create roles you'd like the bot to manage with matching names between your Discord server and roles.py.

Open your command line to the folder containing this project.
Windows: py charon.py
Linux: python3 charon.py
This should start the process that runs the bot.

Example Discord commands

.iam valorant assigns yourself the Valorant role
.iamnot valorant removes yourself from the Valorant role
.whois valorant lists the users that have the Valorant role
.games lists the roles that the Discord server supports

About

Concierge at The Continental

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0