5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-11-14 14:01:55 +01:00

allow command only on specific server

This commit is contained in:
Jonas Leder 2020-06-26 10:50:14 +02:00
parent fb5b5fe7eb
commit 3abbd0e7fe
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,8 @@ async def on_ready():
@bot.command()
async def register(ctx):
if not ctx.guild.id in allowedDiscordServer:
return
name = ctx.author.name
token = md5(str(ctx.author.id).encode()).hexdigest()
user = bot.get_user(ctx.author.id)

View file

@ -1,6 +1,8 @@
token = ""
botAccount = True #if you use a normal useraccount, set this to false
prefix = "!" #This you have to enter before every command (e.g. ?help)
allowedDiscordServer = []
sqlServer = ""
sqlUser = ""