mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-25 22:12:29 +01:00
allow command only on specific server
This commit is contained in:
parent
fb5b5fe7eb
commit
3abbd0e7fe
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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 = ""
|
||||
|
|
Loading…
Reference in a new issue