Commit Graph

8 Commits

Author SHA1 Message Date
Bibin Muttappillil 2216b70e34 Feat: Add emoji confirming/error reactions
If the commands throws an error then the bot marks the command message with a cross emoji reaction otherwise it adds a check mark.
(Also resolved some overshadowing warning of extension)
2021-01-04 02:32:45 +01:00
Bibin Muttappillil 823238ee37 Feat: Add setup command with check and error
The `setup` command creates a game instance for a channel.
It also has a check to see if one is already setup and a error handler to deal in that case.
I don't think that the check functions can be methods so the 'hack' is to use `ctx.cog` instead of `self` to get the cog instance.
There is also a function to check for the inverted condition preventing double defining every check.
2021-01-04 01:28:07 +01:00
Bibin Muttappillil 4714fe5127 Feat: Add constructor for basic_game Cog
Initializes bot like a regular Cog
Initializes an empty session dictionary
Initializes the class of the session with a possible default value
Changes the group command name to the Cog's name to avoid name clashes in commands
2021-01-04 01:14:14 +01:00
Bibin Muttappillil 1d8ed8f2ea Initial: add basic_game module 2021-01-03 01:56:30 +01:00
Bibin Muttappillil 841a6586fe feat: extension loading commands are now hidden 2021-01-02 19:39:25 +01:00
Bibin Muttappillil b8b8484466 Style: move commands up
Commands should be declared before loading further extensions
2020-12-27 22:47:10 +01:00
Bibin Muttappillil 91f96ce246 Initial: Add load commands and developer cog
The commands `load`, `unload`, `reload` were added in the main `bot.py` file. With these one can dynamically load extensions like discord cogs.
The cog `developer` has some test commands and listeners. It also has a command to shut down the bot (and therefore the python program).
2020-12-27 20:58:18 +01:00
Bibin Muttappillil 49a407a29d Initial: Add basic main discord.py bot file
This only connects to the discord application and does nothing yet.
Access the token through a hidden environment file.
Set the command prefix to '$b '.
2020-12-27 19:00:50 +01:00