Allow ME to use the LLM in any server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke R 2024-04-22 11:20:07 -07:00
parent 39a63da9ef
commit 64485e6ef4

View File

@ -149,10 +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 ctx.guild.id not in core_utils.my_guilds: if ctx.author.id == core_utils.my_id:
return
elif ctx.author.id == core_utils.my_id:
pass pass
elif ctx.guild.id not in core_utils.my_guilds:
return
llm_rules = requests.get(core_utils.json_endpoint + "rules.json").json() llm_rules = requests.get(core_utils.json_endpoint + "rules.json").json()