Allow ME to use the LLM in any server
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Luke R 2024-04-22 10:59:46 -07:00
parent fd466c07e0
commit cdbe8445ba

View File

@ -149,7 +149,10 @@ async def fix_social_media_links(ctx):
@bot.event
async def on_message(ctx):
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
or ctx.guild.id not in core_utils.my_guilds
):
return
llm_rules = requests.get(core_utils.json_endpoint + "rules.json").json()