Have dale-bot pull from a json endpoint to get gpt users

This commit is contained in:
Luke Robles 2024-04-16 12:17:10 -07:00
parent b40e9f9fbb
commit 39782361b9

View File

@ -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