mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-14 22:11:45 +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()
|
@bot.command()
|
||||||
async def register(ctx):
|
async def register(ctx):
|
||||||
|
if not ctx.guild.id in allowedDiscordServer:
|
||||||
|
return
|
||||||
name = ctx.author.name
|
name = ctx.author.name
|
||||||
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)
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
token = ""
|
token = ""
|
||||||
botAccount = True #if you use a normal useraccount, set this to false
|
botAccount = True #if you use a normal useraccount, set this to false
|
||||||
prefix = "!" #This you have to enter before every command (e.g. ?help)
|
prefix = "!" #This you have to enter before every command (e.g. ?help)
|
||||||
|
allowedDiscordServer = []
|
||||||
|
|
||||||
|
|
||||||
sqlServer = ""
|
sqlServer = ""
|
||||||
sqlUser = ""
|
sqlUser = ""
|
||||||
|
|
Loading…
Reference in a new issue