我发现了用于MAL的API,但无法将其集成到我的机器人中

时间:2019-07-20 12:42:31

标签: python discord.py

你好,我正在为不和谐创建一个机器人,我想创建一个动漫命令 动漫+“名称” 并收到结果

import discord
from discord.ext import *
from jikanpy import *
jikan = Jikan()



class anime(commands.Cog):
        def __init__(self, client):
            self.client = client

        @commands.Cog.listener()
        async def on_ready(self):
            print("Cog anime pronto!")


        @commands.command()
        async def anime(ctx, self, title):
            await self.send(f"{jikan.anime(457)} {title}")

0 个答案:

没有答案