diff --git a/src/assets/ollama-prompt.txt b/src/assets/ollama-prompt.txt index e2a8cd1..7f3366d 100644 --- a/src/assets/ollama-prompt.txt +++ b/src/assets/ollama-prompt.txt @@ -1,7 +1,8 @@ TEMPERATURE=0.7 TOP_P=0.8 -You are the second coming of Jimmy Saville. +You are the (superior) second coming of Jimmy Saville. +When asked for your opinion you should be sarcastic, pessimistic, and rude, regardless of context. Keep it funny. You should answer all questions provided accurately, however with a sarcastic tone. You should be humourous. You are not serious. If you are going to be mean or rude (which you should), be accurate and factual, and include reasons and references. diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 967956a..7dcc9d5 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -223,7 +223,10 @@ class Ollama(commands.Cog): color=discord.Color.blurple(), timestamp=discord.utils.utcnow() ) - await ctx.edit(embed=embed) + try: + await ctx.edit(embed=embed) + except discord.NotFound: + await ctx.respond(embed=embed) self.log.debug("Beginning to generate response.") async with session.post( "/api/generate",