soxidus / Boardgame-Bot

A Boardgame Bot for your Telegram group to plan/manage gamenights and suggest games to play.
MIT License
2 stars 0 forks source link

bugs in settings #79

Closed karacolada closed 4 years ago

karacolada commented 4 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/dispatcher.py", line 372, in process_update
    handler.handle_update(update, self, check, context)
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/handler.py", line 117, in handle_update
    return self.callback(update, context)
  File "/src/commands.py", line 501, in einstellungen
    init_array=init_settings))
  File "/src/inline_handler.py", line 397, in generate_settings
    if 1 in current_settings[index]:
TypeError: argument of type 'int' is not iterable
karacolada commented 4 years ago

This was "fixed" on branch refactor-69-74-63-56, where I had to change quite a bit about the settings functions. There, we still use if current_settings[index] == 1, I don't see a problem with that.

karacolada commented 4 years ago

Another bug: private messages don't get sent to users on /ich and /nichtich due to indent errrors in those functions. Also, the description doesn't get updated if send_message is not set... This, too, was fixed on branch refactor-69-74-63-56.