Have dale-bot pull from a json endpoint to get gpt users
This commit is contained in:
parent
b40e9f9fbb
commit
39782361b9
12
app/bot.py
12
app/bot.py
@ -48,11 +48,6 @@ async def on_ready():
|
|||||||
# Waiting-room in zoid's server
|
# Waiting-room in zoid's server
|
||||||
channel_id = 1026281775984549958
|
channel_id = 1026281775984549958
|
||||||
message_id = 1099374735428681758
|
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):
|
blurb = """# Please react to this message with one of the following emojis to be granted the appropriate role(s):
|
||||||
|
|
||||||
🚀 for Star Citizen
|
🚀 for Star Citizen
|
||||||
@ -159,7 +154,12 @@ async def on_message(ctx):
|
|||||||
if ctx.guild.id not in core_utils.my_guilds:
|
if ctx.guild.id not in core_utils.my_guilds:
|
||||||
return
|
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()
|
await ctx.delete()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user