Skip to content

Commit

Permalink
[bug] stampcollection: use is_bot_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jun 17, 2023
1 parent 91151b5 commit 23f13a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/stampcollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from structlog import get_logger

from api.coda import CodaAPI
from utilities import is_in_testing_mode, utilities, Utilities
from utilities import is_in_testing_mode, utilities, Utilities, is_bot_dev
from modules.module import Module, Response
from config import stamp_scores_csv_file_path, coda_api_token
from servicemodules.serviceConstants import Services
Expand Down Expand Up @@ -337,10 +337,7 @@ def process_message(self, message):

elif text == "reloadallstamps":
if message.service == Services.DISCORD:
asked_by_admin = discord.utils.get(
message.author.roles, id=bot_admin_role_id
)
if asked_by_admin:
if is_bot_dev(message.author):
return Response(
confidence=10, callback=self.reloadallstamps, args=[message]
)
Expand Down

0 comments on commit 23f13a2

Please sign in to comment.