From 7ab1b3ab865c9a7613aa7df26c36d9e33c96c8b1 Mon Sep 17 00:00:00 2001 From: Luke R Date: Wed, 10 Apr 2024 14:14:04 -0700 Subject: [PATCH] Lock gpt to my servers --- app/bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/bot.py b/app/bot.py index 0565913a..2fbfc4e6 100755 --- a/app/bot.py +++ b/app/bot.py @@ -4,6 +4,7 @@ import discord import os import requests import requests_cache +import core_utils intents = discord.Intents.default() intents.message_content = True @@ -154,6 +155,8 @@ 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: + return url = "http://192.168.1.52:1337/v1/chat/completions" bot_prompt = (