Let user change bot

This commit is contained in:
Davte 2018-11-24 15:21:30 +01:00
parent ada5458368
commit a2cd9ce626
2 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ __author__ = "Davide Testa"
__email__ = "davte@libero.it"
__credits__ = "Marco Origlia"
__license__ = "GNU General Public License v3.0"
__version__ = "1.4.1"
__version__ = "1.4.2"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"

View File

@ -1892,6 +1892,8 @@ class Bot(telepot.aio.Bot, Gettable):
"Choose an addressee."
"\n\t\t"
)
if len(user_input) == 0:
return 65 # Let user select a different bot
except KeyboardInterrupt:
logging.error("Keyboard interrupt.")
return 0 # Stop running