mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2024-12-30 15:19:12 -06:00
fixes
This commit is contained in:
parent
040e233358
commit
4675d0efbd
@ -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")
|
||||
|
@ -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,*/*'})
|
||||
|
Loading…
Reference in New Issue
Block a user