From c469ec47781edda3a61447ecf9b27ec2bda7efd2 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 25 Jun 2020 21:34:11 +0100 Subject: [PATCH] Added more commentary --- cogs/OwOText.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/OwOText.py b/cogs/OwOText.py index 467409b8..b8f27cea 100644 --- a/cogs/OwOText.py +++ b/cogs/OwOText.py @@ -13,12 +13,16 @@ class OwOText(commands.Cog): @commands.command() @cooldown(1, 1, BucketType.user) async def owo(self, ctx): + # Making sure that the string that gets converted is excluding the ~owo if ctx.message.content.startswith("~owo"): + # Get the message to be converted msg = ctx.message.content.split("~owo ", 1) + # Convert the message into owo text uwu = OwO() owo = uwu.whatsthis(str(msg[-1])) + # Send the owo version of the text to the channel await ctx.message.channel.send(owo)