https://github.com/hampta/dsm
Discord Source Server Monitoring bot
https://github.com/hampta/dsm
Last synced: about 1 year ago
JSON representation
Discord Source Server Monitoring bot
- Host: GitHub
- URL: https://github.com/hampta/dsm
- Owner: hampta
- License: mit
- Created: 2022-03-29T19:00:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T15:26:31.000Z (over 2 years ago)
- Last Synced: 2023-11-20T16:36:49.553Z (over 2 years ago)
- Language: Python
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Discord Server Monitoring #

[](https://heroku.com/deploy?template=https://github.com/hampta/DSM)
## Information ##
All games on the Source (CSS, CSGO) and GoldSource (HL1DM, CS 1.6) engines are supported.
- Auto update once a minute
- Manual update
- Easy to use
## Usage ##
### Commands ###
It has just four commands:
* `!add :<*port>` — add specified IP:port to your watchlist so bot will check those servers every 2 minutes and notify you with those IP:ports if one of them (or more) go down
* `!remove :<*port>` — removes certain server from your watchlist
* `!help` - help message
\* - optional (defalut value is 27015
## Installation ##
### Requirements ###
python 3.8+ with latest packages:
* discord.py
* tortoise-orm
* SQLite or PostgresSQL
### Actually installing & running ###
**Windows**:
```
git clone http://github.com/hampta/DSM
cd DSM
pip install -r requirements.txt
python main.py
```
**Linux**:
```
git clone http://github.com/hampta/DSM
cd DSM
pip3 install -r requirements.txt
python3 main.py
```
Now go to [this page](https://discordapp.com/developers/applications/me/create), log in and create an application (application name is not bot’s name, but the image will be used as your bot’s avatar), then create a bot user & give it a name, save, click on „click to reveal“ near the „Token:“, copy the token.
Navigate to the root folder of downloaded repo, open `config.py` with any text editor. Save the file and close it.
Last step: go back to the application page and copy the **Client ID**, then replace `CLIENT_ID_GOES_HERE` with the actual Client ID in this link: `https://discordapp.com/api/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot&permissions=0`. Visit it and select the server you want your bot to join. Bam, done.