Chatbot for Camelot Unchained
This is a general-purpose bot written in Node.js for use with Camelot Unchained. The following functionalities exist:
- Monitoring for users joining the XMPP server or game client and sending them a Message of the Day (MOTD).
- Monitoring chat rooms for messages sent by CSE staff members and sending those messages to users not connected to the XMPP server.
- Providing chat-based commands to access the Camelot Unchained REST API.
Additional commands can easily be added in the chatCommands object at the top of the script.
Requires:
* The bluebird module is only required when using older versions of Node.js which don't have Promise support.
Optional:
- node-pushover - Needed to send Pushover notifications.
- node-applescript - Needed to send iMessage notifications. Requires OSX.
- aws-sdk - Needed to send push notifications (SMS/email/etc.) via AWS SNS.
Much thanks to the CU Mod Squad for their help with learning Node.js.
Originally based on https://gist.github.com/powdahound/940969
OpenShift server script which provides a web interface to game statistics and starts the chatbot.
Interface object to the Camelot Unchained REST API.