pocc / bga_discord

Discord bot to create games on Board Game Arena
Apache License 2.0
11 stars 5 forks source link

Interactive !setup fails if the user is not already set up #27

Closed mavit closed 3 years ago

mavit commented 3 years ago
Traceback (most recent call last):
  File "./src/main.py", line 66, in on_message
    await trigger_bga_action(message, args)
  File "./src/main.py", line 127, in trigger_bga_action
    await trigger_interactive_response(message, contexts, command, args)
  File "/home/mavit/src/bga_discord/src/menu_root.py", line 88, in trigger_interactive_response
    await cmd(message, contexts, args)
  File "/home/mavit/src/bga_discord/src/cmd_sub_setup.py", line 27, in ctx_setup
    await send_main_setup_menu(message, contexts)
  File "/home/mavit/src/bga_discord/src/cmd_sub_setup.py", line 80, in send_main_setup_menu
    user_data = get_all_logins()[str(message.author.id)]
KeyError: '256892377988464651'