【发布时间】:2018-06-28 06:10:47
【问题描述】:
当某个用户发送消息时,Discord bot 不允许我触发命令。
import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
Client = discord.Client()
client = commands.Bot(command_prefix = "!")
@client.event
async def on_message(message):
if message.author == "exampleuser#0000":
await client.send_message(message.channel, "success")
client.run("insert token here")
【问题讨论】:
-
欢迎来到stackoverflow!为了让我们帮助您,您需要向我们提供Minimal, Complete, and Verifiable example。
标签: python discord discord.py