Discord bot for/by DragonScript Coding Club
Everyone that's a part of the DragonScript Coding Club can modify this bot- and add whatever they please!
-
Try adding a new command. Edit bot.py. Look for the "rawr" command to use as a reference:
@bot.command() sync def rawr(ctx): await ctx.send("RAWR!!! :dragon_face:")
This automatically creates a new command !rawr
E.g. if you add something like:
@bot.command() async def hello_world(ctx): await ctx.send("hello_world")
... that will automatically create a new command !hello_world. Of course I'm sure you can be more creative than that.
After you save your changes into github, the bot automatically updates itself with the new code within 1-2 minutes.
-
Make your own Personality Module. Personality Modules contain code that you can load and unload from the bot using !load and !unload.
Personality Modules are stored in files that start with ext_. E.g. ext_aaron.py. To load this module you would call !load aaron.
To create your Personality Module, make a new file starting with ext_. E.g. ext_chris.py. In this case, you would call !load chris to activate it.
The bot updates/rebuilds after a new change in the repo- building takes up to at least a minute. Be patient when testing new commands/features in the discord.
Hop on into the DragonScript Coding Club discord and say hi! https://discord.gg/5nuEXxK
The logs can be accessed here: http://secretsciencelab.com/dragonbotlog.html
Python, Discord API, Google Firestore, Flask, Heroku, Git