Add starmer command
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s
This commit is contained in:
parent
4435900585
commit
7657f9b07c
1 changed files with 35 additions and 7 deletions
|
@ -1098,6 +1098,21 @@ class Ollama(commands.Cog):
|
||||||
"leading to widespread condemnation and legal repercussions"
|
"leading to widespread condemnation and legal repercussions"
|
||||||
)
|
)
|
||||||
post_type = "tweet"
|
post_type = "tweet"
|
||||||
|
elif entity == "Keir Starmer":
|
||||||
|
system = (
|
||||||
|
"Kier Starmer is the current leader of the Labour Party in the United Kingdom. Known for "
|
||||||
|
"his measured and analytical approach, he exhibits a calm and collected demeanor. He "
|
||||||
|
"has a strong legal background, which influences his meticulous and evidence-based "
|
||||||
|
"decision-making. Starmer's personality has been described as compassionate and inclusive, "
|
||||||
|
"with a focus on social justice. However, his leadership has been marred by controversies. "
|
||||||
|
"Critics argue that his cautious and consensus-seeking style lacks the necessary conviction"
|
||||||
|
" to challenge the ruling Conservative Party. Some accuse him of being too focused on internal "
|
||||||
|
"politics, neglecting broader social and economic issues. Additionally, his handling of party "
|
||||||
|
"disciplinary matters has drawn scrutiny, with some suggesting he prioritizes personal "
|
||||||
|
"relationships over party discipline. His perceived lack of charisma and political experience "
|
||||||
|
"have also been cited as concerns."
|
||||||
|
)
|
||||||
|
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 += (
|
||||||
|
@ -1224,9 +1239,9 @@ class Ollama(commands.Cog):
|
||||||
)
|
)
|
||||||
await msg.edit(embed=embed)
|
await msg.edit(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command(aliases=["trump"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def trump(self, ctx: commands.Context, latest: int = None):
|
async def donald(self, ctx: commands.Context, latest: int = None):
|
||||||
"""
|
"""
|
||||||
Generates a truth social post from trump!
|
Generates a truth social post from trump!
|
||||||
|
|
||||||
|
@ -1237,9 +1252,9 @@ class Ollama(commands.Cog):
|
||||||
async with ctx.channel.typing():
|
async with ctx.channel.typing():
|
||||||
await self.generate_truth(ctx, "trump", latest)
|
await self.generate_truth(ctx, "trump", latest)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command(aliases=["tate"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def tate(self, ctx: commands.Context, latest: int = None):
|
async def andrew(self, ctx: commands.Context, latest: int = None):
|
||||||
"""
|
"""
|
||||||
Generates a truth social post from Andrew Tate
|
Generates a truth social post from Andrew Tate
|
||||||
|
|
||||||
|
@ -1250,7 +1265,7 @@ class Ollama(commands.Cog):
|
||||||
async with ctx.channel.typing():
|
async with ctx.channel.typing():
|
||||||
await self.generate_truth(ctx, "tate", latest)
|
await self.generate_truth(ctx, "tate", latest)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command(aliases=["sunak"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def rishi(self, ctx: commands.Context, latest: int = None):
|
async def rishi(self, ctx: commands.Context, latest: int = None):
|
||||||
"""
|
"""
|
||||||
|
@ -1263,7 +1278,7 @@ class Ollama(commands.Cog):
|
||||||
async with ctx.channel.typing():
|
async with ctx.channel.typing():
|
||||||
await self.generate_truth(ctx, "Rishi Sunak", latest)
|
await self.generate_truth(ctx, "Rishi Sunak", latest)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command(aliases=["robinson"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def tommy(self, ctx: commands.Context, latest: int = None):
|
async def tommy(self, ctx: commands.Context, latest: int = None):
|
||||||
"""
|
"""
|
||||||
|
@ -1289,7 +1304,7 @@ class Ollama(commands.Cog):
|
||||||
async with ctx.channel.typing():
|
async with ctx.channel.typing():
|
||||||
await self.generate_truth(ctx, "Laurence Fox", latest)
|
await self.generate_truth(ctx, "Laurence Fox", latest)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command(aliases=["farage"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def nigel(self, ctx: commands.Context, latest: int = None):
|
async def nigel(self, ctx: commands.Context, latest: int = None):
|
||||||
"""
|
"""
|
||||||
|
@ -1302,6 +1317,19 @@ class Ollama(commands.Cog):
|
||||||
async with ctx.channel.typing():
|
async with ctx.channel.typing():
|
||||||
await self.generate_truth(ctx, "Nigel Farage", latest)
|
await self.generate_truth(ctx, "Nigel Farage", latest)
|
||||||
|
|
||||||
|
@commands.command(aliases=["starmer"])
|
||||||
|
@commands.guild_only()
|
||||||
|
async def kier(self, ctx: commands.Context, latest: int = None):
|
||||||
|
"""
|
||||||
|
Generates a twitter post from Kier Starmer
|
||||||
|
|
||||||
|
<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, "Kier Starmer", latest)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def impersonate(
|
async def impersonate(
|
||||||
|
|
Loading…
Reference in a new issue