Flare
An easy-to-use, dead-simple cog to add a tiny, simple, fast webpage to your bot in order to enable uptime monitoring with something like UptimeRobot.
Heavily inspired (read: mostly taken) from this StackOverflow answer: https://stackoverflow.com/a/62481294/5623598. Thanks random internet person!!
Usage
Simply install the cog with pip install flare and then import it: from Flare import Flare. Finally, load the cog with bot.add_cog(Flare(bot)) and you're off to the races!!
Take a look at http://localhost:5000/ to see the bot's status page.
Example
For an example implementation, take a look at example_bot/bot.py, where there is a minimum viable bot implementing this page.
Configuration
The cog has three env vars, but the defaults work fine for a plug and play setup. If you want to change them, here's what you need to know:
FLARE_PORTis the port the webserver is exposed on, and it defaults to 5000. Set it to any number to change the port to your heart's desire.FLARE_PATHis the path to the page. This defaults to/, but you can change it with this var to whatever you choose.FLARE_HOSTis the host to listen on, defaults toNonewhich in this case means all interfaces. You can set it to a specific IP if you would like to change this configuration.
Metadata
Release files for flare-discord.py 1.0.0
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 |
|---|---|---|---|---|
| flare-discord.py-1.0.0.tar.gz | 2.7 kB | Without provenance | Details for flare-discord.py-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flare_discord.py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for flare_discord.py-1.0.0-py3-none-any.whl |
Total release size: 6.2 kB
Release files / flare-discord.py-1.0.0.tar.gz
| Download URL | flare-discord.py-1.0.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32063b7b024a05c742664a5b54072c2765f25f1efa0279cb21821211a791c460
|
|
BLAKE2b-256 checksum How to use checksums |
338fa128619c52e7b58de31e3585bf3281e1104e4df7e7c01612590f1e3c6765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / flare_discord.py-1.0.0-py3-none-any.whl
| Download URL | flare_discord.py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7010f20d3a637e7038ab1a5488d887623a78c2dca7f374a5ebb2cf807edafc40
|
|
BLAKE2b-256 checksum How to use checksums |
415b9f7efae593d36acc7cfe6618d9c0148ceb6544bff5686a6ad044552f0d81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for flare-discord.py 1.0.0
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.