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

Updated to use new OAuth2 method for connecting. Requires latest discord.py and permission from server owner, v0.13.0

This commit is contained in:
Zac Herd 2016-04-24 21:15:40 +01:00
parent 74fa9d187a
commit df230bcd8e

14
bot.py
View File

@ -18,7 +18,7 @@ import logging
import markov import markov
# file in this directory called "secret.py" should contain these variables # file in this directory called "secret.py" should contain these variables
from secret import email,pwd from secret import token
# CONFIGURATION # CONFIGURATION
@ -27,7 +27,7 @@ from secret import email,pwd
name = "Maki" name = "Maki"
# bot version # bot version
version = "v0.12.2" version = "v0.13.0"
# 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
@ -349,15 +349,7 @@ def on_message(message):
# Run the client # Run the client
while run: client.run(token)
try:
print('INFO: starting client')
client.run(email, pwd)
except:
print('ERROR: caught some exception')
continue
else:
break
# finish execution # finish execution
exit(0) exit(0)