SourceQueryBot
SourceQueryBot copied to clipboard
Utilizing A2S, this discord bot allows you to display servers maps, player count & ip what refreshes at a set interval.
Not being maintained until I have more time. I'll be making some massive changes once I have time.
Smart Presence Requires python 3.7 or higher!
About
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.
Status: Stable
Index
- Setup
- Supported languages
- API
- Preview
Setup
pip3 install SourceQueryBot- Create a file like run.py & enter your bot token.
- Run
run.pyusing pm2 or screen!
Languages
- English (Default) -
SourceQueryBot.translations.English - Russian -
SourceQueryBot.translations.Russian - Chinese -
SourceQueryBot.translations.Chinese
API
-
from SourceQueryBot import SourceQueryBotPass 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 CategoryHandles 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 ServerHandles 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.
Preview
Server List

Smart Presence
Updates the bot's presence every 10 seconds to a different server.

Normal Presence
Displays total server stats.
