Skip to content

Commit

Permalink
[Gatekeep] Modified check for empty lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsunderarislime committed Feb 24, 2025
1 parent 677e265 commit b24517f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cogs/gatekeep/gatekeep.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ def check(msg: discord.Message):

numWords = len(wordDict)

if numWords < 1:
if not numWords:
await ctx.send("The word list is empty.")
return
else:
# Get confirmation before clearing the word list
await ctx.send(
Expand Down Expand Up @@ -549,8 +550,9 @@ def check(msg: discord.Message):

numUsers = len(watchList)

if numUsers < 1:
if not numUsers:
await ctx.send("The watch list is empty.")
return
else:
# Get confirmation before clearing the watch list
await ctx.send(
Expand Down

0 comments on commit b24517f

Please sign in to comment.