diff --git a/help/help.md b/help/help.md index 877e7d4..b92fc7b 100644 --- a/help/help.md +++ b/help/help.md @@ -1 +1,10 @@ -`General` \ No newline at end of file + +This bot is an all-purpose discord butler that's able to be customized to suit specific server needs. +Below is a list with currently implemented features and if available, commands to get more information. + +`# Diceroller` +Standard diceroller which works with the 1dX notation. See `!help roll` for more information on syntax and options. + +`# GIF embeds` +For servers that want to disable embeds for any reason (triggers, unwanted imagery, etc), this function will make sure that (for specific channels configured in the config) gif URLs are picked up by the bot and embedded. This whole functionality is used for a problem that shouldn't be there in the first place, but because GIFs are linked to the Embed setting in Discord, for some servers this might pose a solution. + diff --git a/help/help_gifbot.md b/help/help_gifbot.md deleted file mode 100644 index cd962f2..0000000 --- a/help/help_gifbot.md +++ /dev/null @@ -1 +0,0 @@ -`Test` \ No newline at end of file diff --git a/help/help_roll.md b/help/help_roll.md index 1821d99..996400f 100644 --- a/help/help_roll.md +++ b/help/help_roll.md @@ -1,4 +1,3 @@ -`!roll` All forms of diceroll notations should work properly, including adding or detracting dice with each other, adding or detracting numbers from dicerolls, or even adding or detracting sums within brackets. Below are some examples. ``` diff --git a/jeeves.py b/jeeves.py index e6988ec..ad84239 100755 --- a/jeeves.py +++ b/jeeves.py @@ -31,9 +31,9 @@ async def on_message(message): if message.content.startswith('!help'): parameters = message.content.split(' ', 1) if len(parameters) == 2: - msg = format(bothelp.help(parameters[1])) + msg = bothelp.help(parameters[1]) else: - msg = format(bothelp.help()) + msg = bothelp.help() await message.author.send(msg) # giphy and tenor both have different structures to their links if message.content.startswith('https://tenor.com/'): @@ -83,6 +83,7 @@ async def on_message(message): async def on_ready(): print('### Active with id %s as %s ###' % (client.user.id,client.user.name) ) activity = discord.Activity(name='Listening to !help', type=discord.ActivityType.listening) + await client.change_presence(activity=activity) if __name__ == '__main__': client.run(env.TOKEN) diff --git a/jeevesbot/bothelp.py b/jeevesbot/bothelp.py index 5a347e0..55d288b 100644 --- a/jeevesbot/bothelp.py +++ b/jeevesbot/bothelp.py @@ -1,20 +1,19 @@ -keywords = ['gifbot'] +keywords = ['roll'] def help(keyword=''): """Filter for general help or specific keyword help.""" if not keyword: file = open('help/help.md') contents = file.read() - return (contents) + return format((contents)) if keyword[0]: keyword = str.lower(keyword) if keyword in keywords: document = 'help/help_' + keyword + '.md' - print(document) file = open(document, 'r') contents = file.read() - return (contents) + return format((contents)) else: file = open('help/help.md') contents = file.read() - return (contents) \ No newline at end of file + return format((contents)) \ No newline at end of file