From b0196a3d6497d7c30d738768bc6a11327f8aa3dd Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Fri, 27 May 2022 11:08:53 -0700 Subject: [PATCH] slice of the comment to avoid too long of a tweet --- app/cogs/cheeky_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index eccf70ef..4a489805 100644 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -177,7 +177,7 @@ class Cheeky(commands.Cog): result = river_stats.get_stats() await ctx.reply(embed=result) - @commands.command(name="twitter") + @commands.command(name="twitter", aliases=["tweet"]) async def twitter(self, ctx: commands.Context, message_id): message = await ctx.channel.fetch_message(message_id) @@ -188,7 +188,7 @@ class Cheeky(commands.Cog): author_avatar, core_utils.gen_username()[:14], message.author.display_name, - message.content, + message.content[:999], ) ) with open("/tmp/tweet.jpg", "wb") as f: