你好,我正在为不和谐创建一个机器人,我想创建一个动漫命令 动漫+“名称” 并收到结果
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}")