An open API service indexing awesome lists of open source software.

https://github.com/eugenesia/eugenebot

A conversational Slack bot using Botkit
https://github.com/eugenesia/eugenebot

Last synced: 2 months ago
JSON representation

A conversational Slack bot using Botkit

Awesome Lists containing this project

README

        

# eugenebot
A conversational Slack bot made with Botkit in Node.js

## Installation

### Cbot connection

On Ubuntu, install `firefox-geckodriver` required to communicate with the
Cbot server
```bash
sudo apt install firefox-geckodriver
```

Install cbot in pip3
```bash
pip3 install cleverbotfree
```

### Botkit

Install Botkit dependencies
```bash
cd botkit
npm ci # Or npm install
```

Create _botkit/.env_ from the template file and fill in your Slack secrets.

## Usage

```bash
# Start the Cbot communication server
cd cbot
python3 server.py &

#
cd ../botkit
npm start &
```

## Server usage

Run it on a server

```bash
sudo crontab -e

# Paste the following or similar

# Cbotfree breaks often - pull latest fixes
0 23 * * * pip3 install --upgrade cleverbotfree >> /tmp/cbotfree-upgrade.log 2>&1
# Cbot connection
@reboot cd /srv/eugenebot/cbot; python3 server.py >> /tmp/eugenebot-cbot.log 2>&1
# Wait for Cbot to start up and accept connections
@reboot sleep 30; cd /srv/eugenebot/botkit; npm start >> /tmp/eugenebot-botkit.log 2>&1
```