Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/GPT3Discord/commit/c29103acfc81eee67408be0a37c4b1f0723ad22e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
20 additions and
2 deletions
@ -626,11 +626,19 @@ class Commands(discord.Cog, name="Commands"):
@discord.message_command (
name = " Paraphrase " ,
guild_ids = ALLOWED_GUILDS ,
checks = [ Check . check_ dalle _roles( ) ] ,
checks = [ Check . check_ gpt _roles( ) ] ,
)
async def paraphrase_action ( self , ctx , message : discord . Message ) :
await self . converser_cog . paraphrase_action ( ctx , message )
@discord.message_command (
name = " Elaborate " ,
guild_ids = ALLOWED_GUILDS ,
checks = [ Check . check_gpt_roles ( ) ] ,
)
async def elaborate_action ( self , ctx , message : discord . Message ) :
await self . converser_cog . elaborate_action ( ctx , message )
# Search slash commands
@discord.slash_command (
name = " search " ,
@ -1061,3 +1061,13 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
prompt = f " Paraphrase the following text. Maintain roughly the same text length after paraphrasing and the same tone of voice: { prompt } \n \n Paraphrased: "
await self . ask_command ( ctx , prompt , None , None , None , None , from_action = prompt )
async def elaborate_action ( self , ctx , message : discord . Message ) :
""" Message command. elaborate on the subject of the current message content """
user = ctx . user
prompt = await self . mention_to_username ( ctx , message . content )
# Construct the paraphrase prompt
prompt = f " Elaborate upon the subject of the following message: { prompt } \n \n Elaboration: "
await self . ask_command ( ctx , prompt , None , None , None , None , from_action = prompt )
@ -30,7 +30,7 @@ from services.environment_service import EnvService
from models . openai_model import Model
__version__ = " 8.7 "
__version__ = " 8.7 .5 "
PID_FILE = Path ( " bot.pid " )