You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Matt C 41a7be7a7d fix typo :shipit: 8 hours ago
cogs fix typo :shipit: 8 hours ago
fonts first commit after move 4 months ago
images first commit after move 4 months ago
.gitignore mfw i hadn't committed anything 2 months ago
LICENSE update license and some config notes 2 months ago
Makefile bunch of stuff uhhhh 2 months ago
README.md bunch of stuff uhhhh 2 months ago
bee.txt first commit after move 4 months ago
blacklist_words.txt first commit after move 4 months ago
channel_state.py first commit after move 4 months ago
combo.py fix weather icon? 2 days ago
config.txt sort out config conflict 2 days ago
download_one.py add aliases for `youtubeget` 2 months ago
global_config.py first commit after move 4 months ago
guildutil.py add guildutil and reformat 2 days ago
logger.py ran code formatter 2 months ago
playlist-download.py first commit after move 4 months ago
requirements.txt i want to die just a bit 2 months ago
run-test.sh mfw i hadn't committed anything 2 months ago
server_config.py first commit after move 4 months ago
sharkfacts.txt first commit after move 4 months ago
tuxi first commit after move 4 months ago
util_functions.py bunch of stuff uhhhh 2 months ago
whitelist_words.txt first commit after move 4 months ago

README.md

Gamerbot2

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 libffi (You'll also need to sudo find / -name "libopus.so" and edit config.txt)
      • Debian: sudo apt install -y libopus-dev libffi-dev python-dev (Will probably have the same path as Ubuntu, if not follow above)
    • Internet:
      • Arch: sudo pacman -S curl traceroute whois nmap
      • 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
    • Speak:
      • Arch: sudo pacman -S espeak
      • Debian-based are probably the same
    • Shells:
  • 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=gamerbot
        WorkingDirectory=/home/gamerbot/Gamerbot2
        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>