mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-12 13:01:30 +01:00
Bot Update
This commit is contained in:
parent
89fdfe5930
commit
5c0fcf96b3
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ async def on_ready():
|
||||||
async def register(ctx):
|
async def register(ctx):
|
||||||
if not ctx.guild.id in allowedDiscordServer:
|
if not ctx.guild.id in allowedDiscordServer:
|
||||||
return
|
return
|
||||||
name = ctx.author.name
|
name = str(ctx.author)
|
||||||
token = md5(str(ctx.author.id).encode()).hexdigest()
|
token = md5(str(ctx.author.id).encode()).hexdigest()
|
||||||
user = bot.get_user(ctx.author.id)
|
user = bot.get_user(ctx.author.id)
|
||||||
|
|
||||||
|
@ -30,6 +30,6 @@ async def register(ctx):
|
||||||
db.commit()
|
db.commit()
|
||||||
db.close()
|
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
|
Loading…
Reference in a new issue