运行前判断__main__

This commit is contained in:
zhbaor 2023-08-13 18:41:10 +08:00
parent fc10505c83
commit 18372e81c6

4
bot.py
View file

@ -23,4 +23,6 @@ bot.apply_routes(
]
)
bot.run()
if __name__ == "__main__":
bot.run()