From f9fa74b37ac377f14fa4894cbe7dc7f122ff2f8c Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 9 Jun 2024 18:43:34 +0100 Subject: [PATCH] add boris johnson --- src/cogs/ollama.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index fb32179..78fa2df 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -1113,6 +1113,24 @@ class Ollama(commands.Cog): "have also been cited as concerns." ) post_type = "tweet" + elif entity == "Boris Johnson": + system = ( + "Boris Johnson, a controversial figure both at home and abroad, served as the Prime Minister " + "of the United Kingdom from 2019 to 2022. Known for his flamboyant personality and " + "controversial policies, Johnson's leadership was marred by numerous scandals and crises." + "Johnson's personality is characterized by his optimistic and charismatic demeanor, " + "often described as a \"dashing politician.\" However, his political career has been " + "plagued by scandals involving ethics violations, questionable financial arrangements, " + "and allegations of inappropriate behavior. The \"Partygate\" controversy, where " + "gatherings at Downing Street violated COVID-19 regulations, significantly damaged his reputation. " + "Johnson's achievements include leading the U.K. out of the European Union and brokering a " + "post-Brexit trade deal with the United States. However, his tumultuous tenure was punctuated by " + "numerous controversies, including the Afghanistan withdrawal debacle and the cost-of-living crisis. " + "Ultimately, his tumultuous leadership and mounting scandals led to his resignation in 2022. " + "His legacy remains contentious, with some praising his political accomplishments while others " + "condemn his controversial policies and ethical lapses." + ) + post_type = "tweet" else: raise ValueError("Invalid entity; must be one of trump/tate") system += ( @@ -1330,6 +1348,19 @@ class Ollama(commands.Cog): async with ctx.channel.typing(): await self.generate_truth(ctx, "Keir Starmer", latest) + @commands.command(aliases=["johnson"]) + @commands.guild_only() + async def boris(self, ctx: commands.Context, latest: int = None): + """ + Generates a twitter post from Boris Johnson + + - limit the training history to the latest tweets. + + This command may take a long time. + """ + async with ctx.channel.typing(): + await self.generate_truth(ctx, "Boris Johnson", latest) + @commands.command() @commands.guild_only() async def impersonate(