【发布时间】:2021-01-26 13:27:19
【问题描述】:
我正在尝试在 discord.py rewrite 中为 discord 制作一个 selfbot,它给了我这个错误:
Ignoring exception in command None:
discord.ext.commands.errors.CommandNotFound: Command "me" is not found
这是我的代码:
from discord.ext import commands
selfbot = commands.Bot(command_prefix = "<.", self_bot = True)
selfbot.event
async def on_ready():
print(f'IDK Running on: {selfbot.user}')
selfbot.command()
async def test(ctx):
await ctx.send('Off.')
selfbot.command()
async def me(ctx):
ctx.send(f'You are {selfbot.user}')
token = 'token here'
selfbot.run(token, bot = False)```
【问题讨论】:
标签: python-3.x discord discord.py-rewrite