Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

SomethingGeneric/Gamerbot-1

Repository files navigation

Gamerbot is now Gamerbot2, and lives here: https://github.com/SomethingGeneric/Gamerbot


Gamerbot

Discord bot with many functions (It's a hot mess around here but it works)

Note

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)

Setup

  • 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
  • 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 to sudo find / -name "libopus.so" and edit config.txt)
      • Debian: sudo apt install -y libopus-dev (Will probably have the same path as Ubuntu, if not follow above)
    • 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/.
    • Memes:
      • Arch: sudo pacman -S figlet
      • Debian-based are probably the same
    • Monitor:
      • Arch: sudo pacman -S curl
      • Debian-based are probably the same
    • Speak:
      • Arch: sudo pacman -S espeak
      • Debian-based are probably the same
  • 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>

This project has moved:

GitLab Repository

About

Discord.py bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published