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
- Host: GitHub
- URL: https://github.com/eugenesia/eugenebot
- Owner: eugenesia
- Created: 2020-05-14T22:50:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T01:19:29.000Z (over 2 years ago)
- Last Synced: 2025-02-12T02:47:59.679Z (4 months ago)
- Language: Java
- Homepage:
- Size: 43.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
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
```