https://github.com/normcyr/triggerbot
Bot that replies canned answered based on trigger words
https://github.com/normcyr/triggerbot
Last synced: 2 months ago
JSON representation
Bot that replies canned answered based on trigger words
- Host: GitHub
- URL: https://github.com/normcyr/triggerbot
- Owner: normcyr
- License: mit
- Created: 2019-01-01T21:01:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T18:58:40.000Z (over 6 years ago)
- Last Synced: 2025-02-14T23:38:43.045Z (4 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reddit Trigger Bot
Bot that will reply a canned answer upon being triggered by a keyword.
## Requirements
- praw
- PyYAMLDetails are found in `requirements.txt`.
## To install
1. Clone the repository
```bash
git clone [email protected]:normcyr/triggerbot.git
```2. Create and activage a Python 3 virtual environment
```bash
cd triggerbot
virtualenv -p python3 venv
source venv/bin/activate
```3. Install the triggerbot module
The requirements are included in the `setup.py` file.
```bash
pip install -e .
```4. Prepare the configuration files and log files
Create new log files:
```bash
mkdir -p triggerbot/log
touch triggerbot/log/info.log
touch triggerbot/log/errors.log
```Create the configuration files from the example files:
```bash
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`):
```bash
nano triggerbot/config/config.yml
``````bash
nano triggerbot/config/logging.yml
```5. Start the script
```bash
triggerbot
```You may include `LOGGING=DEBUG` before the `triggerbot` command to enable debugging.
```bash
LOGGING=DEBUG triggerbot
```