fix incorrect rcon usage
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s
This commit is contained in:
parent
271f067eb3
commit
3a286251f4
@ -8,6 +8,7 @@ import logging
|
|||||||
|
|
||||||
from discord import Game
|
from discord import Game
|
||||||
from discord.ext import commands, tasks
|
from discord.ext import commands, tasks
|
||||||
|
from rcon.source import rcon
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ class ActivityCog(commands.Cog):
|
|||||||
"""
|
"""
|
||||||
log.debug("updating activity")
|
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)
|
re_match = re.search(r"Players connected \((\d+)\):", players_message)
|
||||||
|
|
||||||
if not re_match:
|
if not re_match:
|
||||||
|
Reference in New Issue
Block a user