diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 325a9caa..8a6ec695 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -132,6 +132,16 @@ async def on_message(message): return await client.purge_from(message.channel, limit=num, check=is_me) + if message.content.startswith('!roles'): + await client.send_message( + message.channel, + "ok {}. Check your PMs".format(message.author.mention) + ) + await client.send_message( + message.author, + "```{}```".format(' '.join(list(map(lambda x: x.name, message.author.roles)))) + ) + if message.content.startswith('!wallpaper'): await client.send_message( message.channel, diff --git a/app/help_methods.py b/app/help_methods.py index 17b81cec..3356e357 100644 --- a/app/help_methods.py +++ b/app/help_methods.py @@ -43,6 +43,9 @@ def get_help_message(method): 'By default, will delete your last 20 messages. You can override this', ' with your own number. \nUsage: !purge or !purge 15' ], + 'roles': [ + 'Dragon bot will PM you a message with all the roles you have on the server' + ], 'wallpaper': [ 'Returns the URL for a 4k wallpaper. You can enter', 'a search term as well. Supports multiple search terms as well',