【发布时间】:2023-04-04 08:19:02
【问题描述】:
我正在尝试制作一个程序来创建一个无限循环, 例如:
bot1.py
@bot.command()
async def loop1(ctx):
await ctx.send('$loop2')
bot2.py
@bot.command()
async def loop2(ctx):
await ctx.send('$loop1')
但主要问题是机器人不会听另一个机器人,所以这行不通......
有没有办法让一个机器人听另一个机器人?提前致谢! :)
【问题讨论】:
-
解释您的用户案例以及如何使用它以及为什么。
-
我认为这会很有趣吗?我猜只是供我使用。
标签: python discord discord.py