김연준

Initial commit for scatching slackbot idea

1 +node_modules
...\ No newline at end of file ...\ No newline at end of file
1 +const SlackBot = require('slackbots');
2 +const axios = require('axios');
3 +
4 +const bot = new SlackBot({
5 + token : "xoxb-582582124755-587875604934-rRhFVlXlB0StEMnlrmsQlcac",
6 + name : "Joker"
7 +});
8 +
9 +// Start Handler
10 +bot.on('start', () =>{
11 + const face = {
12 + icon_emoji: ':laughing:'
13 + };
14 +
15 + bot.postMessageToChannel('everyone', 'Feeling tired??? Have some fun with @Joker!'
16 + , face);
17 +});
18 +
19 +// Error Handler
20 +bot.on('error', (err) => console.log(err));
21 +
22 +//Message Handler
23 +bot.on('message', (data) => {
24 + if(data.type !== 'message'){
25 + return;
26 + }
27 +
28 + console.log(data);
29 + handleMessage(data.text);
30 +
31 +});
32 +
33 +
34 +// Responding to Data
35 +function handleMessage(message){
36 + if(message.includes('chucknorris')){
37 + chuckJoke();
38 + }
39 + else if(message.includes(' yomama')){
40 + yoMamaJoke();
41 + }
42 + else if(message.includes(' random')){
43 + randomJoke();
44 + }
45 + else if(message.includes(' help')){
46 + runHelp();
47 + }
48 +}
49 +
50 +
51 +// Tell a Chuck Norris Joke
52 +function chuckJoke(){
53 + axios.get('http://api.icndb.com/jokes/random/')
54 + .then(res =>{
55 + const joke = res.data.value.joke;
56 +
57 + const face = {
58 + icon_emoji: ':laughing:'
59 + };
60 +
61 + bot.postMessageToChannel('everyone', `Chuck Norris: ${joke}`,face);
62 + bot.postMessageToChannel('full-stack-web', `Yo mama: ${joke}`,face);
63 + bot.postMessageToChannel('bot_test', `Yo mama: ${joke}`,face);
64 + });
65 +}
66 +
67 +// Tell a yomama Joke
68 +function yoMamaJoke(){
69 + axios.get('http://api.yomomma.info/')
70 + .then(res =>{
71 + const joke = res.data.joke;
72 +
73 + const face = {
74 + icon_emoji: ':laughing:'
75 + };
76 +
77 + bot.postMessageToChannel('everyone', `Yo mama: ${joke}`,face);
78 + bot.postMessageToChannel('full-stack-web', `Yo mama: ${joke}`,face);
79 + bot.postMessageToChannel('bot_test', `Yo mama: ${joke}`,face);
80 +
81 + });
82 +}
83 +//Tell random joke
84 +function randomJoke(){
85 + const rand = Math.floor(Math.random() * 2) +1;
86 + if(rand ===1){
87 + chuckJoke();
88 + }
89 + else if(rand === 2){
90 + yoMamaJoke();
91 + }
92 +}
93 +function runHelp(){
94 + const face = {
95 + icon_emoji: ':question:'
96 + };
97 +
98 + bot.postMessageToChannel('everyone', "Type @joker and write a joke that you would like\n ex- @joker random",face);
99 + bot.postMessageToChannel('full-stack-web', "Type @joker and write a joke that you would like\n ex- @joker random",face);
100 +}
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "name": "joker",
3 + "version": "1.0.0",
4 + "lockfileVersion": 1,
5 + "requires": true,
6 + "dependencies": {
7 + "ajv": {
8 + "version": "6.10.0",
9 + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz",
10 + "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==",
11 + "requires": {
12 + "fast-deep-equal": "^2.0.1",
13 + "fast-json-stable-stringify": "^2.0.0",
14 + "json-schema-traverse": "^0.4.1",
15 + "uri-js": "^4.2.2"
16 + }
17 + },
18 + "asn1": {
19 + "version": "0.2.4",
20 + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
21 + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
22 + "requires": {
23 + "safer-buffer": "~2.1.0"
24 + }
25 + },
26 + "assert-plus": {
27 + "version": "1.0.0",
28 + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
29 + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
30 + },
31 + "asynckit": {
32 + "version": "0.4.0",
33 + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
34 + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
35 + },
36 + "aws-sign2": {
37 + "version": "0.7.0",
38 + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
39 + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
40 + },
41 + "aws4": {
42 + "version": "1.8.0",
43 + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
44 + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
45 + },
46 + "axios": {
47 + "version": "0.18.0",
48 + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
49 + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=",
50 + "requires": {
51 + "follow-redirects": "^1.3.0",
52 + "is-buffer": "^1.1.5"
53 + }
54 + },
55 + "bcrypt-pbkdf": {
56 + "version": "1.0.2",
57 + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
58 + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
59 + "requires": {
60 + "tweetnacl": "^0.14.3"
61 + }
62 + },
63 + "capture-stack-trace": {
64 + "version": "1.0.1",
65 + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz",
66 + "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw=="
67 + },
68 + "caseless": {
69 + "version": "0.12.0",
70 + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
71 + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
72 + },
73 + "combined-stream": {
74 + "version": "1.0.7",
75 + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz",
76 + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==",
77 + "requires": {
78 + "delayed-stream": "~1.0.0"
79 + }
80 + },
81 + "core-util-is": {
82 + "version": "1.0.2",
83 + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
84 + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
85 + },
86 + "create-error-class": {
87 + "version": "3.0.2",
88 + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
89 + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=",
90 + "requires": {
91 + "capture-stack-trace": "^1.0.0"
92 + }
93 + },
94 + "dashdash": {
95 + "version": "1.14.1",
96 + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
97 + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
98 + "requires": {
99 + "assert-plus": "^1.0.0"
100 + }
101 + },
102 + "debug": {
103 + "version": "3.2.6",
104 + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
105 + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
106 + "requires": {
107 + "ms": "^2.1.1"
108 + }
109 + },
110 + "delayed-stream": {
111 + "version": "1.0.0",
112 + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
113 + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
114 + },
115 + "duplexer3": {
116 + "version": "0.1.4",
117 + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
118 + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI="
119 + },
120 + "ecc-jsbn": {
121 + "version": "0.1.2",
122 + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
123 + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
124 + "requires": {
125 + "jsbn": "~0.1.0",
126 + "safer-buffer": "^2.1.0"
127 + }
128 + },
129 + "extend": {
130 + "version": "2.0.2",
131 + "resolved": "https://registry.npmjs.org/extend/-/extend-2.0.2.tgz",
132 + "integrity": "sha512-AgFD4VU+lVLP6vjnlNfF7OeInLTyeyckCNPEsuxz1vi786UuK/nk6ynPuhn/h+Ju9++TQyr5EpLRI14fc1QtTQ=="
133 + },
134 + "extsprintf": {
135 + "version": "1.3.0",
136 + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
137 + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
138 + },
139 + "fast-deep-equal": {
140 + "version": "2.0.1",
141 + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
142 + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
143 + },
144 + "fast-json-stable-stringify": {
145 + "version": "2.0.0",
146 + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
147 + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
148 + },
149 + "follow-redirects": {
150 + "version": "1.7.0",
151 + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.7.0.tgz",
152 + "integrity": "sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ==",
153 + "requires": {
154 + "debug": "^3.2.6"
155 + }
156 + },
157 + "forever-agent": {
158 + "version": "0.6.1",
159 + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
160 + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
161 + },
162 + "form-data": {
163 + "version": "2.3.3",
164 + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
165 + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
166 + "requires": {
167 + "asynckit": "^0.4.0",
168 + "combined-stream": "^1.0.6",
169 + "mime-types": "^2.1.12"
170 + }
171 + },
172 + "free-google-image-search": {
173 + "version": "1.0.0",
174 + "resolved": "https://registry.npmjs.org/free-google-image-search/-/free-google-image-search-1.0.0.tgz",
175 + "integrity": "sha1-emJ4vo7cZG7ZanEiUdsyZxckyBU="
176 + },
177 + "get-stream": {
178 + "version": "3.0.0",
179 + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
180 + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="
181 + },
182 + "getpass": {
183 + "version": "0.1.7",
184 + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
185 + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
186 + "requires": {
187 + "assert-plus": "^1.0.0"
188 + }
189 + },
190 + "google-images": {
191 + "version": "2.1.0",
192 + "resolved": "https://registry.npmjs.org/google-images/-/google-images-2.1.0.tgz",
193 + "integrity": "sha1-EnSuQEgll4Jk06T48tUmuI0L8Cw=",
194 + "requires": {
195 + "got": "^6.7.1"
196 + }
197 + },
198 + "got": {
199 + "version": "6.7.1",
200 + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz",
201 + "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=",
202 + "requires": {
203 + "create-error-class": "^3.0.0",
204 + "duplexer3": "^0.1.4",
205 + "get-stream": "^3.0.0",
206 + "is-redirect": "^1.0.0",
207 + "is-retry-allowed": "^1.0.0",
208 + "is-stream": "^1.0.0",
209 + "lowercase-keys": "^1.0.0",
210 + "safe-buffer": "^5.0.1",
211 + "timed-out": "^4.0.0",
212 + "unzip-response": "^2.0.1",
213 + "url-parse-lax": "^1.0.0"
214 + }
215 + },
216 + "har-schema": {
217 + "version": "2.0.0",
218 + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
219 + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
220 + },
221 + "har-validator": {
222 + "version": "5.1.3",
223 + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
224 + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
225 + "requires": {
226 + "ajv": "^6.5.5",
227 + "har-schema": "^2.0.0"
228 + }
229 + },
230 + "http-signature": {
231 + "version": "1.2.0",
232 + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
233 + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
234 + "requires": {
235 + "assert-plus": "^1.0.0",
236 + "jsprim": "^1.2.2",
237 + "sshpk": "^1.7.0"
238 + }
239 + },
240 + "is-buffer": {
241 + "version": "1.1.6",
242 + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
243 + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
244 + },
245 + "is-redirect": {
246 + "version": "1.0.0",
247 + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz",
248 + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ="
249 + },
250 + "is-retry-allowed": {
251 + "version": "1.1.0",
252 + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz",
253 + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ="
254 + },
255 + "is-stream": {
256 + "version": "1.1.0",
257 + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
258 + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
259 + },
260 + "is-typedarray": {
261 + "version": "1.0.0",
262 + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
263 + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
264 + },
265 + "isstream": {
266 + "version": "0.1.2",
267 + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
268 + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
269 + },
270 + "jsbn": {
271 + "version": "0.1.1",
272 + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
273 + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
274 + },
275 + "json-schema": {
276 + "version": "0.2.3",
277 + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
278 + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
279 + },
280 + "json-schema-traverse": {
281 + "version": "0.4.1",
282 + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
283 + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
284 + },
285 + "json-stringify-safe": {
286 + "version": "5.0.1",
287 + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
288 + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
289 + },
290 + "jsprim": {
291 + "version": "1.4.1",
292 + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
293 + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
294 + "requires": {
295 + "assert-plus": "1.0.0",
296 + "extsprintf": "1.3.0",
297 + "json-schema": "0.2.3",
298 + "verror": "1.10.0"
299 + }
300 + },
301 + "lodash": {
302 + "version": "4.17.11",
303 + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
304 + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
305 + },
306 + "lowercase-keys": {
307 + "version": "1.0.1",
308 + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
309 + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA=="
310 + },
311 + "mime-db": {
312 + "version": "1.38.0",
313 + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
314 + "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg=="
315 + },
316 + "mime-types": {
317 + "version": "2.1.22",
318 + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz",
319 + "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==",
320 + "requires": {
321 + "mime-db": "~1.38.0"
322 + }
323 + },
324 + "ms": {
325 + "version": "2.1.1",
326 + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
327 + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
328 + },
329 + "oauth-sign": {
330 + "version": "0.9.0",
331 + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
332 + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
333 + },
334 + "options": {
335 + "version": "0.0.6",
336 + "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz",
337 + "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8="
338 + },
339 + "performance-now": {
340 + "version": "2.1.0",
341 + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
342 + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
343 + },
344 + "prepend-http": {
345 + "version": "1.0.4",
346 + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
347 + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw="
348 + },
349 + "psl": {
350 + "version": "1.1.31",
351 + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz",
352 + "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw=="
353 + },
354 + "punycode": {
355 + "version": "2.1.1",
356 + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
357 + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
358 + },
359 + "qs": {
360 + "version": "6.5.2",
361 + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
362 + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
363 + },
364 + "request": {
365 + "version": "2.88.0",
366 + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
367 + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
368 + "requires": {
369 + "aws-sign2": "~0.7.0",
370 + "aws4": "^1.8.0",
371 + "caseless": "~0.12.0",
372 + "combined-stream": "~1.0.6",
373 + "extend": "~3.0.2",
374 + "forever-agent": "~0.6.1",
375 + "form-data": "~2.3.2",
376 + "har-validator": "~5.1.0",
377 + "http-signature": "~1.2.0",
378 + "is-typedarray": "~1.0.0",
379 + "isstream": "~0.1.2",
380 + "json-stringify-safe": "~5.0.1",
381 + "mime-types": "~2.1.19",
382 + "oauth-sign": "~0.9.0",
383 + "performance-now": "^2.1.0",
384 + "qs": "~6.5.2",
385 + "safe-buffer": "^5.1.2",
386 + "tough-cookie": "~2.4.3",
387 + "tunnel-agent": "^0.6.0",
388 + "uuid": "^3.3.2"
389 + },
390 + "dependencies": {
391 + "extend": {
392 + "version": "3.0.2",
393 + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
394 + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
395 + }
396 + }
397 + },
398 + "safe-buffer": {
399 + "version": "5.1.2",
400 + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
401 + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
402 + },
403 + "safer-buffer": {
404 + "version": "2.1.2",
405 + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
406 + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
407 + },
408 + "slackbots": {
409 + "version": "1.2.0",
410 + "resolved": "https://registry.npmjs.org/slackbots/-/slackbots-1.2.0.tgz",
411 + "integrity": "sha512-fld5BJ16QXavgalKbIAOIkycSObQyGXTWvjGSD/jJxI7c8lDf5aVFWWqNI2f/eAvEVU5KgaTwqmo80pHEcPZUA==",
412 + "requires": {
413 + "extend": "^2.0.1",
414 + "lodash": "^4.17.2",
415 + "request": "^2.56.0",
416 + "vow": "^0.4.9",
417 + "ws": "^1.0.1",
418 + "ws-heartbeat": "^1.0.4"
419 + }
420 + },
421 + "sshpk": {
422 + "version": "1.16.1",
423 + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
424 + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
425 + "requires": {
426 + "asn1": "~0.2.3",
427 + "assert-plus": "^1.0.0",
428 + "bcrypt-pbkdf": "^1.0.0",
429 + "dashdash": "^1.12.0",
430 + "ecc-jsbn": "~0.1.1",
431 + "getpass": "^0.1.1",
432 + "jsbn": "~0.1.0",
433 + "safer-buffer": "^2.0.2",
434 + "tweetnacl": "~0.14.0"
435 + }
436 + },
437 + "timed-out": {
438 + "version": "4.0.1",
439 + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
440 + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8="
441 + },
442 + "tough-cookie": {
443 + "version": "2.4.3",
444 + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
445 + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
446 + "requires": {
447 + "psl": "^1.1.24",
448 + "punycode": "^1.4.1"
449 + },
450 + "dependencies": {
451 + "punycode": {
452 + "version": "1.4.1",
453 + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
454 + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
455 + }
456 + }
457 + },
458 + "tunnel-agent": {
459 + "version": "0.6.0",
460 + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
461 + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
462 + "requires": {
463 + "safe-buffer": "^5.0.1"
464 + }
465 + },
466 + "tweetnacl": {
467 + "version": "0.14.5",
468 + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
469 + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
470 + },
471 + "ultron": {
472 + "version": "1.0.2",
473 + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz",
474 + "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po="
475 + },
476 + "unzip-response": {
477 + "version": "2.0.1",
478 + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz",
479 + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c="
480 + },
481 + "uri-js": {
482 + "version": "4.2.2",
483 + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
484 + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
485 + "requires": {
486 + "punycode": "^2.1.0"
487 + }
488 + },
489 + "url-parse-lax": {
490 + "version": "1.0.0",
491 + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz",
492 + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=",
493 + "requires": {
494 + "prepend-http": "^1.0.1"
495 + }
496 + },
497 + "uuid": {
498 + "version": "3.3.2",
499 + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
500 + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
501 + },
502 + "verror": {
503 + "version": "1.10.0",
504 + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
505 + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
506 + "requires": {
507 + "assert-plus": "^1.0.0",
508 + "core-util-is": "1.0.2",
509 + "extsprintf": "^1.2.0"
510 + }
511 + },
512 + "vow": {
513 + "version": "0.4.19",
514 + "resolved": "https://registry.npmjs.org/vow/-/vow-0.4.19.tgz",
515 + "integrity": "sha512-S+0+CiQlbUhTNWMlJdqo/ARuXOttXdvw5ACGyh1W97NFHUdwt3Fzyaus03Kvdmo733dwnYS9AGJSDg0Zu8mNfA=="
516 + },
517 + "ws": {
518 + "version": "1.1.5",
519 + "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.5.tgz",
520 + "integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==",
521 + "requires": {
522 + "options": ">=0.0.5",
523 + "ultron": "1.0.x"
524 + }
525 + },
526 + "ws-heartbeat": {
527 + "version": "1.0.4",
528 + "resolved": "https://registry.npmjs.org/ws-heartbeat/-/ws-heartbeat-1.0.4.tgz",
529 + "integrity": "sha512-OFr46ds6+OAXDdt9JXb7mA+xgNg1XN0qhrM5CmnbvTL2vx8jsgspUYSR75OKqkmM8s4R8aJ2AHhm7webf7RfOw=="
530 + }
531 + }
532 +}
1 +{
2 + "name": "joker",
3 + "version": "1.0.0",
4 + "description": "Random joke teller",
5 + "main": "index.js",
6 + "scripts": {
7 + "start": "node index.js"
8 + },
9 + "author": "Yeonjun Kim",
10 + "license": "MIT",
11 + "dependencies": {
12 + "axios": "^0.18.0",
13 + "free-google-image-search": "^1.0.0",
14 + "google-images": "^2.1.0",
15 + "slackbots": "^1.2.0"
16 + }
17 +}