-
Notifications
You must be signed in to change notification settings - Fork 22
1. Install
This is written with the expectation that you are installing via Ubuntu or another similar flavor of nix. If anyone wants to write a guide for something else (or an install script, or whatever other cool shit is out there) let me know.
If someone installs successfully with this let me know, or let me know what I missed
Firstly we need to install some back-end stuff
sudo apt-get install git python3.5-dev python3-pip ffmpeg libffi-dev libnacl-dev -y
Next go to the folder you want to install in and use git clone https://github.com/shibdib/Firetail.git
Go into the folder that was just created and do pip3 install --process-dependency-links -e .
Go into the firetail folder and find example_config.py
and set it up to your liking. Once done, save and rename that file to config.py
Now using the discord application described at the top of the config you need to invite the bot user to your server using https://discordapp.com/oauth2/authorize?client_id=PUT_YOUR_BOTS_CLIENT_ID_HERE&scope=bot&permissions=1571904
Now you'll want to setup your bot to run as a service. There's a few ways to do this and I'm no expert on it. But I placed the following in a file named firetail.service
in the /lib/systemd/system/
directory.
[Unit]
Description=Firetail
[Service]
WorkingDirectory=/home/firetailPublic
ExecStart=/usr/bin/python3 /usr/local/bin/firetail-bot -d
Restart=always
[Install]
WantedBy=multi-user.target
followed by a sudo systemctl enable firetail.service
and sudo service firetail start
Assuming your config is setup correctly and you invited the bot to your server. You should now be good to go!