schana / carim-discord-bot

Discord bot that connects to DayZ servers via RCon and provides cross chat capabilities.
https://pypi.org/project/carim-discord-bot/
Apache License 2.0
23 stars 7 forks source link

If the cftools app isn't authorized for the service, errors are thrown #59

Closed schana closed 4 years ago

schana commented 4 years ago
2020-09-12 20:03:57,644 ERROR carim_discord_bot.managed_service - something crashed OmegaService
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/carim_discord_bot/managed_service.py", line 68, in _message_processor
    await self._handle_message(message)
  File "/usr/local/lib/python3.7/dist-packages/carim_discord_bot/managed_service.py", line 77, in _handle_message
    await self.handle_message(message)
  File "/usr/local/lib/python3.7/dist-packages/carim_discord_bot/cftools/omega_service.py", line 94, in handle_message
    result = await self.query_leaderboard(message.server_name, message.stat)
  File "/usr/local/lib/python3.7/dist-packages/carim_discord_bot/cftools/omega_service.py", line 171, in query_leaderboard
    service_token = self.service_tokens[config.get_server(server_name).cftools_service_id]
KeyError: 'xxxxxxxxxxxxxx'