This discord bot can edit multiple messages for multiple source servers containing game details, e.g. player count, map and server name. This allows you to create separate messages for different gamemodes etc.
pip3 install SourceQueryBot
- Create a file like run.py & enter your bot token.
- Run
run.py
using pm2 or screen!
- English (Default) -
SourceQueryBot.translations.English
- Russian -
SourceQueryBot.translations.Russian
- Chinese -
SourceQueryBot.translations.Chinese
-
from SourceQueryBot import SourceQueryBot
Pass any discord bot client args / parameters. Parameters ---------- catagories: list List of category objects. language: TranslationBase Defaults to english, pass it any language class. messages: Messages Handles message caching. smart_presence: bool Defaults to false, if enabled presence will rotate between maps.
-
from SourceQueryBot.settings import Category
Handles server commands. Parameters ---------- name: str Name of category server_name_limit: int Limits how many characters the server name can be. channel: int Discord channel ID for this category. color: hex Hex color code. servers: list List of Server objects. inline: bool Defaults to false, if servers should be inline.
-
from SourceQueryBot.settings import Server
Handles server settings. Parameters ---------- ip: str IP address of server. port: int Port of server, defaults to 27015. alt_name: str Optionally set a name what will overwrite the servers name.
Updates the bot's presence every 10 seconds to a different server.
Displays total server stats.