mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 20:00:00 -05:00
Added .version command and display discord.py version in version info, v0.9.1
This commit is contained in:
parent
c2c54aff45
commit
a166f5c540
9
bot.py
9
bot.py
@ -23,7 +23,7 @@ from secret import email,pwd
|
|||||||
name = "Maki"
|
name = "Maki"
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.9.0"
|
version = "v0.9.1"
|
||||||
|
|
||||||
# text shown by .help command
|
# text shown by .help command
|
||||||
helptext = """I am a bot written in Python by MrDetonia
|
helptext = """I am a bot written in Python by MrDetonia
|
||||||
@ -31,7 +31,8 @@ helptext = """I am a bot written in Python by MrDetonia
|
|||||||
My commands are:
|
My commands are:
|
||||||
```
|
```
|
||||||
.help - displays this text
|
.help - displays this text
|
||||||
.bots - prints basic info
|
.bots - prints bot info
|
||||||
|
.version - prints bot info
|
||||||
.upskirt - show a link to my source
|
.upskirt - show a link to my source
|
||||||
.whoami - displays your user info
|
.whoami - displays your user info
|
||||||
.whois <user> - displays another user's info
|
.whois <user> - displays another user's info
|
||||||
@ -167,9 +168,9 @@ def on_message(message):
|
|||||||
json.dump(tells, fp)
|
json.dump(tells, fp)
|
||||||
|
|
||||||
# parse messages for commands
|
# parse messages for commands
|
||||||
if message.content.startswith('.bots'):
|
if message.content.startswith('.bots') or message.content.startswith('.version'):
|
||||||
# print bot info
|
# print bot info
|
||||||
yield from client.send_message(message.channel, 'I am ' + name + ', a Discord bot by MrDetonia | ' + version + ' | Python 3.4 with discord.py')
|
yield from client.send_message(message.channel, 'I am ' + name + ', a Discord bot by MrDetonia | ' + version + ' | Python 3.4 | discord.py ' + discord.__version__)
|
||||||
|
|
||||||
elif message.content.startswith('.help'):
|
elif message.content.startswith('.help'):
|
||||||
# print command list
|
# print command list
|
||||||
|
Loading…
Reference in New Issue
Block a user