GLaDOS/proposal/help.py

10 lines
220 B
Python

# Import the relevant bot
from main import my_bot
# Register a command to display help
# This uses the internal `help` method of class Bot
@my_bot.command("!help")
def help(msg):
my_bot.send(msg.to, my_bot.help())