From cdbe8445ba094c28bb9db972449a6f690918307c Mon Sep 17 00:00:00 2001 From: Luke R Date: Mon, 22 Apr 2024 10:59:46 -0700 Subject: [PATCH] Allow ME to use the LLM in any server --- app/bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/bot.py b/app/bot.py index 202070dc..b99e2f5f 100755 --- a/app/bot.py +++ b/app/bot.py @@ -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()