Lock gpt to my servers
This commit is contained in:
parent
8942bb4397
commit
9b0c91f5c3
@ -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 = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user