Skip to content

Commit

Permalink
ssl whitelist now added
Browse files Browse the repository at this point in the history
  • Loading branch information
JaWarrior12 committed Jan 22, 2025
1 parent 07ba068 commit ae51b53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cogs/econcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ async def submitShipList(self,ctx,onlyOwned="True",*,whitelist):
userDiscordID=ctx.message.author.id
realWhitelist=[]
for item in whitelist.split(","):
item=item.strip
item=item.strip(" ")
realWhitelist.append(item)
log_file_name=f"{username}_shiplist.txt"
logFile=None
if len(ctx.message.attachments) >=1:
Expand Down Expand Up @@ -515,6 +516,7 @@ async def submitShipList(self,ctx,onlyOwned="True",*,whitelist):
if ship not in list(data["users"][username]["capped"].items()):
ship=ship[1]
data["users"][username]["capped"].update({ship["hex_code"]:ship})
data["users"][username]["whitelist"]=realWhitelist
lists.setFile("shipLists",data)
except Exception as e:
print(e)
Expand Down
2 changes: 1 addition & 1 deletion cogs/setupcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ async def tempNew(x):
try:
#wait channel.purge()
amount=100
await channel.purge(limit=amount, check=lambda message: message.author == self.bot.user)
await channel.purge(limit=amount, check=lambda message: message.author == self.bot.user, reason="Member List Update")
except:
pass
#print(cuts)
Expand Down

0 comments on commit ae51b53

Please sign in to comment.