Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -113,8 +113,8 @@ function handleMessage(message, current_channel){ | ... | @@ -113,8 +113,8 @@ function handleMessage(message, current_channel){ |
113 | bot.postMessageToChannel(current_channel, comment, emoji.emojis('smiliey')); | 113 | bot.postMessageToChannel(current_channel, comment, emoji.emojis('smiliey')); |
114 | } | 114 | } |
115 | else if(message.includes(' what jokes')){ | 115 | else if(message.includes(' what jokes')){ |
116 | - jokeTypes = ["general", 'programming', 'knock-knock']; | 116 | + jokeTypes = ["general", 'programming', 'knock-knock','reddit','funny story']; |
117 | - bot.postMessageToChannel(current_channel, `I have ${jokeTypes[0]}, ${jokeTypes[1]}, ${jokeTypes[2]} jokes!! :thumbsup: :thumbsup:`, emoji.emojis('thumbsup')); | 117 | + bot.postMessageToChannel(current_channel, `I have ${jokeTypes[0]}, ${jokeTypes[1]}, ${jokeTypes[2]},${jokeTypes[3]},${jokeTypes[4]} jokes!! :thumbsup: :thumbsup:`, emoji.emojis('thumbsup')); |
118 | return; | 118 | return; |
119 | } | 119 | } |
120 | //else if(message.inculdes(' write')) | 120 | //else if(message.inculdes(' write')) |
... | @@ -257,7 +257,7 @@ programmingJoke= (user_channel)=>{ | ... | @@ -257,7 +257,7 @@ programmingJoke= (user_channel)=>{ |
257 | 257 | ||
258 | 258 | ||
259 | 259 | ||
260 | -//Function for giving out random joke after filtering only reddit jokes | 260 | +//Function for giving out funny story |
261 | Funnystory= (user_channel)=>{ | 261 | Funnystory= (user_channel)=>{ |
262 | MongoClient.connect(url, function (err, client){ | 262 | MongoClient.connect(url, function (err, client){ |
263 | if (err) throw err; | 263 | if (err) throw err; | ... | ... |
-
Please register or login to post a comment