2019-08-21 17:47:25 +00:00
|
|
|
.. _bot_setup:
|
|
|
|
|
|
|
|
******************
|
|
|
|
Geoffrey Bot Setup
|
|
|
|
******************
|
|
|
|
|
|
|
|
Setup
|
|
|
|
#####
|
|
|
|
|
|
|
|
Installing GeoffreyBot From Source
|
|
|
|
**********************************
|
|
|
|
1. Download GeoffreyBot by cloning it
|
|
|
|
::
|
|
|
|
|
|
|
|
git clone https://git.etztech.xyz/ZeroHD/Geoffrey-DiscordBot.git GeoffreyBot
|
|
|
|
|
|
|
|
2. Change directories into `GeoffreyBot`
|
|
|
|
::
|
|
|
|
|
|
|
|
cd GeoffreyBot/
|
|
|
|
|
|
|
|
3. Install GeoffreyBot as a module
|
|
|
|
::
|
|
|
|
|
|
|
|
pip3 install -e .
|
|
|
|
|
2019-12-14 03:54:06 +00:00
|
|
|
Create A Startup File
|
|
|
|
*********************
|
2019-08-21 17:47:25 +00:00
|
|
|
Since GeoffreyBot is installed as a module, a small bootstrap program must be used to launch it. The bootstrap program
|
2019-12-14 03:54:06 +00:00
|
|
|
must pass the discord token, the Geoffrey API token and the base url that the GeoffreyApp is running at. An example
|
|
|
|
can be found `here <https://git.etztech.xyz/ZeroHD/Geoffrey-DiscordBot/src/branch/master/geoffrey_bot_start.py>`__
|
2019-08-21 17:47:25 +00:00
|
|
|
|
2019-12-14 03:54:06 +00:00
|
|
|
Create A Service File
|
|
|
|
*********************
|
|
|
|
In order to start and restart Geoffrey Bot automatically, a Systemd service can be created. An example service file can
|
|
|
|
be found `here <https://git.etztech.xyz/ZeroHD/Geoffrey-DiscordBot/src/branch/master/geoffrey_bot.service>`__
|
2019-09-27 21:15:43 +00:00
|
|
|
|