From 39782361b9fb3e7a52802b1a0166fa3de73ad6b1 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 16 Apr 2024 12:17:10 -0700 Subject: [PATCH] Have dale-bot pull from a json endpoint to get gpt users --- app/bot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/bot.py b/app/bot.py index 21cde915..8022296c 100755 --- a/app/bot.py +++ b/app/bot.py @@ -48,11 +48,6 @@ async def on_ready(): # Waiting-room in zoid's server channel_id = 1026281775984549958 message_id = 1099374735428681758 - - # for testing, bot-testing server's channel - # channel_id = 932476007439552522 - # message_id = 1114045480129806361 - blurb = """# Please react to this message with one of the following emojis to be granted the appropriate role(s): 🚀 for Star Citizen @@ -159,7 +154,12 @@ async def on_message(ctx): if ctx.guild.id not in core_utils.my_guilds: return - if ctx.author.id == 83012791983673344: + if ( + str(ctx.author.id) + in requests.get("http://dale-bot-json.dragon-bot.svc.cluster.local/rules.json").json()[ + "disallowed_users" + ] + ): await ctx.delete() return