From 19b56f05ca284fda1a04e0a04db0e429710f4125 Mon Sep 17 00:00:00 2001 From: JoBe <165585785+JoBeGaming@users.noreply.github.com> Date: Tue, 5 May 2026 07:40:07 +0200 Subject: [PATCH 1/2] Add `pippocurse` command, see https://discord.com/channels/116914772766752769/1500854646560915477/1500967650635812935 Nick had a good idea for once!! --- cogs/randcommands.py | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/cogs/randcommands.py b/cogs/randcommands.py index ab3d4ec..c19d2c0 100644 --- a/cogs/randcommands.py +++ b/cogs/randcommands.py @@ -1,12 +1,13 @@ import asyncio +import discord import random +import re + from asyncio import to_thread from io import BytesIO from random import choice, getrandbits, randint from time import perf_counter -import re -import discord from discord.ext import commands from fractal import fractal @@ -21,12 +22,13 @@ def __init__(self, bot): async def cog_load(self): bases = { - "b": 2, - "o": 8, - "d": 10, - "h": 16, - "64": 64, - } + "b": 2, + "o": 8, + "d": 10, + "h": 16, + "64": 64, + } + async def convert_func(ctx, number: str): from_base = ctx.command.extras["from_base"] to_base = ctx.command.extras["to_base"] @@ -380,5 +382,12 @@ async def oreify(self, ctx, *, text: str): result = re.sub(pattern, lambda m: m.group() if m.group().lower() == 'ore' else 'ORE', text, flags=re.IGNORECASE) await reply(ctx, result) + @commands.command(help="A p p l y t h e p i p p o c u r s e t o s o m e t e x t.") + async def pippocurse(self, ctx, *, text: str): + result = text.replace(". ", "." + " " * random.randint(0, 4)) + if random.randint(0, 1): + result = " ".join(list(result)) + await reply(ctx, result) + async def setup(bot): await bot.add_cog(RandCommands(bot)) From e1caecf32f7a8c99983b0cf147a1a8880d6b0c3d Mon Sep 17 00:00:00 2001 From: JoBe <165585785+JoBeGaming@users.noreply.github.com> Date: Tue, 5 May 2026 12:16:25 +0200 Subject: [PATCH 2/2] Reduce the chance for the whole text to be split into whitespaces. --- cogs/randcommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/randcommands.py b/cogs/randcommands.py index c19d2c0..35b74eb 100644 --- a/cogs/randcommands.py +++ b/cogs/randcommands.py @@ -385,7 +385,7 @@ async def oreify(self, ctx, *, text: str): @commands.command(help="A p p l y t h e p i p p o c u r s e t o s o m e t e x t.") async def pippocurse(self, ctx, *, text: str): result = text.replace(". ", "." + " " * random.randint(0, 4)) - if random.randint(0, 1): + if random.randint(0, 5) == 0: result = " ".join(list(result)) await reply(ctx, result)