1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-25 20:47:57 -05:00

Maki now doesn't respond to private messages, v0.9.3

This commit is contained in:
Zac Herd 2016-04-02 13:31:28 +01:00
parent d778360224
commit 623cf16749

6
bot.py
View File

@ -23,7 +23,7 @@ from secret import email,pwd
name = "Maki"
# bot version
version = "v0.9.2"
version = "v0.9.3"
# text shown by .help command
helptext = """I am a bot written in Python by MrDetonia
@ -153,8 +153,8 @@ def on_message(message):
with open('users.json', 'w') as fp:
json.dump(users, fp)
# do not parse own messages
if message.author != client.user:
# do not parse own messages or private messages
if message.author != client.user and type(message.channel) is not discord.PrivateChannel:
# send any messages we have for author:
if message.author.name in tells: