diff --git a/CHANGELOG.md b/CHANGELOG.md index ab086d5..b865f44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Commands for accessing remote console. +- Shorthand commands for commonly used rcon commands. +- Online user count that is automatically updated and set as the bot's activity presence. +- Console reader for handling events in-game. +- Announce when user has joined/left the server. +- Mod update checker and manager, with announcements for server restart. + ### Fixed ### Changed ### Removed + +## [0.0.1] - 2024-12-06 + +### Added + +- Initial project files and repository \ No newline at end of file diff --git a/cogs/activity.py b/cogs/activity.py index 9a324f3..3f42d50 100644 --- a/cogs/activity.py +++ b/cogs/activity.py @@ -6,7 +6,7 @@ The current intent is to display the server's player count as the activity. import re import logging -from discord import Game +from discord import Game, Status from discord.ext import commands, tasks from rcon.source import rcon @@ -36,7 +36,9 @@ class ActivityCog(commands.Cog): return players_count = int(re_match.group(1)) - await self.bot.change_presence(activity=Game(name=f"with {players_count} survivor{'s' if players_count != 1 else ''}!")) + activity = Game(name=f"with {players_count} survivor{'s' if players_count != 1 else ''}!") + await self.bot.change_presence(activity=activity, status=Status.online) + log.debug("player count in activity updated to: %s", players_count)