Slack App to communicate with Cleverbot
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
clever.py
cleverme-icon.png
cleverme.py
cleverwrap.py
config.py.dist
requirements.txt

README.md

About: Python Translator between a Slack Channel and Cleverbot.com's API using Redis for Conversation Retention and Cleverbot.io's API as a backup.

Requirments:

- The username you set when creating your token is NOT the slack_bot_user in the config.py!

Optional Configuration:

- Suggested as a fallback in the event your cleverbot.com API has issues.
  • Redis Server

Install //Ubuntu || Assuming you are logged in as root

    apt-get install redis-server python git

    pip install redis slackclient

    adduser cleverme

    su cleverme

    cd ~/

    git clone https://github.com/ixof/cleverme.git

    cd cleverme

    cp config.py.dist config.py

    nano config.py

Running //Testing

    python cleverme.py

Running //Ubunut Start (headless)

    nohup python /home/cleverme/cleverme/cleverme.py -d &

Running //Ubuntu Install

    crontab -e

    	###add to the bottom of the crontab file the following line:###

    @reboot nohup python /home/cleverme/cleverme/cleverme.py -d &

    	###CLTR+X, press Y, then press Enter###

Install #Note: You will need to edit config.py with the necessary information.

Install #Note: For more redis support, check out https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04