Bladeren bron

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

master
Zac Herd 8 jaren geleden
bovenliggende
commit
df230bcd8e
1 gewijzigde bestanden met toevoegingen van 3 en 11 verwijderingen
  1. +3
    -11
      bot.py

+ 3
- 11
bot.py Bestand weergeven

@@ -18,7 +18,7 @@ import logging
import markov

# file in this directory called "secret.py" should contain these variables
from secret import email,pwd
from secret import token


# CONFIGURATION
@@ -27,7 +27,7 @@ from secret import email,pwd
name = "Maki"

# bot version
version = "v0.12.2"
version = "v0.13.0"

# text shown by .help command
helptext = """I am a bot written in Python by MrDetonia
@@ -349,15 +349,7 @@ def on_message(message):


# Run the client
while run:
try:
print('INFO: starting client')
client.run(email, pwd)
except:
print('ERROR: caught some exception')
continue
else:
break
client.run(token)

# finish execution
exit(0)

Laden…
Annuleren
Opslaan