Fixed some issues

This commit is contained in:
2020-11-10 19:01:03 +01:00
parent 86a8ce45e3
commit b1540e1f09
3 changed files with 48 additions and 38 deletions

View File

@@ -62,6 +62,14 @@ class PlayerLink(commands.Cog):
channelid = ctx.channel.id
authorid = ctx.author.id
dbLinker = PlayerDBLinker()
if dbLinker.discordidused(authorid):
await ctx.send(f"{ctx.author.mention}, your account is already linked!")
dbLinker.close()
return
code = get_random_string(8)