-
Notifications
You must be signed in to change notification settings - Fork 19
1 Install
You must have an application registered on the EVE developer site. https://developers.eveonline.com/
You must have a bot registered on the Discord developer site (Can be a Firetail install if you're using that). https://discordapp.com/developers/applications/me
Your Callback/Redirect URL will be whatever your domain is followed by /auth/
Use the following to invite the bot account to your server https://discordapp.com/oauth2/authorize?client_id=**CLIENT_ID**&scope=bot&permissions=0
This requires a web server, I will not be covering how to install apache and/or php. Google how to install a LAMP stack and it will get you everything you need to get started. There's an example apache conf at the end of this page. Setting up your domain is also something not covered here that is readily accessible via google
Step 1 - Install required PHP plugins sudo apt-get install php-sqlite3 php-curl php-xml
Step 2 - Go to the directory where you set your webhost to look (typically /var/www) and do
git clone https://github.com/shibdib/Keepstar.git
and it will create a folder called Keepstar.
Step 3 - Go to the Keepstar folder and do composer install
to install all dependencies.
Step 4 - Go to the config folder and edit the example config file. Save this file then rename it config.php.
Step 5 - sudo chown -R www-data:www-data /var/www/Keepstar
or whatever directory you used (Feel free to use other methods if you like)
Step 6 - Setup a cron job. crontab -u www-data -e
(Or whatever user you chown'd with) and put 0 */2 * * * php /var/www/Keepstar/cron.php
(edit the director if necessary) and it will run the cron every 2 hours.
Step 7 - Visit your admin page to perform one time setup of the bot account (http://yourUrl.com/admin/)
Step 8 - Ensure the bot has roles on your server and is at the top of the role hierarchy (bot needs manage roles, create instant invites, send messages. Easiest to just give it admin if you're lazy)
Step 9 - Send your users to the webpage and let them Auth
Example apache2 config
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName keepstar.shibdib.info
DocumentRoot /var/www/Keepstar/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/Keepstar/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>