mirror of https://github.com/sgoudham/Enso-Bot.git
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.
31 lines
941 B
Python
31 lines
941 B
Python
5 years ago
|
from discord.ext import commands
|
||
|
# OwO Impowt da wibwawy ÙωÙ
|
||
5 years ago
|
from discord.ext.commands import BucketType, cooldown, command
|
||
5 years ago
|
from owotext import OwO
|
||
|
|
||
5 years ago
|
|
||
|
# Initiate the cog
|
||
5 years ago
|
class OwOText(commands.Cog):
|
||
|
def __init__(self, bot):
|
||
|
self.bot = bot
|
||
|
|
||
5 years ago
|
# ~owo command allows for text to be 'converted to OWO'
|
||
5 years ago
|
@command(name="owo", aliases=["Owo", "OwO"])
|
||
5 years ago
|
@cooldown(1, 1, BucketType.user)
|
||
5 years ago
|
async def owo(self, ctx):
|
||
5 years ago
|
# Making sure that the string that gets converted is excluding the ~owo
|
||
5 years ago
|
if ctx.message.content.startswith("~owo"):
|
||
5 years ago
|
# Get the message to be converted
|
||
5 years ago
|
msg = ctx.message.content.split("~owo ", 1)
|
||
|
|
||
5 years ago
|
# Convert the message into owo text
|
||
5 years ago
|
uwu = OwO()
|
||
|
owo = uwu.whatsthis(str(msg[-1]))
|
||
|
|
||
5 years ago
|
# Send the owo version of the text to the channel
|
||
5 years ago
|
await ctx.message.channel.send(owo)
|
||
|
|
||
5 years ago
|
|
||
5 years ago
|
def setup(bot):
|
||
5 years ago
|
bot.add_cog(OwOText(bot))
|