Some small improvements

This commit is contained in:
Marco Thomas
2020-10-08 10:05:58 +02:00
parent 24c416a80b
commit 4a5933729b
12 changed files with 48 additions and 71 deletions

View File

@@ -2,20 +2,17 @@
Some anime-related commands
"""
# IMPORTS - external
import discord
from discord.ext import commands
import random
# IMPORTS - internal
import loaddata
# COG INIT
class Anime(commands.Cog):
def __init__(self, bot):
self.bot = bot
# COG BODY
@commands.command(name="animepic")
async def animemedia(self, ctx):
"""
@@ -26,6 +23,7 @@ class Anime(commands.Cog):
media = random.choice(media_type)
await ctx.send(media)
@commands.command(name="waifupic")
async def waifumedia(self, ctx, name: str):
"""
@@ -54,6 +52,5 @@ class Anime(commands.Cog):
await ctx.send(text)
# COG ENDING
def setup(bot):
bot.add_cog(Anime(bot))