1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-22 11:54:16 -05:00

v0.16.6 use application_info() for name and author

This commit is contained in:
Zac Herd 2016-10-12 11:17:39 +00:00
parent 4a355a43a1
commit d78eb48726

10
bot.py
View File

@ -29,14 +29,11 @@ from secret import token
# CONFIGURATION # CONFIGURATION
# reported bot name
name = "Maki"
# bot version # bot version
version = "v0.16.5" version = "v0.16.6"
# text shown by .help command # text shown by .help command
helptext = """I am a bot written in Python by MrDetonia helptext = """I am a Discord bot written in Python
My commands are: My commands are:
``` ```
@ -122,7 +119,8 @@ def on_message(message):
if message.content.startswith('.info'): if message.content.startswith('.info'):
# print bot info # print bot info
pyver = str(sys.version_info[0]) + '.' + str(sys.version_info[1]) + '.' + str(sys.version_info[2]) pyver = str(sys.version_info[0]) + '.' + str(sys.version_info[1]) + '.' + str(sys.version_info[2])
response = 'I am ' + name + ', a Discord bot by MrDetonia | ' + version + ' | Python ' + pyver + ' | discord.py ' + discord.__version__ appinfo = yield from client.application_info()
response = 'I am ' + appinfo.name + ', a Discord bot by ' + appinfo.owner.name + ' | ' + version + ' | Python ' + pyver + ' | discord.py ' + discord.__version__
elif message.content.startswith('.help'): elif message.content.startswith('.help'):
# print command list # print command list