Added coffee command #1.1.0.rc4
This commit is contained in:
parent
352b44be0f
commit
6869c5a671
@ -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)
|
||||
|
17
kdb-bot/src/modules/base/command/make_coffee_command.py
Normal file
17
kdb-bot/src/modules/base/command/make_coffee_command.py
Normal file
@ -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")
|
Loading…
Reference in New Issue
Block a user