You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find an example in [docker-compose-example.yml](https://github.com/thisismygithubok/DiscServerMonitor/blob/main/docker-compose-example.yml)
20
+
21
+
## Environment Variables ##
22
+
- REQUIRED
23
+
- DISCORD_GUILD_ID
24
+
- This is your discord server ID
25
+
- DISCORD_BOT_TOKEN
26
+
- This is your discord bot token
27
+
- If you need information on how to create a discord bot, please see the section below on [setting up a discord bot](#setting-up-a-discord-bot)
28
+
29
+
- OPTIONAL
30
+
- TZ
31
+
- This is optional, but you can specify this for the container/logging output timezone
32
+
- Must use IANA standard timezones
33
+
34
+
```
35
+
environment:
36
+
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
37
+
DISCORD_GUILD_ID: ${DISCORD_GUILD_ID}
38
+
TZ: ${TZ}
39
+
```
40
+
41
+
## Volumes ##
42
+
You need to mount the host's /proc as a volume to the container to be able to see system stats.
43
+
If you'd like to see usage stats on other drives than the boot drive, you'll need to mount them as well.
44
+
```
45
+
volumes:
46
+
- /proc:/host_proc:ro
47
+
```
48
+
49
+
## Setting Up a Discord Bot ##
50
+
1. Navigate to the [Discord Developer Portal](https://discord.com/developers/applications)
51
+
2. Create a new application
52
+
- Name it whatever you'd like the app to be named, in this case I've used "DiscServerMonitor"
53
+
3. On the "General Information" page, give it a name and description.
54
+
4. On the "Installation" page, change the install link to "None"
55
+
5. On the "Bot" page, disable "Public Bot", and enable "Message Content Intent"
56
+
- On this same page, make sure to copy your TOKEN as you'll need to pass this to the container
57
+
6. On the "OAuth2" page, in the OAuth2 URL Generator section, choose "bot".
58
+
- In the "Bot Permissions" section below this, in text permissions, choose "Send Messages" and "Manage Messages".
59
+
- Copy the generated URL at the bottom and paste it into your browser. This will open the add bot to discord screen IN DISCORD. Select the server you want to add the bot to, and viola!
0 commit comments