dragon-bot/app/help_methods.py
2017-08-08 16:40:25 -06:00

48 lines
1.8 KiB
Python

def get_help_message(method):
supported_methods = {
'decide': [
'Dragon-bot will help make the tough decisions for you',
'\n\n!decide option 1 or option 2.\n\nIf thre is only',
'one option, it will give you a yes or no'
],
'deine': [
'Returns a definiton of a word from urban dictionary',
'\n\nUsage: !define loli'
],
'docker': [
'Two supported actions: logs and restart\n\nlogs: Shows you the',
'last X number of lines from the minecraft server. If no number',
'is specified, defaults to 10.\n\nrestart: will restart the min',
'ecraft server if something is fucky'
],
'excuse': [
'Generates a random excuse you can give your boss'],
'help': [
'Prints out a list of everything dragon-bot can do'
],
'lewd': [
'Returns a URL for a lewd image.',
'Can only be used in NSFW channels'
],
'purge': [
'Deletes the last 100 messages you sent from the channel you',
'typed purge in'
],
'triggered': [
'REEEEEEEEEEEEEEEEEE'],
'wallpaper': [
'Returns the URL for a 4k wallpaper. You can enter',
'a search term as well, for example, !wallpaper, or',
', !wallpaper flowers'
]
}
if method == 'show_all':
count = len(supported_methods)
keys = ', '.join(supported_methods.keys())
message = "I currently have `{}` methods,\n\n```{}```\n\nYou can get in formation about a specific method by typing !help <method>".format(count, keys)
else:
message = ' '.join(supported_methods[method])
return message