运行前判断__main__
This commit is contained in:
parent
fc10505c83
commit
18372e81c6
1 changed files with 3 additions and 1 deletions
4
bot.py
4
bot.py
|
@ -23,4 +23,6 @@ bot.apply_routes(
|
|||
]
|
||||
)
|
||||
|
||||
bot.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
bot.run()
|
||||
|
|
Loading…
Reference in a new issue