blob: 643f6b6301ef9ca6fe9e74ccf4b1e9362d07aa6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 256phi - Discord Bot
Fun interactions and Proxmox monitoring.
## Commands
- `/pet`, `/boop`, `/hug`, `/cookie`, `/headpat` - fun stuff
- `/node` - full node health (CPU, memory, swap, storage, VMs/containers)
- `/vms` - list all VMs and containers
- `/notify` - send a DM (owner only)
## Run
```bash
pip install -r requirements.txt
python3 bot.py
```
## Systemd Service
```ini
[Unit]
Description=256phi Discord Bot
After=network.target
[Service]
Type=simple
User=mystra
WorkingDirectory=/home/mystra
ExecStart=/usr/bin/python3 bot.py
Restart=on-failure
[Install]
WantedBy=multi-user.target
```
```bash
sudo systemctl enable 256phi
sudo systemctl start 256phi
```
|