//postMessageToChannel(name, message [, params, callback]) (return: promise) - posts a message to channel by name.
bot.postMessageToChannel(data.channels[i].name,'Have some fun with @Joker!\nFor commands write @joker -help'
bot.postMessageToChannel(data.channels[i].name,'Have some fun with @Joker!\nFor commands write @joker [-help]'
,emoji.emojis('bowtie'));
}
...
...
@@ -110,7 +111,7 @@ function handleMessage(message, current_channel){
UserMakeJoke(current_channel);
}
elseif(message.includes(' me')){
comment="Please use @joker --help to know what I can do!:smile::smile::smile:\n You can write type of joke[knock-knock, general, programming, funny story, reddit]";
comment="Please use @joker [-help] to know what I can do!:smile::smile::smile:\n You can write type of joke[knock-knock, general, programming, funny story, reddit]";
bot.postMessageToChannel(current_channel,"Tell you what??? :no_mouth:",emoji.emojis('no_mouth'));
//Function for giving out information to user to control the bot
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"
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"