Initial commit: Miku Discord Bot
This commit is contained in:
39
bot/command_router.py
Normal file
39
bot/command_router.py
Normal file
@@ -0,0 +1,39 @@
|
||||
from commands.actions import (
|
||||
force_sleep,
|
||||
wake_up,
|
||||
set_mood,
|
||||
reset_mood,
|
||||
check_mood,
|
||||
calm_miku,
|
||||
reset_conversation,
|
||||
send_bedtime_now
|
||||
)
|
||||
import globals
|
||||
|
||||
async def handle_command(message, command):
|
||||
"""Handle bot commands"""
|
||||
|
||||
if command == "!mood":
|
||||
# Return current DM mood
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
elif command == "!help":
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
elif command == "!status":
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
elif command == "!info":
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
elif command == "!version":
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
elif command == "!ping":
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
elif command == "!uptime":
|
||||
return True, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
|
||||
else:
|
||||
return False, globals.DM_MOOD, globals.DM_MOOD_DESCRIPTION, None, False
|
||||
Reference in New Issue
Block a user