add boris johnson
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s

This commit is contained in:
Nexus 2024-06-09 18:43:34 +01:00
parent 692f2ed893
commit f9fa74b37a

View file

@ -1113,6 +1113,24 @@ class Ollama(commands.Cog):
"have also been cited as concerns." "have also been cited as concerns."
) )
post_type = "tweet" 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: else:
raise ValueError("Invalid entity; must be one of trump/tate") raise ValueError("Invalid entity; must be one of trump/tate")
system += ( system += (
@ -1330,6 +1348,19 @@ class Ollama(commands.Cog):
async with ctx.channel.typing(): async with ctx.channel.typing():
await self.generate_truth(ctx, "Keir Starmer", latest) 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
<latest> - limit the training history to the latest <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.command()
@commands.guild_only() @commands.guild_only()
async def impersonate( async def impersonate(