find console file through zomboid folder
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s
All checks were successful
Build and Push Docker Image / build (push) Successful in 13s
This commit is contained in:
parent
8344bfa3b5
commit
19ec17a69a
@ -5,16 +5,16 @@ Reads and handles updates in the server console file.
|
|||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from os import getenv
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from dataclasses import dataclass
|
|
||||||
|
|
||||||
import httpx
|
|
||||||
import aiofiles
|
import aiofiles
|
||||||
from rcon.source import rcon
|
from rcon.source import rcon
|
||||||
from discord import Embed, Colour
|
from discord import Embed, Colour
|
||||||
from discord.ext import commands, tasks
|
from discord.ext import commands, tasks
|
||||||
|
|
||||||
CONSOLE_FILE_PATH = Path(__file__).parent.parent / "data" / "server-console.txt"
|
ZOMBOID_FOLDER_PATH = getenv("SPIFFO__ZOMBOID_FOLDER_PATH")
|
||||||
|
CONSOLE_FILE_PATH = ZOMBOID_FOLDER_PATH / "server-console.txt"
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user