mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 11:54:16 -05:00
v0.18.1 better whois/whoami output
This commit is contained in:
parent
899b50b601
commit
27ce37972f
6
bot.py
6
bot.py
@ -31,7 +31,7 @@ from secret import token, lfmkey
|
|||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.18.0"
|
version = "v0.18.1"
|
||||||
|
|
||||||
# text shown by .help command
|
# text shown by .help command
|
||||||
helptext = """I am a Discord bot written in Python
|
helptext = """I am a Discord bot written in Python
|
||||||
@ -188,7 +188,7 @@ def on_message(message):
|
|||||||
|
|
||||||
elif message.content.startswith('.whoami'):
|
elif message.content.startswith('.whoami'):
|
||||||
# show info about user
|
# show info about user
|
||||||
response = 'User: ' + message.author.name + ' ID: ' + message.author.id + ' Discriminator: ' + message.author.discriminator + '\nAccount Created: ' + strfromdt(message.author.created_at)
|
response = 'User: `' + message.author.name + '` ID: `' + message.author.id + '` Discriminator: `' + message.author.discriminator + '`\nAccount Created: `' + strfromdt(message.author.created_at) + '`'
|
||||||
|
|
||||||
elif message.content.startswith('.whois '):
|
elif message.content.startswith('.whois '):
|
||||||
# show info about another user
|
# show info about another user
|
||||||
@ -197,7 +197,7 @@ def on_message(message):
|
|||||||
if user == None:
|
if user == None:
|
||||||
response = 'I can\'t find ' + tmp
|
response = 'I can\'t find ' + tmp
|
||||||
else:
|
else:
|
||||||
response = 'User: ' + user.name + ' ID: ' + user.id + ' Discriminator: ' + user.discriminator + '\nAccount Created: ' + strfromdt(user.created_at)
|
response = 'User: `' + user.name + '` ID: `' + user.id + '` Discriminator: `' + user.discriminator + '`\nAccount Created: `' + strfromdt(user.created_at) + '`'
|
||||||
|
|
||||||
elif message.content.startswith('.seen '):
|
elif message.content.startswith('.seen '):
|
||||||
# print when user was last seen
|
# print when user was last seen
|
||||||
|
Loading…
Reference in New Issue
Block a user