small tweaks to the refresh code

This commit is contained in:
Luke Rogers 2014-02-14 19:27:05 +13:00
parent e84b181f80
commit 3fde4692d1
5 changed files with 23 additions and 32 deletions

View file

@ -42,6 +42,7 @@ while True:
else:
if cloudbot.do_restart:
# create a new bot thread and start it
del cloudbot
cloudbot = bot.Bot()
cloudbot.start()
continue