No description
- CoffeeScript 96.3%
- JavaScript 2.7%
- Shell 0.8%
- Batchfile 0.1%
Fixed user middleware routing when saving telegram and socket id would halt execution. |
||
|---|---|---|
| bin | ||
| models | ||
| scripts | ||
| .editorconfig | ||
| .gitignore | ||
| external-scripts.json | ||
| package.json | ||
| Procfile | ||
| README.md | ||
| start.sh | ||
| test.json | ||
| voice.sh | ||
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