From ac3cdc56c6ca714005ea42d7f230278219e6aab8 Mon Sep 17 00:00:00 2001 From: ein Date: Fri, 3 Sep 2021 10:50:24 -0700 Subject: [PATCH] Adding owo function because god hates us --- app/bot.py | 13 +++++++------ app/help_methods.py | 12 ++++++------ app/requirements.txt | 3 ++- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/app/bot.py b/app/bot.py index fd4fe9b9..29ab819f 100755 --- a/app/bot.py +++ b/app/bot.py @@ -124,10 +124,12 @@ async def roll(ctx): import dice await ctx.send(embed=dice.parse_message(ctx.message.content)) -# @bot.command(name='quake') -# async def quake(ctx): -# import quake -# await ctx.send(embed=quake.parse_message(ctx.message)) +@bot.command(name='owo') +async def owo(ctx): + from TextToOwO.owo import text_to_owo + await ctx.send(text_to_owo( + ' '.join(ctx.message.content.split()[1:])) + ) @bot.command(name='excuse') async def excuse(ctx): @@ -168,9 +170,8 @@ async def avatar(ctx): profile = ctx.message.mentions # Code stolen from this reddit post - # https://www.reddit.com/r/discordapp/comments/74bb4z/retrieve_a_mentioned_users_avatar_using_discordpy for user in profile: - avatar_url = str(user.avatar_url).replace('.webp', '.png') + avatar_url = user.avatar_url_as(static_format='png') await ctx.send( embed=generate_embed( embed_title="{}#{}".format(user.name, user.discriminator), diff --git a/app/help_methods.py b/app/help_methods.py index 846c6e5b..f767f1bd 100644 --- a/app/help_methods.py +++ b/app/help_methods.py @@ -157,14 +157,14 @@ def get_help_message(method): ' Note this picture only changes once a day.', '\nUsage: !homepage' ], + 'owo': [ + 'Returns some fucky wucky text\n', + 'Usage: !owo what the fuck did you just fucking say about me you little shit?' + ], 'pout': [ 'Returns the URL for an anime girl pouting you filthy weeb\n', 'Usage: !pout' ], - # 'quake': [ - # 'Returns player stats for a quake champions account\n' - # 'Usage: !quake ' - # ], 'rat': [ 'Returns a random rat photo', '\nUsage: !rat' @@ -221,10 +221,10 @@ def get_help_message(method): def get_help_embed(bot): categories = { - 'fun': ['bf5', 'ffxiv', 'clap', 'youtube', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'wink', 'verify', 'horny', 'wasted', 'simp', 'trackdays'], + 'fun': ['bf5', 'ffxiv', 'clap', 'youtube', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'owo', 'wink', 'verify', 'horny', 'wasted', 'simp', 'trackdays'], 'util': ['ask', 'corona', 'emoji', '8ball', 'decide', 'info', 'icon', 'wallpaper', 'stock', 'tts', 'issue'], 'users': ['help', 'invite', 'purge', 'roles', 'source'], - 'pictures of animals': ['birb', 'redpanda,' 'dale', 'dog', 'rat', 'koala', 'panda', 'raccoon', 'fox', 'cat', 'kangaroo'], + 'pictures of animals': ['birb', 'redpanda', 'dale', 'dog', 'rat', 'koala', 'panda', 'raccoon', 'fox', 'cat', 'kangaroo'], 'admin': ['cleanup'] } diff --git a/app/requirements.txt b/app/requirements.txt index 3816311c..ac200ba4 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -4,5 +4,6 @@ gTTS lxml pandas requests +TextToOwO wikipedia -wolframalpha \ No newline at end of file +wolframalpha