Skip to content

v0.5.1: Update stats_commands.py

Pre-release
Pre-release

Choose a tag to compare

@BanRevenant BanRevenant released this 30 Nov 06:43
· 2 commits to master since this 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