김연준

runhelp function details added

......@@ -108,7 +108,7 @@ function handleMessage(message, current_channel){
bot.postMessageToChannel(current_channel, comment, emoji.emojis('flushed'));
}
}
else if(message.includes(' help')){
else if(message.includes(' --help')){
comment = "If you want to start @joker then write [tell me] and write type of joke [knock-knock, general, programming, funny story, reddit]:smiley:!!!";
bot.postMessageToChannel(current_channel, comment, emoji.emojis('smiliey'));
}
......@@ -344,10 +344,10 @@ knockknockJoke= (user_channel)=>{
}
//Function for giving out information to user to control the bot
runHelp = () =>{
comment = "Thanks for using Joker bot!:ghost::ghost:laugh:\nBot info: type '@joker --help'\nBot functions: @joker tell me [something] "
bot.postMessageToChannel('everyone', "Type @joker and write a joke that you would like\n ex- @joker random",emoji.emojis('question'));
runHelp = (user_channel) =>{
comment = "Thanks for using Joker bot!:ghost::ghost:laugh:\nBot info: type '@joker --help' for infos\nBot functions: '@joker tell me [something] joke' will send related jokes, if I don't have what you mentioned, I will tell you I don't have that joke:smile:\n"
current_jokes = "Joke types I have: general , knock-knock , programming , reddit, funny story"
bot.postMessageToChannel(user_channel, comment + current_jokes ,emoji.emojis('question'));
}
}
......