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.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.
Metadata
Release files for SourceQueryBot 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SourceQueryBot-1.0.5.tar.gz | 6.6 kB | Without provenance | Details for SourceQueryBot-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SourceQueryBot-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for SourceQueryBot-1.0.5-py3-none-any.whl |
Total release size: 26.2 kB
Release files / SourceQueryBot-1.0.5.tar.gz
| Download URL | SourceQueryBot-1.0.5.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2c1c58020406b603d4b906bb107b25fc32344997f97bb0f41e81624c614ee95
|
|
BLAKE2b-256 checksum How to use checksums |
5dd72a508102cff647292b75d32d8dad48aeb88d113789cbbcd92b74eda722f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / SourceQueryBot-1.0.5-py3-none-any.whl
| Download URL | SourceQueryBot-1.0.5-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfe2d7990c4fa5434e8e57150174ec3458f32c4903754d10af6257d72d3ffee9
|
|
BLAKE2b-256 checksum How to use checksums |
7cbbc79e496f22431c92cdc759ef2a03b81972f2dc5494b95659ace6fbb3acb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for SourceQueryBot 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.