Discord server A2S bot.
Project description
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
pip3 install SourceQueryBot
- Create a file like run.py & enter your bot token.
- Run
run.py
using pm2 or screen!
Languages
- English (Default) -
SourceQueryBot.translations.English
- Russian -
SourceQueryBot.translations.Russian
- Chinese -
SourceQueryBot.translations.Chinese
API
-
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.
Preview
Server List
Smart Presence
Updates the bot's presence every 10 seconds to a different server.
Normal Presence
Displays total server stats.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SourceQueryBot-1.0.5.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file SourceQueryBot-1.0.5.tar.gz
.
File metadata
- Download URL: SourceQueryBot-1.0.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2c1c58020406b603d4b906bb107b25fc32344997f97bb0f41e81624c614ee95 |
|
MD5 | 44b7f6248b2076e6627dba7484be713d |
|
BLAKE2b-256 | 5dd72a508102cff647292b75d32d8dad48aeb88d113789cbbcd92b74eda722f9 |
File details
Details for the file SourceQueryBot-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: SourceQueryBot-1.0.5-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfe2d7990c4fa5434e8e57150174ec3458f32c4903754d10af6257d72d3ffee9 |
|
MD5 | 0f8f70ff3f30104858a8505050a00e09 |
|
BLAKE2b-256 | 7cbbc79e496f22431c92cdc759ef2a03b81972f2dc5494b95659ace6fbb3acb7 |