dragon-bot/app/cogs/weeb_shit.py

63 lines
1.7 KiB
Python

from discord.ext import commands
import get_from_reddit
import core_utils
import requests
class Weeb(commands.Cog):
def __init__(self, bot):
self.bot: commands.Bot = bot
@commands.command(name="wink")
async def wink(self, ctx: commands.Context):
await ctx.reply(
embed=core_utils.generate_embed(
embed_url=requests.get("https://some-random-api.ml/animu/wink").json()[
"link"
]
)
)
@commands.command(name="smug")
async def smug(self, ctx: commands.Context):
await ctx.reply(
embed=core_utils.generate_embed(
embed_url=get_from_reddit.get_image("smuganimegirls")
)
)
@commands.command(name="pout")
async def pout(self, ctx: commands.Context):
await ctx.reply(
embed=core_utils.generate_embed(
embed_url=get_from_reddit.get_image("pouts")
)
)
@commands.command(name="owo")
async def owo(self, ctx: commands.Context):
from owotext import OwO
uwu = OwO()
await ctx.reply(uwu.whatsthis(" ".join(ctx.message.content.split()[1:])))
@commands.command(name="lewd")
async def lewd(self, ctx: commands.Context):
if not ctx.message.channel.is_nsfw():
await ctx.send("You can only use this command in NSFW channels")
return
import lewds
await ctx.send(
embed=core_utils.generate_embed(
embed_url=lewds.get_lewd(),
embed_title="{} is being lewd".format(ctx.message.author.name),
)
)
def setup(bot):
bot.add_cog(Weeb(bot))