|
|
4 vuotta sitten | |
|---|---|---|
| cogs | 4 vuotta sitten | |
| .gitignore | 4 vuotta sitten | |
| README.md | 4 vuotta sitten | |
| config.py.sample | 4 vuotta sitten | |
| patterns.md | 4 vuotta sitten | |
| rbutils.py | 4 vuotta sitten | |
| rocketbot.py | 4 vuotta sitten | |
| rscollections.py | 4 vuotta sitten | |
| storage.py | 4 vuotta sitten |
Experimental Discord bot written in Python.
$rb_help.$rb_help command (don’t prefix the command name you want help on)$rb_help group$rb_help group command$rb_helloCurrently the bot is just run in the console locally. It blocks until Ctrl+C is pressed. Before running, you must copy config.py.sample to config.py and fill in the “client_token” value. To get a token, visit https://discord.com/developers/applications and create an application. Then create a bot for the application and enable the “server members intent”. Click the “copy” button in the “token” section near the top and paste this value into config.py’s “client_token” attribute.
Create a “config” subdirectory under your source folder. This is where guild-specific configuration is written as JSON files.
To start, run python3 rocketbot.py. Then visit https://discord.com/oauth2/authorize?client_id=[application_id]&scope=bot&permissions=395204357318, where [application_id] is the “application id” value on your app configuration “general information” page. Once invited, test if the bot is working by typing $rb_hello in your Discord server.