5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-09-25 02:38:51 +02:00

Bot Update

This commit is contained in:
Timo Ley 2020-06-26 21:13:22 +02:00
parent 89fdfe5930
commit 5c0fcf96b3

View file

@ -18,7 +18,7 @@ async def on_ready():
async def register(ctx):
if not ctx.guild.id in allowedDiscordServer:
return
name = ctx.author.name
name = str(ctx.author)
token = md5(str(ctx.author.id).encode()).hexdigest()
user = bot.get_user(ctx.author.id)
@ -30,6 +30,6 @@ async def register(ctx):
db.commit()
db.close()
await user.send("Your Token for Jensmemes is " + token)
await user.send("Your Token for Jensmemes is " + token + "\n You can now use https://jensmemes.tilera.xyz/ !")
bot.run(token, bot=botAccount)#start the bot with the options in config.py
bot.run(token, bot=botAccount)#start the bot with the options in config.py