【发布时间】:2020-05-07 00:47:07
【问题描述】:
我正在尝试使用 discord.py 执行简单的命令,但它不会在终端或 Discord 中给出任何错误。
代码如下:
import discord
from discord.ext import commands
class BotLibertarin(discord.Client):
client = commands.Bot(command_prefix=".")
@client.command()
async def teste(ctx,*,arg):
await ctx.channel.send(arg)
@client.event
async def on_message(self, message):
print(f"message from {message.author} what he said {message.content}")
client = BotLibertarin()
client.run("")
【问题讨论】:
标签: python bots discord discord.py discord.py-rewrite