Don't limit execute to single person
This commit is contained in:
parent
54af5c5c08
commit
56fc1cea58
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ async def whitelist(
|
||||||
)
|
)
|
||||||
async def execute(inter: disnake.AppCmdInter, command:str):
|
async def execute(inter: disnake.AppCmdInter, command:str):
|
||||||
await inter.response.defer()
|
await inter.response.defer()
|
||||||
if inter.user.id != int(os.getenv("ADMIN_ID")):
|
if int(os.getenv("ADMIN_ROLE_ID") not in user.roles:
|
||||||
await inter.edit_original_response(content="Only the server admin may run this command")
|
await inter.edit_original_response(content="Only the server admins may run this command")
|
||||||
return
|
return
|
||||||
with Client(os.getenv("RCON_IP"), int(os.getenv("RCON_PORT")), passwd=os.getenv("RCON_PASSWORD")) as client:
|
with Client(os.getenv("RCON_IP"), int(os.getenv("RCON_PORT")), passwd=os.getenv("RCON_PASSWORD")) as client:
|
||||||
response = client.run(command)
|
response = client.run(command)
|
||||||
|
|
Loading…
Reference in a new issue