This commit is contained in:
Skillet 2023-08-01 23:02:19 -04:00
parent 040e233358
commit 4675d0efbd
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class Group(commands.Cog, name="group"):
await interaction.response.send_message("Whitelist group successfully added/updated")
if role.id in self.client.whitelistGrps.keys():
self.client.whitelistGrps[role.id].squadPerms = perms
if perms is not None:
self.client.whitelistGrps[role.id].squadPerms = perms
self.client.whitelistGrps[role.id].updateGroup()
else:
log.info(f"Adding {role.name} ({role.id}) as a Whitelist role")

View File

@ -32,6 +32,7 @@ class serveRA(http.server.SimpleHTTPRequestHandler):
try:
file = open(grpfile, 'rb')
firstline = file.readline().decode('utf-8')
file.seek(0)
if firstline.startswith('remotelist='):
remote = firstline.split('=')[1].strip()
response = requests.get(remote, headers={'Accept': 'text/html,*/*'})