Allow ME to use the LLM in any server

This commit is contained in:
Luke Robles 2024-04-22 11:19:18 -07:00
parent 7817c5bd2f
commit 29052eca7e

View File

@ -149,11 +149,10 @@ async def fix_social_media_links(ctx):
@bot.event @bot.event
async def on_message(ctx): async def on_message(ctx):
if str(bot.user.id) in ctx.content: if str(bot.user.id) in ctx.content:
if ( if ctx.guild.id not in core_utils.my_guilds:
ctx.author.id != core_utils.my_id
or ctx.guild.id not in core_utils.my_guilds
):
return return
elif ctx.author.id == core_utils.my_id:
pass
llm_rules = requests.get(core_utils.json_endpoint + "rules.json").json() llm_rules = requests.get(core_utils.json_endpoint + "rules.json").json()