From 3a286251f40bf97e8494b1d8bca7ea38ef14994b Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Fri, 6 Dec 2024 11:38:10 +0000 Subject: [PATCH] fix incorrect rcon usage --- cogs/activity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/activity.py b/cogs/activity.py index a831942..f4d21c5 100644 --- a/cogs/activity.py +++ b/cogs/activity.py @@ -8,6 +8,7 @@ import logging from discord import Game from discord.ext import commands, tasks +from rcon.source import rcon log = logging.getLogger(__name__) @@ -27,7 +28,7 @@ class ActivityCog(commands.Cog): """ log.debug("updating activity") - players_message = await self.bot.rcon("players") + players_message = await rcon("players", **self.bot.rcon_details) re_match = re.search(r"Players connected \((\d+)\):", players_message) if not re_match: