所以,我一直在这样做:
from discord.ext import commands
from discord.utils import get
client = commands.Bot(command_prefix='><')
@client.event
async def on_ready():
print("I am ready Winson or not Winson :D")
@client.event
async def on_member_join(member):
channel = client.get_channel(744440768667844698)
message = await channel.send(f"Welcome to HaveNoFaith {member},happy to be friends with you")
@client.command()
async def ping(ctx):
await ctx.send(f"Your Ping is {round(client.latency *1000)}ms")
@client.command()
async def Help(ctx2):
await ctx2.send("Hi,Im WelcomeBot v1.0...\n\nPrefix: ><\n\nCommands: ping\n help")
#,然后我尝试在消息“ Welcome etc”中执行类似操作,如果他们对该消息中的“检查反应”做出反应,那么他们将在不和谐的服务器中扮演角色...