This commit is contained in:
insert 2024-05-14 17:13:29 -04:00
parent 56fc1cea58
commit 2009c9d310
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -105,7 +105,7 @@ 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 int(os.getenv("ADMIN_ROLE_ID") not in user.roles: if int(os.getenv("ADMIN_ROLE_ID")) not in user.roles:
await inter.edit_original_response(content="Only the server admins 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: