fix incorrect rcon usage
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s

This commit is contained in:
Corban-Lee Jones 2024-12-06 11:38:10 +00:00
parent 271f067eb3
commit 3a286251f4

View File

@ -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: