Geoffrey-Django/GeoffreyApp/docs/source/bot_setup.rst

38 lines
1.1 KiB
ReStructuredText
Raw Normal View History

2019-08-21 17:47:25 +00:00
.. _bot_setup:
******************
Geoffrey Bot Setup
******************
Setup
#####
Installing GeoffreyBot From Source
**********************************
1. Download GeoffreyBot by cloning it
::
2021-07-16 01:10:33 +00:00
git clone https://git.canopymc.net/ZeroHD/Geoffrey-DiscordBot.git GeoffreyBot
2019-08-21 17:47:25 +00:00
2. Change directories into `GeoffreyBot`
::
cd GeoffreyBot/
3. Install GeoffreyBot as a module
::
pip3 install -e .
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
must pass the discord token, the Geoffrey API token and the base url that the GeoffreyApp is running at. An example
2021-07-16 01:10:33 +00:00
can be found `here <https://git.canopymc.net/ZeroHD/Geoffrey-DiscordBot/src/branch/master/geoffrey_bot_start.py>`__
2019-08-21 17:47:25 +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
2021-07-16 01:10:33 +00:00
be found `here <https://git.canopymc.net/ZeroHD/Geoffrey-DiscordBot/src/branch/master/geoffrey_bot.service>`__
2019-09-27 21:15:43 +00:00