From b85d4553fd0e517ce3b399b9bae9377c2e44bd92 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 13:45:18 +0000 Subject: [PATCH 1/3] fix(nerdify): don't use pipes! --- nerdify/nerdify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerdify/nerdify.py b/nerdify/nerdify.py index bd71b84..e41b38a 100644 --- a/nerdify/nerdify.py +++ b/nerdify/nerdify.py @@ -57,7 +57,7 @@ class Nerdify(commands.Cog): async def type_message( self, destination: discord.abc.Messageable, content: str, **kwargs: Any - ) -> discord.Message | None: + ) -> Optional(discord.Message): """Simulate typing and sending a message to a destination. Will send a typing indicator, wait a variable amount of time based on the length From 2fc43a7933bd19073c3f2edb6c05fdd697a38f2a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 14:02:32 +0000 Subject: [PATCH 2/3] misc(nerdify): added author and version vars --- nerdify/nerdify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nerdify/nerdify.py b/nerdify/nerdify.py index e41b38a..78c12cd 100644 --- a/nerdify/nerdify.py +++ b/nerdify/nerdify.py @@ -19,6 +19,9 @@ class Nerdify(commands.Cog): def __init__(self, bot): self.bot = bot + __author__ = "SeaswimmerTheFsh" + __version__ = "1.3.0" + @commands.command(aliases=["nerd"]) async def nerdify(self, ctx: commands.Context, *, text: Optional[str] = None) -> None: """Nerdify the replied to message, previous message, or your own text.""" From 078ce53dc953e2c0365984779642281e541f7a05 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 14:09:07 +0000 Subject: [PATCH 3/3] fix(nerdify): pylint fix --- nerdify/nerdify.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nerdify/nerdify.py b/nerdify/nerdify.py index 78c12cd..ec2d52b 100644 --- a/nerdify/nerdify.py +++ b/nerdify/nerdify.py @@ -16,11 +16,12 @@ from redbot.core.utils import chat_formatting, common_filters class Nerdify(commands.Cog): """Nerdify your text.""" - def __init__(self, bot): - self.bot = bot __author__ = "SeaswimmerTheFsh" - __version__ = "1.3.0" + __version__ = "1.3.1" + + def __init__(self, bot): + self.bot = bot @commands.command(aliases=["nerd"]) async def nerdify(self, ctx: commands.Context, *, text: Optional[str] = None) -> None: