A self hosted Discord bot to display your pc stats.
Download the repo as a zip and extract it to a folder. Open a command prompt in that folder and and then run the command npm install
(needs Node.js).
- Rename the file
config_-_example.json
toconfig.json
. - Goto Discord Developer Page and make a new application.
- Give it any name.
- Then go to the OAuth2 tab and copy the ClientID and paste it in the
config.json
file - Copy the token value from the Bot tab and paste it in the
config.json
file
Either run start.cmd
or open a terminal and run node server.js
For the first run, click on the invite link in the terminal and add the bot to whichever server you want, then goto any channel in that server where you want the stats and type s.start
s.help
- Shows a help messages.ping
- Check API latencys.start
- Start the bot (once only)
This is the configuration file used by the program.
Key | Type | Value |
---|---|---|
token | string | The token of the bot from Discord Developer Page |
clientID | string | The client ID of the bot from Discord Developer Page |
interval | integer | The time in seconds to wait before updating the stats each time |
components | object | An object with key as component name and value as enabled status |
Name | Description |
---|---|
battery | Shows battery percentage and charging status |
memoryUsage | Shows used memory and total memory |
cpuUsage | Shows CPU usage percentage |
{
"token": "your bot token",
"clientID": "your bot client id",
"interval": 30,
"components": {
"battery": true,
"cpuUsage": true,
"memoryUsage": true
}
}
Report any bugs / glitches, or make a suggestion using the github issues section or join the support server Join Server.
Check out my other bots
Join the Discord Server: 3ddelano Cafe
Support the creator