Headless chatbot that detects spam and posts links to it to chatrooms for quick deletion

SmokeDetector

Headless chatbot that detects spam and posts it to chatrooms. Uses ChatExchange, takes questions from the Stack Exchange realtime tab, and accesses answers via the Stack Exchange API.

Basic setup

To set up SmokeDetector, please use

git clone https://github.com/Charcoal-SE/SmokeDetector.git
cd SmokeDetector
git checkout deploy
sudo pip3 install -r requirements.txt --upgrade
pip3 install --user -r user_requirements.txt --upgrade

Next, copy config.sample to a new file called config,
and edit the values required.

To run, use python3 nocrash.py
(preferably in a daemon-able mode, like a screen session.)
You can also use python3 ws.py,
but then SmokeDetector will be shut down after 6 hours;
when running from nocrash.py, it will be restarted.
(This is to be sure that closed websockets, if any, are reopened.)

Virtual environment setup

Running in a virtual environment
is a

 

 

 

To finish reading, please visit source site