From 8f378115ff9d1ad76d35cb2ee0d404ea7adbde60 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 17 Mar 2017 16:21:44 -0400 Subject: [PATCH] wunderbot help --- app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app.js b/app.js index bfeb55f..62a3a02 100644 --- a/app.js +++ b/app.js @@ -42,6 +42,17 @@ slackbot.on('start', function() { var command = data.text.trim().split(' ')[0]; + if (command === '!help') { + var helpMsg = "I'm Wunderbot, LBRY's slackbot. Here's what I can do:\n" + + '`!help`: this message\n' + + '`!tip`: send LBC tips to others, withdraw and deposit credits\n' + + '\n' + + 'I also update <#C266N3RMM|content> anytime new content is published on LBRY\n\n' + + 'My source code at https://github.com/lbryio/lbry-wunderbot. I\'d love to learn some new tricks\n'; + + slackbot.postMessage(data.channel, helpMsg); + } + if (command === hashbot.command) { hashbot.respond(slackbot, data); }