You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Enso-Bot/cogs/OwOText.py

27 lines
671 B
Python

from discord.ext import commands
# OwO Impowt da wibwawy ÙωÙ
from discord.ext.commands import BucketType, cooldown
from owotext import OwO
# Initiate the cog
class OwOText(commands.Cog):
def __init__(self, bot):
self.bot = bot
# ~owo command allows for text to be 'converted to OWO'
@commands.command()
@cooldown(1, 1, BucketType.user)
async def owo(self, ctx):
if ctx.message.content.startswith("~owo"):
msg = ctx.message.content.split("~owo ", 1)
uwu = OwO()
owo = uwu.whatsthis(str(msg[-1]))
await ctx.message.channel.send(owo)
def setup(bot):
bot.add_cog(OwOText(bot))