Gamerbot is now Gamerbot2, and lives here: https://github.com/SomethingGeneric/Gamerbot
Discord bot with many functions (It's a hot mess around here but it works)
The update function from git will not work unless you properly clone the repo and have some service like sytemd keeping the bot process alive (Example system-d unit is below)
- Ensure you have git and pip
- Arch Linux (and derivatives):
sudo pacman -S git python-pip
- Debian based:
sudo apt install python3-dev git -y
- Arch Linux (and derivatives):
pip3 install -r requirements.txt
- Other requirements per cog (if you're going to disable a cog, you shouldn't need it's requirements):
- Music:
- Arch:
sudo pacman -S opus
(You'll also need tosudo find / -name "libopus.so"
and editconfig.txt
) - Debian:
sudo apt install -y libopus-dev
(Will probably have the same path as Ubuntu, if not follow above)
- Arch:
- Internet:
- Arch:
sudo pacman -S curl traceroute whois nmap traceroute && paru|yay -S tuxi-git
- Debian-based are probably the same, and also:
wget https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip && unzip pup_v0.4.0_linux_amd64.zip && mv pup .local/bin/.
- Arch:
- Memes:
- Arch:
sudo pacman -S figlet
- Debian-based are probably the same
- Arch:
- Monitor:
- Arch:
sudo pacman -S curl
- Debian-based are probably the same
- Arch:
- Speak:
- Arch:
sudo pacman -S espeak
- Debian-based are probably the same
- Arch:
- Music:
- Review things in config labeled
# NEED TO CHANGE
- Set the environment variable
bottoken
to your bot account token and run- Example:
bottoken=<> python3 combo.py
- Other example:
#!/bin/bash bottoken=<x> python3 combo.py
- System-d service example:
- Add to
/etc/systemd/system/<some_fn>.service
:[Unit] Description=Discord Bot After=network.target [Service] User=matt WorkingDirectory=/home/matt/Gamerbot Environment="bottoken=SomeRandomComboOfStuffGoesHere" ExecStart=python3 combo.py Restart=always [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload && sudo systemctl enable --now <some_fn>
- If you ever have issues,
sudo systemctl status <some_fn>
- Add to
- Example: