Bot that will reply a canned answer upon being triggered by a keyword.
- praw
- PyYAML
Details are found in requirements.txt
.
- Clone the repository
git clone git@github.com:normcyr/triggerbot.git
- Create and activage a Python 3 virtual environment
cd triggerbot
virtualenv -p python3 venv
source venv/bin/activate
- Install the triggerbot module
The requirements are included in the setup.py
file.
pip install -e .
- Prepare the configuration files and log files
Create new log files:
mkdir -p triggerbot/log
touch triggerbot/log/info.log
touch triggerbot/log/errors.log
Create the configuration files from the example files:
mv triggerbot/config/config.yml.example triggerbot/config/config.yml
mv triggerbot/config/logging.yml.example triggerbot/config/logging.yml
Then edit both files to suit your needs using your favorite editor (eg nano
):
nano triggerbot/config/config.yml
nano triggerbot/config/logging.yml
- Start the script
triggerbot
You may include LOGGING=DEBUG
before the triggerbot
command to enable debugging.
LOGGING=DEBUG triggerbot