No description
  • CoffeeScript 96.3%
  • JavaScript 2.7%
  • Shell 0.8%
  • Batchfile 0.1%
Find a file
James Peret 8f2aa356b3 Fix User Middleware issues
Fixed user middleware routing when saving telegram and socket id would halt execution.
2017-07-20 20:30:48 -03:00
bin fixed start.sh and bin/service for use with systemd 2017-05-15 23:16:59 +00:00
models Add user checking middleware 2017-07-18 01:50:02 -03:00
scripts Fix User Middleware issues 2017-07-20 20:30:48 -03:00
.editorconfig Initial commit 2016-04-02 19:11:31 +02:00
.gitignore Better logging 2017-07-17 00:11:04 -03:00
external-scripts.json Better logging 2017-07-17 00:11:04 -03:00
package.json Better logging 2017-07-17 00:11:04 -03:00
Procfile Scripts for learning and querying basic definitions and relations 2016-04-07 22:48:02 +02:00
README.md Add introduction action-mappings triggered by NLP 2017-06-26 02:50:53 -03:00
start.sh fixed start.sh and bin/service for use with systemd 2017-05-15 23:16:59 +00:00
test.json Scripts for learning and querying basic definitions and relations 2016-04-07 22:48:02 +02:00
voice.sh List relations, get username and basic cursing 2016-05-02 23:16:02 -03:00

Beta

Beta is a chat bot created by James Peret. It is built on the Hubot framework by Github. Betabot uses Wit.ai for NLP and the hubot-multi-adapter for input/output on telegram and socket.io. It also uses the Automagicly service for background processing.

Running Beta Locally

You can start Beta locally by running:

% bin/hubot

Running Beta as a service

First create a new service file /etc/systemd/system/betabot.service and configure paths and tokens:

Unit]
Description=A friendly chatbot
Requires=network.target
After=network.target

[Service]
Type=simple
User=root
ExecStart=/root/betabot/betabot-brain/start.sh
Restart=on-failure
StandardOutput=syslog
SyslogIdentifier=betabot
WorkingDirectory=/root/betabot/betabot-brain/
Environment=NODE_ENV=production
Environment=AUTOMAGICLY_TIMER_URL=XXXXXXXXXXXXXXXXXX
Environment=TELEGRAM_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXX
Environment=WOLFRAM_APPID=XXXXXXXXXXXXXXXXXXXXXXXX

[Install]
WantedBy=multi-user.target

To start the service run:

systemctl stop betabot
systemctl start betabot

To see the output of the program, run:

journalctl -f -u betabot.service