https://github.com/camarm-dev/status-bot
Simple Status Bot
https://github.com/camarm-dev/status-bot
Last synced: about 1 year ago
JSON representation
Simple Status Bot
- Host: GitHub
- URL: https://github.com/camarm-dev/status-bot
- Owner: camarm-dev
- Created: 2022-06-19T11:02:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T21:48:48.000Z (over 3 years ago)
- Last Synced: 2025-01-16T02:49:10.541Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Status Bot
This refresh every 120 seconds a message and DM user when service is down !
# Deploy
rename
> `bot.sample.ini` in`bot.ini` file
and add your personal information:
```
[Bot]
Token=bot token
Invite=bot invite link
LogsChannel=log channel id
StatusChannel=status channel id
User=user id will recieve dms
```
rename
> `to_check.sample.json` in`to_check.json` file
and add you own data:
```json
{"data": [
{"url": "http://example.com", "nom": "Example website", "desc": "example website desc", "notify": true},
{"url": "https://www.camarm.dev", "nom": "CAMARM Website", "desc": "Site officiel de CAMARM-DEV.", "notify": false}
]}
```
**To check ip/hostname with tcp write `host://ip` / `host://hostname`**
NOTES: `url`: _url of service_ (**string**), `nom`: _the name that will be showed_ (**string**), `desc`: _a description_ (**string**), `notify`: _if on true, a dm will be sent when service is down and embed will be red with an error gif, if on false nothing will happen except the red circle on embed_ (**bool**)
and type in a terminal
```shell
python3 main.py --config bot.ini
```
Just enjoy !