如何将此添加到您的不和谐机器人命令行

时间:2021-02-11 20:10:58

标签: python discord

我创建了一个 discord bot,我想要一个用于游戏链接的主机命令,还想让消息在不同的频道中发送并且频道命令是可切换的。

@bot.command(pass_context = True)
async def host(ctx):
    message = discord.Embed(title=f"Hosted by {ctx.author} \n Earnable points: [SOLOPOINTS] \n Link: {link} ")
    await ctx.send (embed=message)

但是我不知道怎么做链接功能,我希望它是这样的“!host LINK.COM”

0 个答案:

没有答案