diff --git a/kdb-bot/src/modules/base/base_module.py b/kdb-bot/src/modules/base/base_module.py index 1e2412d1..4c4c5e5f 100644 --- a/kdb-bot/src/modules/base/base_module.py +++ b/kdb-bot/src/modules/base/base_module.py @@ -10,6 +10,7 @@ from modules.base.command.afk_command import AFKCommand from modules.base.command.game_server_group import GameServerGroup from modules.base.command.help_command import HelpCommand from modules.base.command.info_command import InfoCommand +from modules.base.command.make_coffee_command import MakeCoffeeCommand from modules.base.command.mass_move_command import MassMoveCommand from modules.base.command.ping_command import PingCommand from modules.base.command.presence_command import PresenceCommand @@ -67,6 +68,7 @@ class BaseModule(ModuleABC): self._dc.add_command(MassMoveCommand) self._dc.add_command(PingCommand) self._dc.add_command(PresenceCommand) + self._dc.add_command(MakeCoffeeCommand) self._dc.add_command(PurgeCommand) self._dc.add_command(UserGroup) diff --git a/kdb-bot/src/modules/base/command/make_coffee_command.py b/kdb-bot/src/modules/base/command/make_coffee_command.py new file mode 100644 index 00000000..d1c96de4 --- /dev/null +++ b/kdb-bot/src/modules/base/command/make_coffee_command.py @@ -0,0 +1,17 @@ +from cpl_core.logging import LoggerABC +from cpl_discord.command import DiscordCommandABC +from cpl_discord.service import DiscordBotServiceABC +from discord.ext import commands +from discord.ext.commands import Context + + +class MakeCoffeeCommand(DiscordCommandABC): + def __init__(self, logger: LoggerABC, bot: DiscordBotServiceABC): + DiscordCommandABC.__init__(self) + + self._logger = logger + self._bot = bot + + @commands.hybrid_command(name="make-coffee") + async def make_coffee(self, ctx: Context): + await ctx.send("https://media.giphy.com/media/M4ecx9P2jI4tq/giphy.gif")