Showing
1 changed file
with
1 additions
and
8 deletions
... | @@ -126,14 +126,7 @@ function handleMessage(message, current_channel){ | ... | @@ -126,14 +126,7 @@ function handleMessage(message, current_channel){ |
126 | bot.postMessageToChannel(current_channel, comment, emoji.emojis('flushed')); | 126 | bot.postMessageToChannel(current_channel, comment, emoji.emojis('flushed')); |
127 | }*/ | 127 | }*/ |
128 | } | 128 | } |
129 | -function MakeJoke(message){ | 129 | + |
130 | - fs.writeFile('../joke_data//jokes.json',message,function(err){ | ||
131 | - if(err) { | ||
132 | - console.log('Error' + err); | ||
133 | - } | ||
134 | - console.log('완료'); | ||
135 | - }) | ||
136 | -} | ||
137 | //Gets a random integer | 130 | //Gets a random integer |
138 | function getRandomInt(max_num) { | 131 | function getRandomInt(max_num) { |
139 | min = Math.ceil(1); | 132 | min = Math.ceil(1); | ... | ... |
-
Please register or login to post a comment