2019-10-02 09:28:50 +02:00
|
|
|
Kabot
|
|
|
|
=====
|
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
Prerquire :
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
pip3 install zc.buildout
|
|
|
|
|
2021-01-09 18:52:35 +01:00
|
|
|
clone this repository, then :
|
2019-10-02 09:28:50 +02:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
python3 bootstrap-buildout.py
|
|
|
|
./bin/buildout
|
|
|
|
|
|
|
|
Utilisation
|
|
|
|
-----------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2019-10-02 09:30:49 +02:00
|
|
|
|
2021-01-09 18:52:35 +01:00
|
|
|
./bin/kabot -c config.ini
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
2021-01-09 18:55:55 +01:00
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
|
|
|
|
audio_path = /tmp/
|
|
|
|
voice_channel = channel_name
|
|
|
|
text_channel = channel_name
|
|
|
|
|
|
|
|
[discord]
|
|
|
|
token = <discord_token>
|
|
|
|
|
|
|
|
[gitlab]
|
|
|
|
url = https://gitlab.example.com/
|
|
|
|
token = <GITLAB_TOKEN>
|
|
|
|
|
|
|
|
[giphy]
|
|
|
|
token = <GIPHY_TOKEN>
|
|
|
|
|
2021-01-09 18:52:35 +01:00
|
|
|
|
|
|
|
Docker
|
|
|
|
------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
docker build -t kabot .
|
|
|
|
docker run -v /pa/to/your/data:/data kabot:latest
|