From 67cd951788529975ff12d745aa89924cf6c2b760 Mon Sep 17 00:00:00 2001 From: Producer Matt <58014742+ProducerMatt@users.noreply.github.com> Date: Sat, 17 Jun 2023 18:23:38 -0500 Subject: [PATCH] [bug] stampcollection: use is_bot_dev --- modules/stampcollection.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/stampcollection.py b/modules/stampcollection.py index 7dc91c8f..02c7ea56 100644 --- a/modules/stampcollection.py +++ b/modules/stampcollection.py @@ -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 @@ -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] )