【发布时间】:2022-01-08 13:05:37
【问题描述】:
当票务机器人发送消息时,我想 ping 模组或管理员? 我的代码:
import discord
from discord.ext import commands
import random
client = commands.Bot(command_prefix="+")
@client.event
async def on_ready():
print("Bot is online")
ticket = ["915745817694961664"]
@client.event
async def on_message(msg):
for word in ticket:
if word in msg.content:
await ctx.send("Someone created a ticket! @Mods @Admins")
client.run("TOKEN")
我不知道这是否可能,但我希望有办法做到这一点
【问题讨论】:
标签: python discord discord.py