Merge branch 'roles' into 'master'
Send users a PM with their roles See merge request ldooks/dragon-bot!39
This commit is contained in:
commit
204b14cc1e
@ -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,
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user