Experimental Discord bot written in Python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Rocketsoup 192da063ec Llllllots of cleanup after switching to VSCode 4 年前
cogs Llllllots of cleanup after switching to VSCode 4 年前
.gitignore cog_refactor (#1) 4 年前
.pylintrc Llllllots of cleanup after switching to VSCode 4 年前
README.md Updating readme and main source 4 年前
config.py.sample JoinRaidCog refactored. Cleanup to all cogs. 4 年前
patterns.md Adding deletemessages command 4 年前
rbutils.py Llllllots of cleanup after switching to VSCode 4 年前
rocketbot.py Llllllots of cleanup after switching to VSCode 4 年前
rscollections.py Llllllots of cleanup after switching to VSCode 4 年前
storage.py Llllllots of cleanup after switching to VSCode 4 年前

README.md

python-app-rocketbot

Experimental Discord bot written in Python.

Usage

  • To see the list of commands, type $rb_help.
  • To get help on a specific command, type $rb_help command (don’t prefix the command name you want help on)
  • To get help on a command group, type $rb_help group
  • To get help on a subcommand in a group, type $rb_help group command
  • To see if the bot is alive, type $rb_hello

Setup

Currently 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.