Package Exports
- steam-chat-bot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (steam-chat-bot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-steam-chat-bot
Simplified interface for a steam chat bot. This is a wrapper around Steam for Node.js which is aimed at making an easily configurable chatbot that sits in Steam groups chat rooms and responds to various events. Responses are handled as a set of triggers of various types which can be configured to respond to a number of different chat messages. The triggers that currently exist are:
AcceptChatInviteTrigger - Joins a specified chatroom when invited and says an optional welcome message.
AcceptFriendRequestTrigger - Automatically accepts any friend requests sent to the bot.
BotCommandTrigger - Runs a command on the bot when a specific command message is typed, currently only supports mute and unmute commands.
ButtBotTrigger - Repeats a message, but with one word randomly replaced with a specific other word. The canonical example is replacing a random word with "butt".
ChatReplyTrigger - Detects a message (either an exact match or a "contains" match) and replies with a specified message.
CleverbotTrigger - Uses cleverbot to reply to a message, optionally only when a specific word is mentioned.
RegexReplaceTrigger - Detects a regex match in a message and uses the matches to construct a reply.
TumblrTrigger - Allows the bot to post things to a tumblr blog, either by commands (!postphoto, !postquote, !posttext, !postlink, !postchat, !postaudio, !postvideo), or by monitoring the chatrooms the bot is in for links. You will need to register an app here: http://www.tumblr.com/oauth/apps and follow these instructions to get the keys: https://groups.google.com/d/msg/tumblr-api/gz8Zv-Mhex4/8-eACnkArkgJ.
WolframAlphaTrigger - Queries Wolfram Alpha if a message starts with a specified command. This only displays a textual representation of the primary result (if it exists) so it's not always a good answer. You will need an appId from http://products.wolframalpha.com/api/.
YoutubeTrigger - Responds to a message with the top YouTube search result if it starts with a specific command. Also has an option to randomly rickroll instead of returning the best result.
To get this running in Windows you'll need to follow the setup instructions for node-gyp and also use a branch of libxmljs as described in this issue (TLDR is to run 'npm install polotek/libxmljs#vendor-src' before 'npm install').
See example.js for an example usage.