v0.5.1: Update stats_commands.py
Pre-release
Pre-release
Bug Fix
- Fixed an issue with the !statsme command where stats weren't being posted to the correct Discord channel when the command was used in-game. There were two main problems:
The code was looking for the wrong configuration key - it was searching for 'discord.factorio_general_id' when the actual key in the config was 'discord.factorio_general_channel_id'
This incorrect key needed to be fixed in two places within the post_player_stats method in stats_commands.py - both where it handles error messages and where it posts the actual stats