【发布时间】:2021-06-11 23:32:51
【问题描述】:
我正在使用 repl.it 在同一个 repl 中运行两个机器人,并且我正在使用导入,就像我在其他 stackoverflow 问题中看到的那样。
print('This will be the page where all bots will be made.')
import os
import bot1
import keep_alive
import bot2
import keep_alive1
while True:
print('ALL BOTS STARTED!')
问题是,它永远不会进入while 循环(用于测试),因为它卡在 bot1 文件中。我应该如何解决这个问题? 我在同一个 repl 项目中这样做的原因是我可以合并机器人数据库。
【问题讨论】:
标签: python discord.py repl.it