├── .gitignore
├── LICENSE
├── README.md
├── bot.js
├── handlers
├── discordbot.js
├── image.js
├── instagram.js
├── mediadownloader.js
├── poststatus.js
├── reddit.js
├── temp.js
└── video.js
├── package-lock.json
├── package.json
└── settings.template.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | logindetails.json
3 | settings.json
4 | posts.json
5 | cookies.json
6 | temp
7 | run.sh
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # [UNMAINTAINED] insta_reddit_bot
2 |
3 | ## This repository is no longer maintained and the codebase might not work properly. You can request help by [creating an issue](https://github.com/FreekBes/insta_reddit_bot/issues/new), however it's highly likely I won't be able to help, as I no longer use this script myself and thus am no longer updating its code.
4 |
5 | ---
6 |
7 | A bot for Instagram which pulls images from Reddit. It was the source code for @me_irl_bot (later @me.irl.bot) and @ik_ihe_bot, before they all got deleted by Instagram (for violating the TOS on certain posts, AFAIK). The first run had over 200,000 followers.
8 |
9 |
10 |
11 | ## Requirements
12 |
13 | The following software needs to be installed on your system in order for this bot to work:
14 | - [NodeJS](https://nodejs.org/)
15 | - [npm](https://www.npmjs.com/get-npm) (often included with NodeJS)
16 | - [youtube-dl](http://ytdl-org.github.io/youtube-dl/download.html) and [ffmpeg](https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg) for video support
17 |
18 | Now keep in mind that I run the bot on Linux (Raspbian), so this guide is also focused on Linux. You should be able to run this bot on other operating systems as well, but for video support it might require some modifying of the code in the [video-mediahandler](https://github.com/FreekBes/insta_reddit_bot/blob/master/media_handlers/video.js). Automation-wise, I also have no idea how to do that on other systems, so you would have to figure that out yourself. Don't have a Linux system? Luckily, a [Raspberry Pi](https://www.raspberrypi.org/) can fix that for you - it's a small little system that is perfect for situations like these. I run my bot on one too. You can get them for prices as low as $35-40.
19 |
20 |
21 |
22 | ## Installation
23 |
24 | > **Disclaimer:** by using this bot, you will not have control over what your account will be posting - the bot will post whatever the subreddit(s) you choose to mirror from upvotes. In essence, this means that sometimes the bot might post pictures that do not follow [Instagram's Terms of Service](https://help.instagram.com/477434105621119), which could result in Instagram taking action against your account, such as permanently deleting it. By using this bot, you agree with the fact that I am not responsible for any damages to your account(s) or other possessions in any means, whatever the cause.
25 |
26 |
27 | [Download](https://github.com/FreekBes/insta_reddit_bot/archive/master.zip) or clone this repository into an empty folder. Copy the file *settings.template.json*, name it *settings.json* and replace the fields that start with *ENTER_* for your desired result:
28 | - ENTER_INSTAGRAM_USERNAME_HERE: your Instagram username
29 | - ENTER_INSTAGRAM_PASSWORD_HERE: your Instagram password
30 | - ENTER_RANDOM_WORD_HERE: a random word, like spaghetti or meatballs or whatever
31 | - ENTER_A_SUBREDDIT_HERE: a subreddit to mirror posts from
32 |
33 | Please note that two-factor authentication is not supported, so disable that for any account you plan on using. Also, I shouldn't have to mention this, but be careful showing/sharing any of the contents from this file - it does contain your password.
34 |
35 | After creating this file, open a CLI, change directory to the project's folder (`cd /PATH/TO/PROJECT`), then **run `npm install` and wait for the installation to complete.**
36 |
37 |
38 | ### Mirroring from multiple subreddits
39 |
40 | Ever since version 0.2.0 of this bot, mirroring from multiple subreddits is supported. To set this up, modify the subreddits in *settings.json* like the example below:
41 |
42 | ```
43 | "subreddits": {
44 | "/r/me_irl": 30,
45 | "/r/meirl": 40,
46 | "/r/hmmm": 25
47 | "/r/ik_ihe": 5
48 | }
49 | ```
50 |
51 | The number behind the subreddit's name is the chance of the subreddit being chosen by the bot during runtime. All the chances combined together must equal 100 (30+40+25+5=100), otherwise the bot will purposefully run into an error (a total of >100 might cause performance issues, eventually).
52 |
53 | This means you can mirror from a maximum of 100 subreddits from a single bot instance (when every subreddit's chance equals 1).
54 |
55 |
56 | ### Automating the bot: scheduling
57 |
58 | Previously, you had to automate the bot by using cron on Linux. Ever since version 0.3.0, the bot acts like a service on your computer, instead of a script. This means the automation tool is now built-in. To modify the times at which the bot posts, please take a look at the `hourly_timings` field in *settings.json*. Every row listed there, equals one hour. Every number in between the square brackets, is a minute at which the bot will post. An example:
59 |
60 | ```
61 | "hourly_timings": [
62 | [12, 32, 52],
63 | [12, 32],
64 | [12, 45],
65 | [4],
66 | [],
67 | [50],
68 | [10],
69 | [30, 34, 38],
70 | ...
71 | ```
72 |
73 | In this example, the bot would post at 0:12, 0:32, 0:52, 1:12, 1:32, 2:12, 2:45, 3:04, 5:50, 6:10, 7:30, 7:34 and 7:38. There's 24 rows in `hourly_timings`, so as you might have guessed, this schedule is in a 24-hour format. The bot expects 24 rows to be present at all times. In order to not post at specific hours, just remove all the numbers from in between the square brackets (so that it becomes an empty array, like in the example at 4 'o clock).
74 |
75 |
76 | ### Discord integration
77 |
78 | For moderation purposes, this bot includes a Discord integration, which you can enable in *settings.json*. To make it work, create a new application in the [Discord Developer Portal](https://discord.com/developers/applications/), add a bot and set the token accordingly in *settings.json*. In your Discord server, create two text channels: one for sending commands to the bot, and one for system messages (from the bot itself). Right-click these channels, and copy the ID. Enter those in *settings.json*. Then add the bot to your server (use the OAuth2 section in the Discord Developer Portal to easily do this).
79 |
80 | #### Commands
81 | - !blacklist : add a post from Reddit to the blacklist. This post will not get uploaded to Instagram.
82 | - !ping: check if the bot is up and running.
83 |
84 | To view more commands, use !help.
85 |
86 |
87 |
88 | ## Running the bot
89 |
90 | To run the bot, simply run the command `node bot.js` in the project's folder. To keep the bot running in the background, please check [this Stack Overflow page](https://stackoverflow.com/questions/4018154/how-do-i-run-a-node-js-app-as-a-background-service).
91 |
92 |
93 |
94 | ## Please do not use this library for spamming purposes
95 |
96 | I did not create this library to spam Instagram. Please respect this, and do not use it to flood Instagram with posts. Posting a maximum of 3 times an hour should be more than enough.
97 |
98 |
99 |
100 | ## Explanation of all settings in *settings.json*
101 |
102 | ### Instagram
103 |
104 | - username: Instagram username
105 | - password: Instagram password, in plaintext
106 | - seed: a random seed which is used to generate a fake device to sign in from
107 | - credits_in_caption: whether or not the credits are included in the caption. If the value here is `false`, the credits will be posted as comment. There's no way to disable credits.
108 | - credits_format: the format string for the credits posted in the caption or comments. %subreddit% will get replaced by the subreddit's name, %user% by the username of the user who posted the mirrored post, and %url% with a shortlink to this post. Other than that, you can do with this string as you want! Make it your language, add other stuff, whatever you need.
109 | - restart_every: a number which states how many hours need to pass before relogging in to Instagram (due to a session timeout). Currently not used.
110 |
111 | ### Reddit
112 |
113 | - subreddits: the subreddits to mirror from. See [mirroring from multiple subreddits](https://github.com/FreekBes/insta_reddit_bot#mirroring-from-multiple-subreddits) for a more in-depth explanation.
114 |
115 | ### Discord
116 |
117 | - enabled: if `true`, Discord integration will be enabled
118 | - token: a Discord bot token, generated in the [Discord Developer Portal](https://discord.com/developers/applications/) (under the bot section)
119 | - prefix: the prefix used by the bot for commands. Defaults to `!`.
120 | - channels > commands: a channel ID in a Discord server, used for sending commands to the bot
121 | - channels > system: a channel ID in a Discord server, used for sending system messages to the Discord server
122 |
123 | ### Schedule
124 |
125 | - human_error: currently not used
126 | - hourly_timings: the schedule which the bot will follow for posts. See [automating the bot](https://github.com/FreekBes/insta_reddit_bot#automating-the-bot) for a more in-depth explanation.
127 |
128 |
129 |
130 | ## F.A.Q.
131 |
132 | ### How do I start the bot automatically at boot?
133 |
134 | Use cron. Here's a guide: https://www.cyberciti.biz/faq/linux-execute-cron-job-after-system-reboot/
135 |
136 | ### I'm getting the IgActionSpamError or IgSentryBlockError error. How can I fix this?
137 |
138 | Replace the `seed` value in *settings.json* (under `instagram`). Then remove *handlers/cookies.json* and restart the bot. If If this does not fix your issue, it might be your IP-address that has been blocked from using Instagram's services. There's no way to circumvent this, except from using a VPN or proxy for your bot.
139 |
140 | ### How do I add hashtags or modify the credits line?
141 |
142 | Modify [handlers/instagram.js](https://github.com/FreekBes/insta_reddit_bot/blob/master/handlers/instagram.js). If you wish to modify the caption's text, modify line 177, else if you wish to change the comment's text, modify line 21.
143 |
144 | ### My Instagram account has been banned, what do I do?
145 |
146 | If it's the account that has been banned, there's nothing more you can do other than [contacting Instagram and appealing the ban](https://help.instagram.com/contact/606967319425038), or creating a new account. Use this bot at your own risk, and try not to spam using it.
147 |
148 | ### Need more help?
149 |
150 | If you've encountered an issue with the bot that's probably linked to the code, check the [Issues](https://github.com/FreekBes/insta_reddit_bot/issues) if the issue has been solved before, and if not, [create a new one](https://github.com/FreekBes/insta_reddit_bot/issues/new/choose).
151 | If you need any more help setting up your bot, feel free to send me a message on Instagram! You can find me at [@freekbes](https://www.instagram.com/freekbes).
152 |
153 |
154 |
155 | ## Contributing
156 |
157 | If you wish to contribute to this repository, feel free to go ahead. To debug a post, you can use `node bot.js -debug `. The post will get downloaded and converted for Instagram, but it won't get uploaded. To actually upload to Instagram while debugging a post, add the `-forceig` flag. You can find the post ID of a Reddit post in the URL of the comment section, it's the piece of text after */comments/* up until the next */*-character.
158 |
159 | If something's up with the Instagram side of things, run `npm script debug`. This will cause the bot to run with some arguments that specify the Instagram part to log more, for debugging purposes.
160 |
--------------------------------------------------------------------------------
/bot.js:
--------------------------------------------------------------------------------
1 | // load basic packages
2 | const console = require('console');
3 | const process = require('process');
4 |
5 | console.log("Initializing...");
6 |
7 | // load custom packages
8 | const igHandler = require("./handlers/instagram.js");
9 | const postStatus = require("./handlers/poststatus.js");
10 | const redditHandler = require("./handlers/reddit.js");
11 | redditHandler.setPostStatus(postStatus);
12 | const discordBot = require("./handlers/discordbot.js");
13 | discordBot.setPostStatus(postStatus);
14 |
15 | // retrieve settings
16 | const settings = require('./settings.json');
17 |
18 | // retrieve CLI arguments
19 | const args = process.argv.slice(2);
20 | const debugMode = args.indexOf("-debug") > -1;
21 | const forceIg = debugMode && args.indexOf("-forceig") > -1;
22 |
23 | function bot_loop() {
24 | // set subreddit
25 | if (!debugMode) {
26 | if (typeof settings.reddit.subreddits == "string") {
27 | // only 1 subreddit has been set in settings.json as a string
28 | redditHandler.setSubreddit(settings.reddit.subreddits);
29 | }
30 | else if (typeof settings.reddit.subreddits == "object") {
31 | // subreddit(s) have been given as an object in settings.json
32 | // check if chances of subreddits appearing's sum == 100...
33 | // if this is not the case, the below function could get slow rather quickly.
34 | if (Object.values(settings.reddit.subreddits).reduce(function(a, b) { return a + b; }, 0) == 100) {
35 | // create a temporary array for later
36 | let tempArray = [];
37 | for (let item in settings.reddit.subreddits) {
38 | if (settings.reddit.subreddits.hasOwnProperty(item)) {
39 | // add each subreddit to the temporary array for as many times
40 | // as the appearance percentage given in settings.json
41 | for (let i = 0; i < settings.reddit.subreddits[item]; i++) {
42 | tempArray.push(item);
43 | }
44 | }
45 | }
46 | // select a random subreddit from the temporary array
47 | redditHandler.setSubreddit(tempArray[Math.floor(Math.random() * tempArray.length)]);
48 | }
49 | else {
50 | throw Error("Subreddit's appearance sum does not equal exactly 100");
51 | }
52 | }
53 | else {
54 | throw Error("Cannot figure out what JS type the subreddit key is (in settings.json)");
55 | }
56 | }
57 | else {
58 | let debugPostId = args[args.indexOf("-debug") + 1];
59 | if (debugPostId == null || debugPostId == undefined || debugPostId.trim().lenth == "") {
60 | throw Error("No post to debug given");
61 | }
62 | redditHandler.setPostToDebug(debugPostId);
63 | console.warn("Debugging mode active!");
64 | }
65 |
66 | try {
67 | // retrieve a post that is still on the to-do list
68 | redditHandler.getPostToDo().then(function(redditPost) {
69 | igHandler.handleRedditPost(redditHandler, redditPost, debugMode && !forceIg)
70 | .then(function() {
71 | console.log("All done!");
72 | })
73 | .catch(function(err) {
74 | console.warn("Unable to handle post!");
75 | if (err) {
76 | console.error(err);
77 | discordBot.sendSystemMessage("Unable to handle a post!\n" + err.toString());
78 | }
79 | });
80 | }).catch(function(err) {
81 | console.warn("Failed to retrieve a post to do!");
82 | if (err) {
83 | console.error(err);
84 | discordBot.sendSystemMessage("Failed to retrieve a post to do.\n" + err.toString());
85 | }
86 | });
87 | }
88 | catch(err) {
89 | console.warn("An error occurred!");
90 | if (err) {
91 | console.error(err);
92 | discordBot.sendSystemMessage("An error occurred!\n" + err.toString());
93 | }
94 | };
95 | }
96 |
97 | function intervaller() {
98 | let date = new Date();
99 | let scheduleThisHour = settings.schedule.hourly_timings[date.getHours()];
100 | let curMinute = date.getMinutes();
101 | if (scheduleThisHour.length > 0) {
102 | for (let i in scheduleThisHour) {
103 | if (scheduleThisHour[i] == curMinute) {
104 | console.log("");
105 | console.log("========================================");
106 | console.log("");
107 | console.log("");
108 | console.log("");
109 | console.log("It's time to post!");
110 | bot_loop();
111 | break;
112 | }
113 | }
114 | }
115 | }
116 |
117 | function start_bot() {
118 | if (debugMode) {
119 | bot_loop();
120 | return;
121 | }
122 | console.log("Starting bot...");
123 | intervaller();
124 | setInterval(function() {
125 | intervaller();
126 | }, 60000);
127 | console.log("Bot started.");
128 | console.log("Current schedule:");
129 | for (let i = 0; i < 24; i++) {
130 | console.log(i.toString() + " 'o clock: " + JSON.stringify(settings.schedule.hourly_timings[i]));
131 | }
132 | }
133 |
134 | // initialize Instagram client
135 | igHandler.init(settings.instagram);
136 | if (!debugMode || forceIg) {
137 | let date = new Date();
138 | console.log("Current time: " + date.getHours() + ":" + date.getMinutes());
139 | igHandler.signIn(settings.instagram.username, settings.instagram.password)
140 | .then(start_bot)
141 | .catch(function(err) {
142 | console.warn("Could not sign in to Instagram");
143 | console.error(err);
144 | });
145 | }
146 | else {
147 | console.log("Running in debug mode!");
148 | start_bot(null);
149 | }
150 |
--------------------------------------------------------------------------------
/handlers/discordbot.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js');
2 | const client = new Discord.Client();
3 | const settings = require('../settings.json');
4 | const prefix = settings.discord.prefix;
5 | let postStatus = null;
6 | let botActive = false;
7 |
8 | function getArgs(body) {
9 | let args = body.match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g);
10 | for (let i = 0; i < args.length; i++) {
11 | args[i] = args[i].split("\"").join("");
12 | }
13 | return args;
14 | }
15 |
16 | client.on('ready', function() {
17 | console.log("Logged in to Discord as " + client.user.tag);
18 | botActive = true;
19 | client.user.setUsername(settings.instagram.username);
20 | client.user.setAFK(false);
21 | });
22 |
23 | client.on('message', function(msg) {
24 | if (msg.author.bot || !msg.content.startsWith(prefix) || msg.channel.id != settings.discord.channels.commands) {
25 | return;
26 | }
27 | const commandBody = msg.content.slice(prefix.length);
28 | const args = getArgs(commandBody);
29 | const command = args.shift().toLowerCase();
30 | switch (command) {
31 | case "bl":
32 | case "blacklist": {
33 | if (args.length == 0) {
34 | msg.reply("usage: " + prefix + "blacklist **, or " + prefix + "blacklist **");
35 | return;
36 | }
37 | if (args[0].indexOf("http") == 0) {
38 | let temp = args[0].split("/");
39 | if (!temp.length >= 7) {
40 | msg.reply("invalid Reddit post URL");
41 | return;
42 | }
43 | args[0] = temp[6];
44 | }
45 | if (args[0].length != 6) {
46 | msg.reply("the postId given is likely not a valid postId, or the URL is not an URL from Reddit. Not adding it to the blacklist.");
47 | return;
48 | }
49 | if (postStatus.postNotDone(args[0])) {
50 | postStatus.markPostAsDone(args[0]);
51 | msg.reply("the following post has been added to the blacklist: https://www.reddit.com/comments/" + args[0] + "/. Thanks for making sure the bot is Instagram-safe!");
52 | }
53 | else {
54 | msg.reply("this post was already on the blacklist! Thanks for making sure the bot is Instagram-safe.");
55 | }
56 | break;
57 | }
58 | case "ubl":
59 | case "unblacklist": {
60 | if (args.length == 0) {
61 | msg.reply("usage: " + prefix + "unblacklist **, or " + prefix + "unblacklist **");
62 | return;
63 | }
64 | if (args[0].indexOf("http") == 0) {
65 | let temp = args[0].split("/");
66 | if (!temp.length >= 7) {
67 | msg.reply("invalid Reddit post URL");
68 | return;
69 | }
70 | args[0] = temp[6];
71 | }
72 | if (args[0].length != 6) {
73 | msg.reply("the postId given is likely not a valid postId, or the URL is not an URL from Reddit. Cannot remove it from the blacklist.");
74 | return;
75 | }
76 | if (postStatus.postNotDone(args[0])) {
77 | msg.reply("this post was not on the blacklist!");
78 | }
79 | else {
80 | postStatus.unmarkPostAsDone(args[0]);
81 | msg.reply("the following post has been removed from the blacklist: https://www.reddit.com/comments/" + args[0] + "/.");
82 | }
83 | break;
84 | }
85 | case "schedule": {
86 | let temp = "";
87 | for (let i = 0; i < 24; i++) {
88 | temp += i.toString() + " 'o clock: " + JSON.stringify(settings.schedule.hourly_timings[i]) + "\n";
89 | }
90 | msg.reply("here's the posting schedule:\n"+temp).catch(function(err) {
91 | msg.reply("I tried to send you the posting schedule, but I couldn't do it. It's most likely too long to fit in one message.");
92 | });
93 | break;
94 | }
95 | case "ping": {
96 | msg.reply("pong! I'm online!");
97 | break;
98 | }
99 | case "help": {
100 | msg.reply(
101 | `here's an overview of all available commands:
102 | - `+prefix+`blacklist - *blacklist a Reddit post*
103 | - `+prefix+`blacklist - *blacklist a Reddit post*
104 | - `+prefix+`bl - *short version of blacklist command*
105 | - `+prefix+`unblacklist - *remove a Reddit post from the blacklist (or done-list)*
106 | - `+prefix+`unblacklist - *remove a Reddit post from the blacklist (or done-list)*
107 | - `+prefix+`ubl - *short version of unblacklist command*
108 | - `+prefix+`schedule - *get an overview of the posting schedule per-hour*
109 | - `+prefix+`ping - *check if the bot is online*
110 | - `+prefix+`help - *this overview*
111 | `
112 | );
113 | break;
114 | }
115 | default: {
116 | msg.reply("unknown command. Use " + prefix + "help for help.");
117 | break;
118 | }
119 | }
120 | });
121 |
122 | exports.sendSystemMessage = function(msg) {
123 | if (settings.discord.enabled) {
124 | const channel = client.channels.cache.get(settings.discord.channels.system);
125 | if (channel) {
126 | channel.send(msg);
127 | }
128 | }
129 | };
130 |
131 | exports.setPostStatus = function(newPostStatus) {
132 | postStatus = newPostStatus;
133 | };
134 |
135 | function init() {
136 | if (settings.discord.enabled) {
137 | if (settings.discord.token != 'ENTER_DISCORD_TOKEN_HERE_THEN_ENABLE') {
138 | client.login(settings.discord.token);
139 | }
140 | else {
141 | console.log("Please set a Discord token in settings.json. Create a new application and add a bot at https://discord.com/developers/applications/.");
142 | }
143 | }
144 | };
145 |
146 | init();
147 |
--------------------------------------------------------------------------------
/handlers/image.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | const https = require('https');
3 | const imageType = require('image-type');
4 | const videoHandler = require("./video.js");
5 | const Jimp = require('jimp');
6 |
7 | exports.downloadImage = function(postId, permalink, url, tempFolder) {
8 | return new Promise(function(resolve, reject) {
9 | let dataReceived = false;
10 |
11 | console.log("Retrieving image mime type...");
12 | console.log("URL: ", url);
13 |
14 | https.get(url, function(res) {
15 | res.on('close', function() {
16 | console.log("Connection closed.");
17 | if (!dataReceived) {
18 | reject("Connection closed abruptly");
19 | }
20 | })
21 | res.on('error', function(err) {
22 | reject(err);
23 | });
24 | res.once('data', function(chunk) {
25 | dataReceived = true;
26 | res.destroy();
27 |
28 | let imgType = imageType(chunk);
29 | if (!imgType) {
30 | reject("Could not detect mime type of image! Image URL: " + url);
31 | return;
32 | }
33 | if (imgType.mime == "image/gif") {
34 | console.log("GIF detected! Using videoHandler instead.");
35 | videoHandler.downloadVideoYTDL(postId, permalink, tempFolder).then(function(res) {
36 | resolve(res);
37 | }).catch(function(err) {
38 | reject(err);
39 | });
40 | }
41 | else {
42 | console.log("No GIF detected ("+imgType.mime+"). Using imageHandler.");
43 | Jimp.read(url, function(err, imag) {
44 | if (err) {
45 | reject(err)
46 | }
47 | else if (imag == null) {
48 | reject("Could not grab image from url: " + url);
49 | }
50 | else {
51 | console.log("Download complete. Resizing image...");
52 | let newFileSrc = path.join(tempFolder, postId + ".jpg");
53 | try {
54 | imag.background(0xFFFFFFFF).contain(1000, 1000).quality(90).write(newFileSrc, function() {
55 | console.log("Resized image with success. Saved to " + newFileSrc);
56 | resolve({
57 | type: "image",
58 | image: newFileSrc
59 | });
60 | });
61 | }
62 | catch(err) {
63 | reject(err);
64 | }
65 | }
66 | });
67 | }
68 | });
69 | });
70 | });
71 | }
72 |
--------------------------------------------------------------------------------
/handlers/instagram.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | const fs = require('fs');
3 | const igPrivateApi = require('instagram-private-api');
4 | const igClient = new igPrivateApi.IgApiClient();
5 | const temp = require("./temp.js");
6 | const mediaDownloader = require("./mediadownloader.js");
7 |
8 | function getCookiesPath() {
9 | return path.join(__dirname, "cookies.json");
10 | }
11 |
12 | function cookiesExist() {
13 | return fs.existsSync(getCookiesPath());
14 | }
15 |
16 | function getCreditsString(redditHandler, username, postid) {
17 | let credits = creditsFormat.replace("%subreddit%", redditHandler.getSubreddit());
18 | credits = credits.replace("%user%", "/u/"+username);
19 | credits = credits.replace("%url%", "https://redd.it/"+postid);
20 | return credits;
21 | }
22 |
23 | let doCommentCredits = false;
24 | let creditsFormat = null;
25 | exports.commentCredits = function(redditHandler, instagramPostId, originalUploader, redditPostId) {
26 | return new Promise(function(resolve, reject) {
27 | igClient.media.comment({
28 | mediaId: instagramPostId,
29 | text: getCreditsString(redditHandler, originalUploader, redditPostId)
30 | }).then(function(commentResponse) {
31 | resolve(commentResponse);
32 | }).catch(function(err) {
33 | reject(err);
34 | });
35 | });
36 | };
37 |
38 | exports.init = function(igSettings) {
39 | igClient.state.generateDevice(igSettings.userName + "_" + igSettings.seed);
40 |
41 | igClient.request.end$.subscribe(async function() {
42 | const serialized = await igClient.state.serializeCookieJar();
43 | delete serialized.version;
44 | fs.writeFileSync(getCookiesPath(), JSON.stringify(serialized));
45 | });
46 |
47 | if (!igSettings.credits_in_caption) {
48 | doCommentCredits = true;
49 | }
50 | creditsFormat = igSettings.credits_format;
51 | };
52 |
53 | function signInNewSession(username, password, resolve, reject) {
54 | console.log("Signing in to Instagram...");
55 | // execute all requests prior to authorization in the real Android application
56 | igClient.simulate.preLoginFlow().then(function() {
57 | igClient.account.login(username, password).then(function() {
58 | // execute all requests after authorization in the real Android application
59 | // we're doing this on a next tick, as per the example given in instagram-private-api's tutorial...
60 | process.nextTick(async function() {
61 | await igClient.simulate.postLoginFlow();
62 | });
63 | console.log("Signed in as " + username);
64 | resolve();
65 | })
66 | .catch(function(err) {
67 | reject(err);
68 | });
69 | })
70 | .catch(function(err) {
71 | reject(err);
72 | });
73 | }
74 |
75 | function signInFromSession(username, password, resolve, reject) {
76 | console.log("Checking if we're still signed in from a session...");
77 | igClient.account.currentUser()
78 | .then(function(res) {
79 | console.log("Still signed in as " + res.username + " (from session)");
80 | resolve();
81 | })
82 | .catch(function(err) {
83 | console.log("It appears not! Let's sign in again.");
84 | signInNewSession(username, password, resolve, reject);
85 | });
86 | }
87 |
88 | exports.signIn = function(username, password) {
89 | return new Promise(function(resolve, reject) {
90 | if (cookiesExist()) {
91 | console.log("Parsing cookies...");
92 | igClient.state.deserializeCookieJar(fs.readFileSync(getCookiesPath(), "utf8")).then(function() {
93 | signInFromSession(username, password, resolve, reject);
94 | });
95 | }
96 | else {
97 | signInNewSession(username, password, resolve, reject);
98 | }
99 | });
100 | };
101 |
102 | function handleMedia(redditHandler, post, media) {
103 | return new Promise(function(resolve, reject) {
104 | console.log("Media downloaded!");
105 | console.log(media);
106 | if (media['type'] == 'image') {
107 | console.log("Uploading image to Instagram...");
108 | igClient.publish.photo({
109 | file: fs.readFileSync(media['image']),
110 | caption: post['data']['title'] + (doCommentCredits ? "" : "\u2063\n\u2063\n" + getCreditsString(redditHandler, post['data']['author'], post['data']['id']))
111 | }).then(function(publishResult) {
112 | console.log("Image uploaded!");
113 | if (doCommentCredits) {
114 | exports.commentCredits(redditHandler, publishResult.media.id, post['data']['author'], post['data']['id'])
115 | .then(function(commentResponse) {
116 | console.log("Credits commented");
117 | })
118 | .catch(function(err) {
119 | console.warn("Could not comment credits!");
120 | console.error(err);
121 | })
122 | .finally(function() {
123 | resolve(publishResult);
124 | });
125 | }
126 | else {
127 | resolve(publishResult);
128 | }
129 | }).catch(function(err) {
130 | reject(err);
131 | });
132 | }
133 | else if (media['type'] == 'video') {
134 | console.log("Uploading video to Instagram...");
135 | igClient.publish.video({
136 | video: fs.readFileSync(media['video']),
137 | coverImage: fs.readFileSync(media['thumbnail']),
138 | caption: post['data']['title'] + (doCommentCredits ? "" : "\u2063\n\u2063\n" + getCreditsString(redditHandler, post['data']['author'], post['data']['id']))
139 | }).then(function(publishResult) {
140 | console.log("Video uploaded!");
141 | if (doCommentCredits) {
142 | exports.commentCredits(redditHandler, publishResult.media.id, post['data']['author'], post['data']['id'])
143 | .then(function(commentResponse) {
144 | console.log("Credits commented");
145 | })
146 | .catch(function(err) {
147 | console.warn("Could not comment credits!");
148 | console.error(err);
149 | })
150 | .finally(function() {
151 | resolve(publishResult);
152 | });
153 | }
154 | else {
155 | resolve(publishResult);
156 | }
157 | }).catch(function(err) {
158 | reject(err);
159 | });
160 | }
161 | else {
162 | reject("Unknown media type!");
163 | }
164 | });
165 | }
166 |
167 | exports.handleRedditPost = function(redditHandler, post, debugMode) {
168 | return new Promise(function(resolve, reject) {
169 | console.log("Found a post to handle:");
170 | console.log('http://www.reddit.com/' + post['data']['permalink']);
171 |
172 | // fix broken imgur links
173 | if (post['data']['url'].match(/http(s|):\/\/*imgur\.com\/.......$/) != null) {
174 | post['data']['url'] = "https://i." + post['data']['url'].split("//")[1] + ".jpg";
175 | }
176 |
177 | // fix more broken links
178 | post['data']['url'] = post['data']['url'].replace("&", "&");
179 |
180 | // mark post as handled (done)
181 | redditHandler.getPostStatus().markPostAsDone(post['data']['id']);
182 |
183 | // check if post is not a selftext
184 | if ((post['data']['selftext'] == "" || post['data']['selftext'] == null) && post['data']['url'].indexOf(post['data']['id']) == -1) {
185 | console.log("Downloading media...");
186 | mediaDownloader.downloadMedia(redditHandler, post).then(function(media) {
187 | if (!debugMode) {
188 | handleMedia(redditHandler, post, media)
189 | .then(function(igPublishResult) {
190 | resolve(igPublishResult);
191 | })
192 | .catch(function(err) {
193 | reject(err);
194 | })
195 | .finally(function() {
196 | temp.clear();
197 | });
198 | }
199 | else {
200 | console.log("Debug mode is active, so the post does not get uploaded to Instagram right now, nor does the temp folder get cleared.");
201 | resolve(null);
202 | }
203 | }).catch(function(err) {
204 | temp.clear();
205 | reject(err);
206 | });
207 | }
208 | else {
209 | reject("Selftext posts are not supported yet.");
210 | }
211 | });
212 | };
--------------------------------------------------------------------------------
/handlers/mediadownloader.js:
--------------------------------------------------------------------------------
1 | const videoHandler = require("./video.js");
2 | const imageHandler = require("./image.js");
3 | const temp = require("./temp.js");
4 |
5 | exports.downloadMedia = function(redditHandler, post, handlePost) {
6 | return new Promise(function(resolve, reject) {
7 | //console.log(post['data']);
8 | let mediaUrl = post['data']['url'];
9 | console.log("Initial mediaUrl: ", mediaUrl);
10 |
11 | if (mediaUrl.match(/http(s|):\/\/www.reddit.com\/r\/.*$/) != null) {
12 | console.log("Crosspost detected! Fetching post...");
13 | redditHandler.getPostFromPermalink(mediaUrl).then(handlePost).catch(function(err) {
14 | console.log("An error occurred: could not handle crosspost");
15 | console.error(err);
16 | });
17 | return;
18 | }
19 | if (mediaUrl.match(/http(s|):\/\/i.imgur.com\/.*.gifv$/) != null) {
20 | console.log("GIFV on Imgur detected");
21 | videoHandler.downloadVideoYTDL(post['data']['id'], post['data']['permalink'], temp.getTempDir()).then(function(res) {
22 | resolve({
23 | type: 'video',
24 | video: res['video'],
25 | thumbnail: res['thumbnail']
26 | });
27 | });
28 | }
29 | else if (mediaUrl.match(/http(s|):\/\/v.redd.it\/.*$/) != null) {
30 | console.log("GIFV on Imgur detected");
31 | videoHandler.downloadVideoYTDL(post['data']['id'], post['data']['permalink'], temp.getTempDir()).then(function(res) {
32 | resolve({
33 | type: 'video',
34 | video: res['video'],
35 | thumbnail: res['thumbnail']
36 | });
37 | });
38 | }
39 | else if (mediaUrl.match(/http(s|):\/\/gfycat.com\/.*$/) != null) {
40 | console.log("Video on gfycat detected");
41 | videoHandler.downloadVideoYTDL(post['data']['id'], post['data']['permalink'], temp.getTempDir()).then(function(res) {
42 | resolve({
43 | type: 'video',
44 | video: res['video'],
45 | thumbnail: res['thumbnail']
46 | });
47 | });
48 | }
49 | else {
50 | console.log("Normal image detected");
51 | imageHandler.downloadImage(post['data']['id'], post['data']['permalink'], mediaUrl, temp.getTempDir()).then(function(res) {
52 | resolve(res);
53 | }).catch(function(err) {
54 | reject(err);
55 | });
56 | }
57 | });
58 | };
59 |
--------------------------------------------------------------------------------
/handlers/poststatus.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const path = require('path');
3 | const postsFile = path.join(__dirname, "..", "posts.json");
4 | let postsDone = [];
5 |
6 | exports.init = function() {
7 | if (!fs.existsSync(postsFile)) {
8 | console.warn("posts.json missing! Creating...");
9 | module.exports.clearDoneList();
10 | }
11 | else {
12 | module.exports.reloadDoneList();
13 | }
14 | console.log("PostsStatus initialized");
15 | };
16 |
17 | exports.reloadDoneList = function() {
18 | postsDone = JSON.parse(fs.readFileSync(postsFile, 'utf8'));
19 | };
20 |
21 | exports.markPostAsDone = function(postId) {
22 | postsDone.push(postId);
23 | fs.writeFileSync(postsFile, JSON.stringify(postsDone), 'utf8');
24 | console.log("Post added to done-list");
25 | module.exports.reloadDoneList();
26 | };
27 |
28 | exports.unmarkPostAsDone = function(postId) {
29 | let index = postsDone.indexOf(postId);
30 | if (index > -1) {
31 | postsDone.slice(index, 1);
32 | }
33 | fs.writeFileSync(postsFile, JSON.stringify(postsDone), 'utf8');
34 | console.log("Post removed from done-list");
35 | module.exports.reloadDoneList();
36 | };
37 |
38 | exports.postNotDone = function(postId) {
39 | return postsDone.indexOf(postId) == -1;
40 | };
41 |
42 | exports.clearDoneList = function() {
43 | fs.writeFileSync(postsFile, "[]", 'utf8');
44 | console.log("posts.json cleared");
45 | module.exports.reloadDoneList();
46 | };
47 |
48 | module.exports.init();
--------------------------------------------------------------------------------
/handlers/reddit.js:
--------------------------------------------------------------------------------
1 | const request = require('request');
2 |
3 | const rPrefix = "https://www.reddit.com";
4 | let r = null;
5 | let debugP = null;
6 | const rSuffix = "/.json?limit=";
7 | let postStatus = null;
8 |
9 | exports.setPostStatus = function(newPostStatus) {
10 | postStatus = newPostStatus;
11 | };
12 |
13 | exports.getPostStatus = function() {
14 | return postStatus;
15 | };
16 |
17 | exports.setSubreddit = function(subreddit) {
18 | if (subreddit.indexOf("/") == 0 && subreddit.charAt(subreddit.length - 1) != "/") {
19 | r = subreddit;
20 | console.log("Subreddit set to " + subreddit);
21 | }
22 | else {
23 | throw Error("Subreddit should start with, but not end with, a / character. Example: /r/me_irl");
24 | }
25 | };
26 |
27 | exports.getSubreddit = function() {
28 | return r;
29 | };
30 |
31 | exports.setPostToDebug = function(postId) {
32 | debugP = postId;
33 | };
34 |
35 | exports.getPostToDebug = function() {
36 | return debugP;
37 | }
38 |
39 | exports.retrieveRedditPosts = function(amount) {
40 | return new Promise(function(resolve, reject) {
41 | request({
42 | url: rPrefix + r + rSuffix + parseInt(amount),
43 | json: true
44 | }, function(err, response, body) {
45 | if (!err && response.statusCode === 200) {
46 | resolve(body['data']['children']);
47 | }
48 | else {
49 | reject(err);
50 | }
51 | });
52 | });
53 | };
54 |
55 | exports.getPostFromPermalink = function(permalink) {
56 | return new Promise(function(resolve, reject) {
57 | permalink = permalink.split("?")[0] + ".json";
58 | console.log("Fetching Reddit post from URL " + permalink);
59 | request({
60 | url: permalink,
61 | json: true
62 | }, function(err, response, body) {
63 | if (!err && response.statusCode === 200) {
64 | console.log("Reddit post fetched:");
65 | console.log(body[0]["data"]["children"][0]);
66 | resolve(body[0]["data"]["children"][0]);
67 | }
68 | else {
69 | reject(err);
70 | }
71 | });
72 | });
73 | };
74 |
75 | exports.getPostToDo = function() {
76 | return new Promise(function(resolve, reject) {
77 | if (debugP != null) {
78 | // if a post to debug has been set, we force this post to return
79 | var debugUrl = rPrefix + "/comments/" + debugP + "/.json";
80 | console.log("[DEBUGGING MODE] Fetching Reddit post from URL " + debugUrl);
81 | request({
82 | url: debugUrl,
83 | json: true
84 | }, function(err, response, body) {
85 | if (!err && response.statusCode === 200) {
86 | console.log("Reddit post fetched:");
87 | console.log(body[0]["data"]["children"][0]);
88 | resolve(body[0]["data"]["children"][0]);
89 | }
90 | else {
91 | reject(err);
92 | }
93 | });
94 | }
95 | else {
96 | module.exports.retrieveRedditPosts(40).then(function(redditPosts) {
97 | let post = null;
98 | for (let i = 0; i < redditPosts.length; i++) {
99 | // set currently reviewing post
100 | post = redditPosts[i];
101 | if (postStatus.postNotDone(post['data']['id'])) {
102 | // check if post is not nsfw and not stickied
103 | if (post['data']['over_18'] == false && post['data']['stickied'] == false) {
104 | // break from the for-loop to continue
105 | break;
106 | }
107 | }
108 | }
109 |
110 | // check once more if the selected post is still on the to-do list
111 | // it could be an already done one in case the break command from the for-loop was never executed!
112 | if (postStatus.postNotDone(post['data']['id'])) {
113 | resolve(post);
114 | }
115 | else {
116 | reject("No post to upload to Instagram left (all posts are done)");
117 | }
118 | }).catch(function(err) {
119 | reject(err);
120 | });
121 | }
122 | });
123 | };
--------------------------------------------------------------------------------
/handlers/temp.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const path = require('path');
3 |
4 | exports.getTempDir = function() {
5 | return path.join(__dirname, "..", "temp");
6 | }
7 |
8 | exports.checkCreateTemp = function() {
9 | if (!fs.existsSync(module.exports.getTempDir())) {
10 | console.warn("Temporary folder does not exist! Creating...");
11 | fs.mkdirSync(module.exports.getTempDir());
12 | console.log("Temporary folder created.");
13 | }
14 | }
15 |
16 | exports.clear = function() {
17 | console.log("Clearing temp folder...");
18 | fs.readdir(module.exports.getTempDir(), function(err, files) {
19 | if (err) {
20 | console.warn("Could not retrieve list of files in temp folder!");
21 | return;
22 | }
23 | for (const f of files) {
24 | fs.unlink(path.join(module.exports.getTempDir(), f), function(err) {
25 | if (err) {
26 | console.warn("Could not remove temp file " + f + ": " + err);
27 | }
28 | });
29 | }
30 | });
31 | }
32 |
33 | module.exports.checkCreateTemp();
--------------------------------------------------------------------------------
/handlers/video.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const path = require('path');
3 | const https = require('https');
4 | const { exec } = require('child_process');
5 | const { lookpath } = require('lookpath');
6 |
7 | function createVideoThumb(fromVid, thumbLoc) {
8 | return new Promise(function(resolve, reject) {
9 | console.log("Generating thumbnail for video...");
10 | let thumbCommand = 'ffmpeg -y -ss 00:00:00 -i ' + fromVid + ' -vframes 1 ' + thumbLoc;
11 | console.log(thumbCommand);
12 | exec(thumbCommand, function(err, stdout, stderr) {
13 | if (err) {
14 | reject(err);
15 | }
16 |
17 | console.log(`stdout: ${stdout}`);
18 | console.log(`stderr: ${stderr}`);
19 |
20 | console.log("Thumbnail generated!");
21 | resolve();
22 | });
23 | });
24 | }
25 |
26 | function ffmpegInstalled() {
27 | return new Promise(function(resolve, reject) {
28 | lookpath("ffmpeg").then(function(path) {
29 | if (path) {
30 | resolve(true);
31 | }
32 | resolve(false);
33 | }).catch(function(err) {
34 | reject(err);
35 | });
36 | });
37 | }
38 |
39 | function ytdlInstalled() {
40 | return new Promise(function(resolve, reject) {
41 | lookpath("youtube-dl").then(function(path) {
42 | if (path) {
43 | resolve(true);
44 | }
45 | resolve(false);
46 | }).catch(function(err) {
47 | reject(err);
48 | });
49 | });
50 | }
51 |
52 | exports.downloadVideoYTDL = function(postId, permalink, tempFolder) {
53 | return new Promise(function(resolve, reject) {
54 | ffmpegInstalled()
55 | .then(function(installed) {
56 | if (installed) {
57 | ytdlInstalled()
58 | .then(function(installed2) {
59 | if (!installed2) {
60 | reject("youtube-dl was not found on your system, which is required for downloading videos from Reddit. Please install it from http://ytdl-org.github.io/youtube-dl/download.html (or pip) to enable support for video posts.");
61 | return;
62 | }
63 | let url = "https://www.reddit.com" + permalink;
64 | console.log("YT-DL URL: ", url);
65 |
66 | let downloadLoc = path.join(tempFolder, postId + "-temp.mp4");
67 | let command = "youtube-dl -o " + downloadLoc + " " + url
68 | console.log(command);
69 | exec(command, function(err, stdout, stderr) {
70 | if (err) {
71 | reject(err);
72 | return;
73 | }
74 |
75 | console.log(`stdout: ${stdout}`);
76 | console.log(`stderr: ${stderr}`);
77 |
78 | let convertLoc = path.join(tempFolder, postId + ".mp4");
79 | let thumbLoc = path.join(tempFolder, postId + "-thumb.jpg");
80 | console.log("Download complete! Resizing MP4...");
81 | command = "ffmpeg -loglevel verbose -analyzeduration 20M -probesize 20M -y -re -i " + downloadLoc + " -vcodec libx264 -b:v 3500k -vsync 2 -t 59 -acodec aac -b:a 128k -pix_fmt yuv420p -vf \"scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)/2:(oh-ih)/2:white\" " + convertLoc;
82 |
83 | console.log(command);
84 | exec(command, function(errFfmpeg, stdoutFfmpeg, stderrFfmpeg) {
85 | if (errFfmpeg) {
86 | reject(errFfmpeg);
87 | return;
88 | }
89 |
90 | console.log(`stdout: ${stdoutFfmpeg}`);
91 | console.log(`stderr: ${stderrFfmpeg}`);
92 |
93 | console.log("Resized MP4 with success!")
94 | createVideoThumb(convertLoc, thumbLoc).then(function() {
95 | resolve({
96 | type: "video",
97 | video: convertLoc,
98 | thumbnail: thumbLoc
99 | });
100 | })
101 | .catch(function(err) {
102 | reject(err);
103 | });
104 | });
105 | });
106 | });
107 | }
108 | else {
109 | reject("FFMPEG was not found on your system, which is required for resizing videos. Please install it from https://ffmpeg.org/download.html to enable support for video posts.");
110 | }
111 | });
112 | });
113 | };
114 |
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "insta_reddit_bot",
3 | "version": "0.3.6",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@babel/runtime": {
8 | "version": "7.13.10",
9 | "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.10.tgz",
10 | "integrity": "sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==",
11 | "requires": {
12 | "regenerator-runtime": "^0.13.4"
13 | }
14 | },
15 | "@discordjs/collection": {
16 | "version": "0.1.6",
17 | "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-0.1.6.tgz",
18 | "integrity": "sha512-utRNxnd9kSS2qhyivo9lMlt5qgAUasH2gb7BEOn6p0efFh24gjGomHzWKMAPn2hEReOPQZCJaRKoURwRotKucQ=="
19 | },
20 | "@discordjs/form-data": {
21 | "version": "3.0.1",
22 | "resolved": "https://registry.npmjs.org/@discordjs/form-data/-/form-data-3.0.1.tgz",
23 | "integrity": "sha512-ZfFsbgEXW71Rw/6EtBdrP5VxBJy4dthyC0tpQKGKmYFImlmmrykO14Za+BiIVduwjte0jXEBlhSKf0MWbFp9Eg==",
24 | "requires": {
25 | "asynckit": "^0.4.0",
26 | "combined-stream": "^1.0.8",
27 | "mime-types": "^2.1.12"
28 | }
29 | },
30 | "@jimp/bmp": {
31 | "version": "0.16.1",
32 | "resolved": "https://registry.npmjs.org/@jimp/bmp/-/bmp-0.16.1.tgz",
33 | "integrity": "sha512-iwyNYQeBawrdg/f24x3pQ5rEx+/GwjZcCXd3Kgc+ZUd+Ivia7sIqBsOnDaMZdKCBPlfW364ekexnlOqyVa0NWg==",
34 | "requires": {
35 | "@babel/runtime": "^7.7.2",
36 | "@jimp/utils": "^0.16.1",
37 | "bmp-js": "^0.1.0"
38 | }
39 | },
40 | "@jimp/core": {
41 | "version": "0.16.1",
42 | "resolved": "https://registry.npmjs.org/@jimp/core/-/core-0.16.1.tgz",
43 | "integrity": "sha512-la7kQia31V6kQ4q1kI/uLimu8FXx7imWVajDGtwUG8fzePLWDFJyZl0fdIXVCL1JW2nBcRHidUot6jvlRDi2+g==",
44 | "requires": {
45 | "@babel/runtime": "^7.7.2",
46 | "@jimp/utils": "^0.16.1",
47 | "any-base": "^1.1.0",
48 | "buffer": "^5.2.0",
49 | "exif-parser": "^0.1.12",
50 | "file-type": "^9.0.0",
51 | "load-bmfont": "^1.3.1",
52 | "mkdirp": "^0.5.1",
53 | "phin": "^2.9.1",
54 | "pixelmatch": "^4.0.2",
55 | "tinycolor2": "^1.4.1"
56 | },
57 | "dependencies": {
58 | "file-type": {
59 | "version": "9.0.0",
60 | "resolved": "https://registry.npmjs.org/file-type/-/file-type-9.0.0.tgz",
61 | "integrity": "sha512-Qe/5NJrgIOlwijpq3B7BEpzPFcgzggOTagZmkXQY4LA6bsXKTUstK7Wp12lEJ/mLKTpvIZxmIuRcLYWT6ov9lw=="
62 | }
63 | }
64 | },
65 | "@jimp/custom": {
66 | "version": "0.16.1",
67 | "resolved": "https://registry.npmjs.org/@jimp/custom/-/custom-0.16.1.tgz",
68 | "integrity": "sha512-DNUAHNSiUI/j9hmbatD6WN/EBIyeq4AO0frl5ETtt51VN1SvE4t4v83ZA/V6ikxEf3hxLju4tQ5Pc3zmZkN/3A==",
69 | "requires": {
70 | "@babel/runtime": "^7.7.2",
71 | "@jimp/core": "^0.16.1"
72 | }
73 | },
74 | "@jimp/gif": {
75 | "version": "0.16.1",
76 | "resolved": "https://registry.npmjs.org/@jimp/gif/-/gif-0.16.1.tgz",
77 | "integrity": "sha512-r/1+GzIW1D5zrP4tNrfW+3y4vqD935WBXSc8X/wm23QTY9aJO9Lw6PEdzpYCEY+SOklIFKaJYUAq/Nvgm/9ryw==",
78 | "requires": {
79 | "@babel/runtime": "^7.7.2",
80 | "@jimp/utils": "^0.16.1",
81 | "gifwrap": "^0.9.2",
82 | "omggif": "^1.0.9"
83 | }
84 | },
85 | "@jimp/jpeg": {
86 | "version": "0.16.2",
87 | "resolved": "https://registry.npmjs.org/@jimp/jpeg/-/jpeg-0.16.2.tgz",
88 | "integrity": "sha512-BW5gZydgq6wdIwHd+3iUNgrTklvoQc/FUKSj9meM6A0FU21lUaansRX5BDdJqHkyXJLnnlDGwDt27J+hQuBAVw==",
89 | "requires": {
90 | "@babel/runtime": "^7.7.2",
91 | "@jimp/utils": "^0.16.2",
92 | "jpeg-js": "^0.4.2"
93 | },
94 | "dependencies": {
95 | "@jimp/utils": {
96 | "version": "0.16.2",
97 | "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.16.2.tgz",
98 | "integrity": "sha512-XENrPvmigiXZQ8E2nxJqO6UVvWBLzbNwyYi3Y8Q1IECoYhYI3kgOQ0fmy4G269Vz1V0omh1bNmC42r4OfXg1Jg==",
99 | "requires": {
100 | "@babel/runtime": "^7.7.2",
101 | "regenerator-runtime": "^0.13.3"
102 | }
103 | }
104 | }
105 | },
106 | "@jimp/plugin-blit": {
107 | "version": "0.16.1",
108 | "resolved": "https://registry.npmjs.org/@jimp/plugin-blit/-/plugin-blit-0.16.1.tgz",
109 | "integrity": "sha512-fKFNARm32RoLSokJ8WZXHHH2CGzz6ire2n1Jh6u+XQLhk9TweT1DcLHIXwQMh8oR12KgjbgsMGvrMVlVknmOAg==",
110 | "requires": {
111 | "@babel/runtime": "^7.7.2",
112 | "@jimp/utils": "^0.16.1"
113 | }
114 | },
115 | "@jimp/plugin-blur": {
116 | "version": "0.16.1",
117 | "resolved": "https://registry.npmjs.org/@jimp/plugin-blur/-/plugin-blur-0.16.1.tgz",
118 | "integrity": "sha512-1WhuLGGj9MypFKRcPvmW45ht7nXkOKu+lg3n2VBzIB7r4kKNVchuI59bXaCYQumOLEqVK7JdB4glaDAbCQCLyw==",
119 | "requires": {
120 | "@babel/runtime": "^7.7.2",
121 | "@jimp/utils": "^0.16.1"
122 | }
123 | },
124 | "@jimp/plugin-circle": {
125 | "version": "0.16.1",
126 | "resolved": "https://registry.npmjs.org/@jimp/plugin-circle/-/plugin-circle-0.16.1.tgz",
127 | "integrity": "sha512-JK7yi1CIU7/XL8hdahjcbGA3V7c+F+Iw+mhMQhLEi7Q0tCnZ69YJBTamMiNg3fWPVfMuvWJJKOBRVpwNTuaZRg==",
128 | "requires": {
129 | "@babel/runtime": "^7.7.2",
130 | "@jimp/utils": "^0.16.1"
131 | }
132 | },
133 | "@jimp/plugin-color": {
134 | "version": "0.16.1",
135 | "resolved": "https://registry.npmjs.org/@jimp/plugin-color/-/plugin-color-0.16.1.tgz",
136 | "integrity": "sha512-9yQttBAO5SEFj7S6nJK54f+1BnuBG4c28q+iyzm1JjtnehjqMg6Ljw4gCSDCvoCQ3jBSYHN66pmwTV74SU1B7A==",
137 | "requires": {
138 | "@babel/runtime": "^7.7.2",
139 | "@jimp/utils": "^0.16.1",
140 | "tinycolor2": "^1.4.1"
141 | }
142 | },
143 | "@jimp/plugin-contain": {
144 | "version": "0.16.1",
145 | "resolved": "https://registry.npmjs.org/@jimp/plugin-contain/-/plugin-contain-0.16.1.tgz",
146 | "integrity": "sha512-44F3dUIjBDHN+Ym/vEfg+jtjMjAqd2uw9nssN67/n4FdpuZUVs7E7wadKY1RRNuJO+WgcD5aDQcsvurXMETQTg==",
147 | "requires": {
148 | "@babel/runtime": "^7.7.2",
149 | "@jimp/utils": "^0.16.1"
150 | }
151 | },
152 | "@jimp/plugin-cover": {
153 | "version": "0.16.1",
154 | "resolved": "https://registry.npmjs.org/@jimp/plugin-cover/-/plugin-cover-0.16.1.tgz",
155 | "integrity": "sha512-YztWCIldBAVo0zxcQXR+a/uk3/TtYnpKU2CanOPJ7baIuDlWPsG+YE4xTsswZZc12H9Kl7CiziEbDtvF9kwA/Q==",
156 | "requires": {
157 | "@babel/runtime": "^7.7.2",
158 | "@jimp/utils": "^0.16.1"
159 | }
160 | },
161 | "@jimp/plugin-crop": {
162 | "version": "0.16.1",
163 | "resolved": "https://registry.npmjs.org/@jimp/plugin-crop/-/plugin-crop-0.16.1.tgz",
164 | "integrity": "sha512-UQdva9oQzCVadkyo3T5Tv2CUZbf0klm2cD4cWMlASuTOYgaGaFHhT9st+kmfvXjKL8q3STkBu/zUPV6PbuV3ew==",
165 | "requires": {
166 | "@babel/runtime": "^7.7.2",
167 | "@jimp/utils": "^0.16.1"
168 | }
169 | },
170 | "@jimp/plugin-displace": {
171 | "version": "0.16.1",
172 | "resolved": "https://registry.npmjs.org/@jimp/plugin-displace/-/plugin-displace-0.16.1.tgz",
173 | "integrity": "sha512-iVAWuz2+G6Heu8gVZksUz+4hQYpR4R0R/RtBzpWEl8ItBe7O6QjORAkhxzg+WdYLL2A/Yd4ekTpvK0/qW8hTVw==",
174 | "requires": {
175 | "@babel/runtime": "^7.7.2",
176 | "@jimp/utils": "^0.16.1"
177 | }
178 | },
179 | "@jimp/plugin-dither": {
180 | "version": "0.16.1",
181 | "resolved": "https://registry.npmjs.org/@jimp/plugin-dither/-/plugin-dither-0.16.1.tgz",
182 | "integrity": "sha512-tADKVd+HDC9EhJRUDwMvzBXPz4GLoU6s5P7xkVq46tskExYSptgj5713J5Thj3NMgH9Rsqu22jNg1H/7tr3V9Q==",
183 | "requires": {
184 | "@babel/runtime": "^7.7.2",
185 | "@jimp/utils": "^0.16.1"
186 | }
187 | },
188 | "@jimp/plugin-fisheye": {
189 | "version": "0.16.1",
190 | "resolved": "https://registry.npmjs.org/@jimp/plugin-fisheye/-/plugin-fisheye-0.16.1.tgz",
191 | "integrity": "sha512-BWHnc5hVobviTyIRHhIy9VxI1ACf4CeSuCfURB6JZm87YuyvgQh5aX5UDKtOz/3haMHXBLP61ZBxlNpMD8CG4A==",
192 | "requires": {
193 | "@babel/runtime": "^7.7.2",
194 | "@jimp/utils": "^0.16.1"
195 | }
196 | },
197 | "@jimp/plugin-flip": {
198 | "version": "0.16.1",
199 | "resolved": "https://registry.npmjs.org/@jimp/plugin-flip/-/plugin-flip-0.16.1.tgz",
200 | "integrity": "sha512-KdxTf0zErfZ8DyHkImDTnQBuHby+a5YFdoKI/G3GpBl3qxLBvC+PWkS2F/iN3H7wszP7/TKxTEvWL927pypT0w==",
201 | "requires": {
202 | "@babel/runtime": "^7.7.2",
203 | "@jimp/utils": "^0.16.1"
204 | }
205 | },
206 | "@jimp/plugin-gaussian": {
207 | "version": "0.16.1",
208 | "resolved": "https://registry.npmjs.org/@jimp/plugin-gaussian/-/plugin-gaussian-0.16.1.tgz",
209 | "integrity": "sha512-u9n4wjskh3N1mSqketbL6tVcLU2S5TEaFPR40K6TDv4phPLZALi1Of7reUmYpVm8mBDHt1I6kGhuCJiWvzfGyg==",
210 | "requires": {
211 | "@babel/runtime": "^7.7.2",
212 | "@jimp/utils": "^0.16.1"
213 | }
214 | },
215 | "@jimp/plugin-invert": {
216 | "version": "0.16.1",
217 | "resolved": "https://registry.npmjs.org/@jimp/plugin-invert/-/plugin-invert-0.16.1.tgz",
218 | "integrity": "sha512-2DKuyVXANH8WDpW9NG+PYFbehzJfweZszFYyxcaewaPLN0GxvxVLOGOPP1NuUTcHkOdMFbE0nHDuB7f+sYF/2w==",
219 | "requires": {
220 | "@babel/runtime": "^7.7.2",
221 | "@jimp/utils": "^0.16.1"
222 | }
223 | },
224 | "@jimp/plugin-mask": {
225 | "version": "0.16.1",
226 | "resolved": "https://registry.npmjs.org/@jimp/plugin-mask/-/plugin-mask-0.16.1.tgz",
227 | "integrity": "sha512-snfiqHlVuj4bSFS0v96vo2PpqCDMe4JB+O++sMo5jF5mvGcGL6AIeLo8cYqPNpdO6BZpBJ8MY5El0Veckhr39Q==",
228 | "requires": {
229 | "@babel/runtime": "^7.7.2",
230 | "@jimp/utils": "^0.16.1"
231 | }
232 | },
233 | "@jimp/plugin-normalize": {
234 | "version": "0.16.1",
235 | "resolved": "https://registry.npmjs.org/@jimp/plugin-normalize/-/plugin-normalize-0.16.1.tgz",
236 | "integrity": "sha512-dOQfIOvGLKDKXPU8xXWzaUeB0nvkosHw6Xg1WhS1Z5Q0PazByhaxOQkSKgUryNN/H+X7UdbDvlyh/yHf3ITRaw==",
237 | "requires": {
238 | "@babel/runtime": "^7.7.2",
239 | "@jimp/utils": "^0.16.1"
240 | }
241 | },
242 | "@jimp/plugin-print": {
243 | "version": "0.16.1",
244 | "resolved": "https://registry.npmjs.org/@jimp/plugin-print/-/plugin-print-0.16.1.tgz",
245 | "integrity": "sha512-ceWgYN40jbN4cWRxixym+csyVymvrryuKBQ+zoIvN5iE6OyS+2d7Mn4zlNgumSczb9GGyZZESIgVcBDA1ezq0Q==",
246 | "requires": {
247 | "@babel/runtime": "^7.7.2",
248 | "@jimp/utils": "^0.16.1",
249 | "load-bmfont": "^1.4.0"
250 | }
251 | },
252 | "@jimp/plugin-resize": {
253 | "version": "0.16.1",
254 | "resolved": "https://registry.npmjs.org/@jimp/plugin-resize/-/plugin-resize-0.16.1.tgz",
255 | "integrity": "sha512-u4JBLdRI7dargC04p2Ha24kofQBk3vhaf0q8FwSYgnCRwxfvh2RxvhJZk9H7Q91JZp6wgjz/SjvEAYjGCEgAwQ==",
256 | "requires": {
257 | "@babel/runtime": "^7.7.2",
258 | "@jimp/utils": "^0.16.1"
259 | }
260 | },
261 | "@jimp/plugin-rotate": {
262 | "version": "0.16.1",
263 | "resolved": "https://registry.npmjs.org/@jimp/plugin-rotate/-/plugin-rotate-0.16.1.tgz",
264 | "integrity": "sha512-ZUU415gDQ0VjYutmVgAYYxC9Og9ixu2jAGMCU54mSMfuIlmohYfwARQmI7h4QB84M76c9hVLdONWjuo+rip/zg==",
265 | "requires": {
266 | "@babel/runtime": "^7.7.2",
267 | "@jimp/utils": "^0.16.1"
268 | }
269 | },
270 | "@jimp/plugin-scale": {
271 | "version": "0.16.1",
272 | "resolved": "https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.1.tgz",
273 | "integrity": "sha512-jM2QlgThIDIc4rcyughD5O7sOYezxdafg/2Xtd1csfK3z6fba3asxDwthqPZAgitrLgiKBDp6XfzC07Y/CefUw==",
274 | "requires": {
275 | "@babel/runtime": "^7.7.2",
276 | "@jimp/utils": "^0.16.1"
277 | }
278 | },
279 | "@jimp/plugin-shadow": {
280 | "version": "0.16.1",
281 | "resolved": "https://registry.npmjs.org/@jimp/plugin-shadow/-/plugin-shadow-0.16.1.tgz",
282 | "integrity": "sha512-MeD2Is17oKzXLnsphAa1sDstTu6nxscugxAEk3ji0GV1FohCvpHBcec0nAq6/czg4WzqfDts+fcPfC79qWmqrA==",
283 | "requires": {
284 | "@babel/runtime": "^7.7.2",
285 | "@jimp/utils": "^0.16.1"
286 | }
287 | },
288 | "@jimp/plugin-threshold": {
289 | "version": "0.16.1",
290 | "resolved": "https://registry.npmjs.org/@jimp/plugin-threshold/-/plugin-threshold-0.16.1.tgz",
291 | "integrity": "sha512-iGW8U/wiCSR0+6syrPioVGoSzQFt4Z91SsCRbgNKTAk7D+XQv6OI78jvvYg4o0c2FOlwGhqz147HZV5utoSLxA==",
292 | "requires": {
293 | "@babel/runtime": "^7.7.2",
294 | "@jimp/utils": "^0.16.1"
295 | }
296 | },
297 | "@jimp/plugins": {
298 | "version": "0.16.1",
299 | "resolved": "https://registry.npmjs.org/@jimp/plugins/-/plugins-0.16.1.tgz",
300 | "integrity": "sha512-c+lCqa25b+4q6mJZSetlxhMoYuiltyS+ValLzdwK/47+aYsq+kcJNl+TuxIEKf59yr9+5rkbpsPkZHLF/V7FFA==",
301 | "requires": {
302 | "@babel/runtime": "^7.7.2",
303 | "@jimp/plugin-blit": "^0.16.1",
304 | "@jimp/plugin-blur": "^0.16.1",
305 | "@jimp/plugin-circle": "^0.16.1",
306 | "@jimp/plugin-color": "^0.16.1",
307 | "@jimp/plugin-contain": "^0.16.1",
308 | "@jimp/plugin-cover": "^0.16.1",
309 | "@jimp/plugin-crop": "^0.16.1",
310 | "@jimp/plugin-displace": "^0.16.1",
311 | "@jimp/plugin-dither": "^0.16.1",
312 | "@jimp/plugin-fisheye": "^0.16.1",
313 | "@jimp/plugin-flip": "^0.16.1",
314 | "@jimp/plugin-gaussian": "^0.16.1",
315 | "@jimp/plugin-invert": "^0.16.1",
316 | "@jimp/plugin-mask": "^0.16.1",
317 | "@jimp/plugin-normalize": "^0.16.1",
318 | "@jimp/plugin-print": "^0.16.1",
319 | "@jimp/plugin-resize": "^0.16.1",
320 | "@jimp/plugin-rotate": "^0.16.1",
321 | "@jimp/plugin-scale": "^0.16.1",
322 | "@jimp/plugin-shadow": "^0.16.1",
323 | "@jimp/plugin-threshold": "^0.16.1",
324 | "timm": "^1.6.1"
325 | }
326 | },
327 | "@jimp/png": {
328 | "version": "0.16.1",
329 | "resolved": "https://registry.npmjs.org/@jimp/png/-/png-0.16.1.tgz",
330 | "integrity": "sha512-iyWoCxEBTW0OUWWn6SveD4LePW89kO7ZOy5sCfYeDM/oTPLpR8iMIGvZpZUz1b8kvzFr27vPst4E5rJhGjwsdw==",
331 | "requires": {
332 | "@babel/runtime": "^7.7.2",
333 | "@jimp/utils": "^0.16.1",
334 | "pngjs": "^3.3.3"
335 | }
336 | },
337 | "@jimp/tiff": {
338 | "version": "0.16.1",
339 | "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.16.1.tgz",
340 | "integrity": "sha512-3K3+xpJS79RmSkAvFMgqY5dhSB+/sxhwTFA9f4AVHUK0oKW+u6r52Z1L0tMXHnpbAdR9EJ+xaAl2D4x19XShkQ==",
341 | "requires": {
342 | "@babel/runtime": "^7.7.2",
343 | "utif": "^2.0.1"
344 | }
345 | },
346 | "@jimp/types": {
347 | "version": "0.16.1",
348 | "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.16.1.tgz",
349 | "integrity": "sha512-g1w/+NfWqiVW4CaXSJyD28JQqZtm2eyKMWPhBBDCJN9nLCN12/Az0WFF3JUAktzdsEC2KRN2AqB1a2oMZBNgSQ==",
350 | "requires": {
351 | "@babel/runtime": "^7.7.2",
352 | "@jimp/bmp": "^0.16.1",
353 | "@jimp/gif": "^0.16.1",
354 | "@jimp/jpeg": "^0.16.1",
355 | "@jimp/png": "^0.16.1",
356 | "@jimp/tiff": "^0.16.1",
357 | "timm": "^1.6.1"
358 | }
359 | },
360 | "@jimp/utils": {
361 | "version": "0.16.1",
362 | "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.16.1.tgz",
363 | "integrity": "sha512-8fULQjB0x4LzUSiSYG6ZtQl355sZjxbv8r9PPAuYHzS9sGiSHJQavNqK/nKnpDsVkU88/vRGcE7t3nMU0dEnVw==",
364 | "requires": {
365 | "@babel/runtime": "^7.7.2",
366 | "regenerator-runtime": "^0.13.3"
367 | }
368 | },
369 | "@lifeomic/attempt": {
370 | "version": "3.0.0",
371 | "resolved": "https://registry.npmjs.org/@lifeomic/attempt/-/attempt-3.0.0.tgz",
372 | "integrity": "sha512-Ibk4Vfl46dSrhtH5fHsrTA4waAuyP7/qcr3uo0mO70azRc6LWgJILlMy3B1oOvyiN9jQcdqwsThaQkPKLiYKTg=="
373 | },
374 | "@types/bluebird": {
375 | "version": "3.5.33",
376 | "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.33.tgz",
377 | "integrity": "sha512-ndEo1xvnYeHxm7I/5sF6tBvnsA4Tdi3zj1keRKRs12SP+2ye2A27NDJ1B6PqkfMbGAcT+mqQVqbZRIrhfOp5PQ=="
378 | },
379 | "@types/caseless": {
380 | "version": "0.12.2",
381 | "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz",
382 | "integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w=="
383 | },
384 | "@types/chance": {
385 | "version": "1.1.1",
386 | "resolved": "https://registry.npmjs.org/@types/chance/-/chance-1.1.1.tgz",
387 | "integrity": "sha512-Ze94JMnM33+dj/tQCWxXWaQ80uYmV9HwydTyrbHAiBa91ETQuI+3iF5OFPicDpQx+md+/6rDpTp9I2VKOGOtpw=="
388 | },
389 | "@types/node": {
390 | "version": "14.14.35",
391 | "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.35.tgz",
392 | "integrity": "sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag=="
393 | },
394 | "@types/request": {
395 | "version": "2.48.5",
396 | "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.5.tgz",
397 | "integrity": "sha512-/LO7xRVnL3DxJ1WkPGDQrp4VTV1reX9RkC85mJ+Qzykj2Bdw+mG15aAfDahc76HtknjzE16SX/Yddn6MxVbmGQ==",
398 | "requires": {
399 | "@types/caseless": "*",
400 | "@types/node": "*",
401 | "@types/tough-cookie": "*",
402 | "form-data": "^2.5.0"
403 | }
404 | },
405 | "@types/request-promise": {
406 | "version": "4.1.47",
407 | "resolved": "https://registry.npmjs.org/@types/request-promise/-/request-promise-4.1.47.tgz",
408 | "integrity": "sha512-eRSZhAS8SMsrWOM8vbhxFGVZhTbWSJvaRKyufJTdIf4gscUouQvOBlfotPSPHbMR3S7kfkyKbhb1SWPmQdy3KQ==",
409 | "requires": {
410 | "@types/bluebird": "*",
411 | "@types/request": "*"
412 | }
413 | },
414 | "@types/tough-cookie": {
415 | "version": "4.0.0",
416 | "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.0.tgz",
417 | "integrity": "sha512-I99sngh224D0M7XgW1s120zxCt3VYQ3IQsuw3P3jbq5GG4yc79+ZjyKznyOGIQrflfylLgcfekeZW/vk0yng6A=="
418 | },
419 | "abbrev": {
420 | "version": "1.1.1",
421 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
422 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
423 | },
424 | "abort-controller": {
425 | "version": "3.0.0",
426 | "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
427 | "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
428 | "requires": {
429 | "event-target-shim": "^5.0.0"
430 | }
431 | },
432 | "ajv": {
433 | "version": "6.12.6",
434 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
435 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
436 | "requires": {
437 | "fast-deep-equal": "^3.1.1",
438 | "fast-json-stable-stringify": "^2.0.0",
439 | "json-schema-traverse": "^0.4.1",
440 | "uri-js": "^4.2.2"
441 | },
442 | "dependencies": {
443 | "fast-deep-equal": {
444 | "version": "3.1.3",
445 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
446 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
447 | }
448 | }
449 | },
450 | "ansi-regex": {
451 | "version": "2.1.1",
452 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
453 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
454 | },
455 | "any-base": {
456 | "version": "1.1.0",
457 | "resolved": "https://registry.npmjs.org/any-base/-/any-base-1.1.0.tgz",
458 | "integrity": "sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg=="
459 | },
460 | "aproba": {
461 | "version": "1.2.0",
462 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
463 | "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw=="
464 | },
465 | "are-we-there-yet": {
466 | "version": "1.1.5",
467 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
468 | "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
469 | "requires": {
470 | "delegates": "^1.0.0",
471 | "readable-stream": "^2.0.6"
472 | }
473 | },
474 | "asn1": {
475 | "version": "0.2.4",
476 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
477 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
478 | "requires": {
479 | "safer-buffer": "~2.1.0"
480 | }
481 | },
482 | "assert-plus": {
483 | "version": "1.0.0",
484 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
485 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
486 | },
487 | "asynckit": {
488 | "version": "0.4.0",
489 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
490 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
491 | },
492 | "aws-sign2": {
493 | "version": "0.7.0",
494 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
495 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
496 | },
497 | "aws4": {
498 | "version": "1.8.0",
499 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
500 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
501 | },
502 | "balanced-match": {
503 | "version": "1.0.0",
504 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
505 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
506 | },
507 | "base64-js": {
508 | "version": "1.5.1",
509 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
510 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
511 | },
512 | "bcrypt-pbkdf": {
513 | "version": "1.0.2",
514 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
515 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
516 | "requires": {
517 | "tweetnacl": "^0.14.3"
518 | }
519 | },
520 | "bignumber.js": {
521 | "version": "9.0.1",
522 | "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz",
523 | "integrity": "sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA=="
524 | },
525 | "bluebird": {
526 | "version": "3.7.2",
527 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
528 | "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
529 | },
530 | "bmp-js": {
531 | "version": "0.1.0",
532 | "resolved": "https://registry.npmjs.org/bmp-js/-/bmp-js-0.1.0.tgz",
533 | "integrity": "sha1-4Fpj95amwf8l9Hcex62twUjAcjM="
534 | },
535 | "brace-expansion": {
536 | "version": "1.1.11",
537 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
538 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
539 | "requires": {
540 | "balanced-match": "^1.0.0",
541 | "concat-map": "0.0.1"
542 | }
543 | },
544 | "buffer": {
545 | "version": "5.7.1",
546 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
547 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
548 | "requires": {
549 | "base64-js": "^1.3.1",
550 | "ieee754": "^1.1.13"
551 | }
552 | },
553 | "buffer-equal": {
554 | "version": "0.0.1",
555 | "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz",
556 | "integrity": "sha1-kbx0sR6kBbyRa8aqkI+q+ltKrEs="
557 | },
558 | "caseless": {
559 | "version": "0.12.0",
560 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
561 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
562 | },
563 | "chance": {
564 | "version": "1.1.7",
565 | "resolved": "https://registry.npmjs.org/chance/-/chance-1.1.7.tgz",
566 | "integrity": "sha512-bua/2cZEfzS6qPm0vi3JEvGNbriDLcMj9lKxCQOjUcCJRcyjA7umP0zZm6bKWWlBN04vA0L99QGH/CZQawr0eg=="
567 | },
568 | "chownr": {
569 | "version": "2.0.0",
570 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
571 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="
572 | },
573 | "class-transformer": {
574 | "version": "0.3.1",
575 | "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.3.1.tgz",
576 | "integrity": "sha512-cKFwohpJbuMovS8xVLmn8N2AUbAuc8pVo4zEfsUVo8qgECOogns1WVk/FkOZoxhOPTyTYFckuoH+13FO+MQ8GA=="
577 | },
578 | "code-point-at": {
579 | "version": "1.1.0",
580 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
581 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
582 | },
583 | "combined-stream": {
584 | "version": "1.0.8",
585 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
586 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
587 | "requires": {
588 | "delayed-stream": "~1.0.0"
589 | }
590 | },
591 | "concat-map": {
592 | "version": "0.0.1",
593 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
594 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
595 | },
596 | "console-control-strings": {
597 | "version": "1.1.0",
598 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
599 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
600 | },
601 | "core-util-is": {
602 | "version": "1.0.2",
603 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
604 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
605 | },
606 | "dashdash": {
607 | "version": "1.14.1",
608 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
609 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
610 | "requires": {
611 | "assert-plus": "^1.0.0"
612 | }
613 | },
614 | "debug": {
615 | "version": "4.3.1",
616 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
617 | "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
618 | "requires": {
619 | "ms": "2.1.2"
620 | }
621 | },
622 | "delayed-stream": {
623 | "version": "1.0.0",
624 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
625 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
626 | },
627 | "delegates": {
628 | "version": "1.0.0",
629 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
630 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
631 | },
632 | "discord.js": {
633 | "version": "12.5.1",
634 | "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-12.5.1.tgz",
635 | "integrity": "sha512-VwZkVaUAIOB9mKdca0I5MefPMTQJTNg0qdgi1huF3iwsFwJ0L5s/Y69AQe+iPmjuV6j9rtKoG0Ta0n9vgEIL6w==",
636 | "requires": {
637 | "@discordjs/collection": "^0.1.6",
638 | "@discordjs/form-data": "^3.0.1",
639 | "abort-controller": "^3.0.0",
640 | "node-fetch": "^2.6.1",
641 | "prism-media": "^1.2.2",
642 | "setimmediate": "^1.0.5",
643 | "tweetnacl": "^1.0.3",
644 | "ws": "^7.3.1"
645 | },
646 | "dependencies": {
647 | "tweetnacl": {
648 | "version": "1.0.3",
649 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz",
650 | "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw=="
651 | }
652 | }
653 | },
654 | "dom-walk": {
655 | "version": "0.1.2",
656 | "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz",
657 | "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w=="
658 | },
659 | "ecc-jsbn": {
660 | "version": "0.1.2",
661 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
662 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
663 | "requires": {
664 | "jsbn": "~0.1.0",
665 | "safer-buffer": "^2.1.0"
666 | }
667 | },
668 | "env-paths": {
669 | "version": "2.2.1",
670 | "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
671 | "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="
672 | },
673 | "event-target-shim": {
674 | "version": "5.0.1",
675 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
676 | "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="
677 | },
678 | "exif-parser": {
679 | "version": "0.1.12",
680 | "resolved": "https://registry.npmjs.org/exif-parser/-/exif-parser-0.1.12.tgz",
681 | "integrity": "sha1-WKnS1ywCwfbwKg70qRZicrd2CSI="
682 | },
683 | "extend": {
684 | "version": "3.0.2",
685 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
686 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
687 | },
688 | "extsprintf": {
689 | "version": "1.3.0",
690 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
691 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
692 | },
693 | "fast-json-stable-stringify": {
694 | "version": "2.0.0",
695 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
696 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
697 | },
698 | "file-type": {
699 | "version": "10.11.0",
700 | "resolved": "https://registry.npmjs.org/file-type/-/file-type-10.11.0.tgz",
701 | "integrity": "sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw=="
702 | },
703 | "forever-agent": {
704 | "version": "0.6.1",
705 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
706 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
707 | },
708 | "form-data": {
709 | "version": "2.5.1",
710 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
711 | "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
712 | "requires": {
713 | "asynckit": "^0.4.0",
714 | "combined-stream": "^1.0.6",
715 | "mime-types": "^2.1.12"
716 | }
717 | },
718 | "fs-minipass": {
719 | "version": "2.1.0",
720 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
721 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
722 | "requires": {
723 | "minipass": "^3.0.0"
724 | }
725 | },
726 | "fs.realpath": {
727 | "version": "1.0.0",
728 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
729 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
730 | },
731 | "gauge": {
732 | "version": "2.7.4",
733 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
734 | "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
735 | "requires": {
736 | "aproba": "^1.0.3",
737 | "console-control-strings": "^1.0.0",
738 | "has-unicode": "^2.0.0",
739 | "object-assign": "^4.1.0",
740 | "signal-exit": "^3.0.0",
741 | "string-width": "^1.0.1",
742 | "strip-ansi": "^3.0.1",
743 | "wide-align": "^1.1.0"
744 | }
745 | },
746 | "getpass": {
747 | "version": "0.1.7",
748 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
749 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
750 | "requires": {
751 | "assert-plus": "^1.0.0"
752 | }
753 | },
754 | "gifwrap": {
755 | "version": "0.9.2",
756 | "resolved": "https://registry.npmjs.org/gifwrap/-/gifwrap-0.9.2.tgz",
757 | "integrity": "sha512-fcIswrPaiCDAyO8xnWvHSZdWChjKXUanKKpAiWWJ/UTkEi/aYKn5+90e7DE820zbEaVR9CE2y4z9bzhQijZ0BA==",
758 | "requires": {
759 | "image-q": "^1.1.1",
760 | "omggif": "^1.0.10"
761 | }
762 | },
763 | "glob": {
764 | "version": "7.1.6",
765 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
766 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
767 | "requires": {
768 | "fs.realpath": "^1.0.0",
769 | "inflight": "^1.0.4",
770 | "inherits": "2",
771 | "minimatch": "^3.0.4",
772 | "once": "^1.3.0",
773 | "path-is-absolute": "^1.0.0"
774 | }
775 | },
776 | "global": {
777 | "version": "4.4.0",
778 | "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz",
779 | "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==",
780 | "requires": {
781 | "min-document": "^2.19.0",
782 | "process": "^0.11.10"
783 | }
784 | },
785 | "graceful-fs": {
786 | "version": "4.2.6",
787 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",
788 | "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ=="
789 | },
790 | "har-schema": {
791 | "version": "2.0.0",
792 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
793 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
794 | },
795 | "har-validator": {
796 | "version": "5.1.3",
797 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
798 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
799 | "requires": {
800 | "ajv": "^6.5.5",
801 | "har-schema": "^2.0.0"
802 | }
803 | },
804 | "has-unicode": {
805 | "version": "2.0.1",
806 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
807 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
808 | },
809 | "http-signature": {
810 | "version": "1.2.0",
811 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
812 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
813 | "requires": {
814 | "assert-plus": "^1.0.0",
815 | "jsprim": "^1.2.2",
816 | "sshpk": "^1.7.0"
817 | }
818 | },
819 | "https": {
820 | "version": "1.0.0",
821 | "resolved": "https://registry.npmjs.org/https/-/https-1.0.0.tgz",
822 | "integrity": "sha1-PDfHrhqO65ZpBKKtHpdaGUt+06Q="
823 | },
824 | "ieee754": {
825 | "version": "1.2.1",
826 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
827 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
828 | },
829 | "image-q": {
830 | "version": "1.1.1",
831 | "resolved": "https://registry.npmjs.org/image-q/-/image-q-1.1.1.tgz",
832 | "integrity": "sha1-/IQJlmRGC5DKhi2TALa/u7+/gFY="
833 | },
834 | "image-size": {
835 | "version": "0.7.5",
836 | "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.7.5.tgz",
837 | "integrity": "sha512-Hiyv+mXHfFEP7LzUL/llg9RwFxxY+o9N3JVLIeG5E7iFIFAalxvRU9UZthBdYDEVnzHMgjnKJPPpay5BWf1g9g=="
838 | },
839 | "image-type": {
840 | "version": "4.1.0",
841 | "resolved": "https://registry.npmjs.org/image-type/-/image-type-4.1.0.tgz",
842 | "integrity": "sha512-CFJMJ8QK8lJvRlTCEgarL4ro6hfDQKif2HjSvYCdQZESaIPV4v9imrf7BQHK+sQeTeNeMpWciR9hyC/g8ybXEg==",
843 | "requires": {
844 | "file-type": "^10.10.0"
845 | }
846 | },
847 | "inflight": {
848 | "version": "1.0.6",
849 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
850 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
851 | "requires": {
852 | "once": "^1.3.0",
853 | "wrappy": "1"
854 | }
855 | },
856 | "inherits": {
857 | "version": "2.0.4",
858 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
859 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
860 | },
861 | "instagram-private-api": {
862 | "version": "1.44.0",
863 | "resolved": "https://registry.npmjs.org/instagram-private-api/-/instagram-private-api-1.44.0.tgz",
864 | "integrity": "sha512-93abre95ZM3edtgCKHfu5ZlkmZEdm+CTVveaPHDrHXE6n2pK5O9dOQ08fwAHRTltBniLJuYwmd0Tau8Nx343HQ==",
865 | "requires": {
866 | "@lifeomic/attempt": "^3.0.0",
867 | "@types/chance": "^1.0.2",
868 | "@types/request-promise": "^4.1.43",
869 | "bluebird": "^3.7.1",
870 | "chance": "^1.0.18",
871 | "class-transformer": "^0.3.1",
872 | "debug": "^4.1.1",
873 | "image-size": "^0.7.3",
874 | "json-bigint": "^0.3.0",
875 | "lodash": "^4.17.20",
876 | "luxon": "^1.12.1",
877 | "reflect-metadata": "^0.1.13",
878 | "request": "^2.88.0",
879 | "request-promise": "^4.2.4",
880 | "rxjs": "^6.5.2",
881 | "snakecase-keys": "^3.1.0",
882 | "tough-cookie": "^2.5.0",
883 | "ts-custom-error": "^2.2.2",
884 | "ts-xor": "^1.0.6",
885 | "url-regex-safe": "^1.0.2",
886 | "utility-types": "^3.10.0"
887 | }
888 | },
889 | "install-artifact-from-github": {
890 | "version": "1.2.0",
891 | "resolved": "https://registry.npmjs.org/install-artifact-from-github/-/install-artifact-from-github-1.2.0.tgz",
892 | "integrity": "sha512-3OxCPcY55XlVM3kkfIpeCgmoSKnMsz2A3Dbhsq0RXpIknKQmrX1YiznCeW9cD2ItFmDxziA3w6Eg8d80AoL3oA=="
893 | },
894 | "ip-regex": {
895 | "version": "4.3.0",
896 | "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz",
897 | "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q=="
898 | },
899 | "is-fullwidth-code-point": {
900 | "version": "1.0.0",
901 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
902 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
903 | "requires": {
904 | "number-is-nan": "^1.0.0"
905 | }
906 | },
907 | "is-function": {
908 | "version": "1.0.2",
909 | "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz",
910 | "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ=="
911 | },
912 | "is-typedarray": {
913 | "version": "1.0.0",
914 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
915 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
916 | },
917 | "isarray": {
918 | "version": "1.0.0",
919 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
920 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
921 | },
922 | "isexe": {
923 | "version": "2.0.0",
924 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
925 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
926 | },
927 | "isstream": {
928 | "version": "0.1.2",
929 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
930 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
931 | },
932 | "jimp": {
933 | "version": "0.16.1",
934 | "resolved": "https://registry.npmjs.org/jimp/-/jimp-0.16.1.tgz",
935 | "integrity": "sha512-+EKVxbR36Td7Hfd23wKGIeEyHbxShZDX6L8uJkgVW3ESA9GiTEPK08tG1XI2r/0w5Ch0HyJF5kPqF9K7EmGjaw==",
936 | "requires": {
937 | "@babel/runtime": "^7.7.2",
938 | "@jimp/custom": "^0.16.1",
939 | "@jimp/plugins": "^0.16.1",
940 | "@jimp/types": "^0.16.1",
941 | "regenerator-runtime": "^0.13.3"
942 | }
943 | },
944 | "jpeg-js": {
945 | "version": "0.4.4",
946 | "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz",
947 | "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="
948 | },
949 | "jsbn": {
950 | "version": "0.1.1",
951 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
952 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
953 | },
954 | "json-bigint": {
955 | "version": "0.3.1",
956 | "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.1.tgz",
957 | "integrity": "sha512-DGWnSzmusIreWlEupsUelHrhwmPPE+FiQvg+drKfk2p+bdEYa5mp4PJ8JsCWqae0M2jQNb0HPvnwvf1qOTThzQ==",
958 | "requires": {
959 | "bignumber.js": "^9.0.0"
960 | }
961 | },
962 | "json-schema-traverse": {
963 | "version": "0.4.1",
964 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
965 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
966 | },
967 | "json-stringify-safe": {
968 | "version": "5.0.1",
969 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
970 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
971 | },
972 | "jsprim": {
973 | "version": "1.4.2",
974 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
975 | "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
976 | "requires": {
977 | "assert-plus": "1.0.0",
978 | "extsprintf": "1.3.0",
979 | "json-schema": "0.4.0",
980 | "verror": "1.10.0"
981 | },
982 | "dependencies": {
983 | "json-schema": {
984 | "version": "0.4.0",
985 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
986 | "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="
987 | }
988 | }
989 | },
990 | "load-bmfont": {
991 | "version": "1.4.1",
992 | "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.1.tgz",
993 | "integrity": "sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJ/7Enqmwk2sM14soA==",
994 | "requires": {
995 | "buffer-equal": "0.0.1",
996 | "mime": "^1.3.4",
997 | "parse-bmfont-ascii": "^1.0.3",
998 | "parse-bmfont-binary": "^1.0.5",
999 | "parse-bmfont-xml": "^1.1.4",
1000 | "phin": "^2.9.1",
1001 | "xhr": "^2.0.1",
1002 | "xtend": "^4.0.0"
1003 | }
1004 | },
1005 | "lodash": {
1006 | "version": "4.17.21",
1007 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
1008 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
1009 | },
1010 | "lookpath": {
1011 | "version": "1.2.0",
1012 | "resolved": "https://registry.npmjs.org/lookpath/-/lookpath-1.2.0.tgz",
1013 | "integrity": "sha512-cUl+R2bGJcSJiHLVKzGHRTYTBhudbHIgd7s63gfGHteaz0BBKEEz2yw2rgbxZAFze92KlbkiWzL1ylYOmqIPVA=="
1014 | },
1015 | "lru-cache": {
1016 | "version": "6.0.0",
1017 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
1018 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
1019 | "requires": {
1020 | "yallist": "^4.0.0"
1021 | }
1022 | },
1023 | "luxon": {
1024 | "version": "1.28.1",
1025 | "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.28.1.tgz",
1026 | "integrity": "sha512-gYHAa180mKrNIUJCbwpmD0aTu9kV0dREDrwNnuyFAsO1Wt0EVYSZelPnJlbj9HplzXX/YWXHFTL45kvZ53M0pw=="
1027 | },
1028 | "map-obj": {
1029 | "version": "4.2.0",
1030 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.0.tgz",
1031 | "integrity": "sha512-NAq0fCmZYGz9UFEQyndp7sisrow4GroyGeKluyKC/chuITZsPyOyC1UJZPJlVFImhXdROIP5xqouRLThT3BbpQ=="
1032 | },
1033 | "mime": {
1034 | "version": "1.6.0",
1035 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
1036 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
1037 | },
1038 | "mime-db": {
1039 | "version": "1.40.0",
1040 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz",
1041 | "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA=="
1042 | },
1043 | "mime-types": {
1044 | "version": "2.1.24",
1045 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz",
1046 | "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==",
1047 | "requires": {
1048 | "mime-db": "1.40.0"
1049 | }
1050 | },
1051 | "min-document": {
1052 | "version": "2.19.0",
1053 | "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz",
1054 | "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=",
1055 | "requires": {
1056 | "dom-walk": "^0.1.0"
1057 | }
1058 | },
1059 | "minimatch": {
1060 | "version": "3.1.2",
1061 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
1062 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
1063 | "requires": {
1064 | "brace-expansion": "^1.1.7"
1065 | }
1066 | },
1067 | "minimist": {
1068 | "version": "1.2.6",
1069 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
1070 | "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
1071 | },
1072 | "minipass": {
1073 | "version": "3.1.3",
1074 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.3.tgz",
1075 | "integrity": "sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg==",
1076 | "requires": {
1077 | "yallist": "^4.0.0"
1078 | }
1079 | },
1080 | "minizlib": {
1081 | "version": "2.1.2",
1082 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
1083 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
1084 | "requires": {
1085 | "minipass": "^3.0.0",
1086 | "yallist": "^4.0.0"
1087 | }
1088 | },
1089 | "mkdirp": {
1090 | "version": "0.5.5",
1091 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
1092 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
1093 | "requires": {
1094 | "minimist": "^1.2.5"
1095 | }
1096 | },
1097 | "ms": {
1098 | "version": "2.1.2",
1099 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1100 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
1101 | },
1102 | "nan": {
1103 | "version": "2.14.2",
1104 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz",
1105 | "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ=="
1106 | },
1107 | "node-fetch": {
1108 | "version": "2.6.7",
1109 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
1110 | "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
1111 | "requires": {
1112 | "whatwg-url": "^5.0.0"
1113 | }
1114 | },
1115 | "node-gyp": {
1116 | "version": "7.1.2",
1117 | "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz",
1118 | "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==",
1119 | "requires": {
1120 | "env-paths": "^2.2.0",
1121 | "glob": "^7.1.4",
1122 | "graceful-fs": "^4.2.3",
1123 | "nopt": "^5.0.0",
1124 | "npmlog": "^4.1.2",
1125 | "request": "^2.88.2",
1126 | "rimraf": "^3.0.2",
1127 | "semver": "^7.3.2",
1128 | "tar": "^6.0.2",
1129 | "which": "^2.0.2"
1130 | },
1131 | "dependencies": {
1132 | "form-data": {
1133 | "version": "2.3.3",
1134 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
1135 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
1136 | "requires": {
1137 | "asynckit": "^0.4.0",
1138 | "combined-stream": "^1.0.6",
1139 | "mime-types": "^2.1.12"
1140 | }
1141 | },
1142 | "request": {
1143 | "version": "2.88.2",
1144 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
1145 | "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
1146 | "requires": {
1147 | "aws-sign2": "~0.7.0",
1148 | "aws4": "^1.8.0",
1149 | "caseless": "~0.12.0",
1150 | "combined-stream": "~1.0.6",
1151 | "extend": "~3.0.2",
1152 | "forever-agent": "~0.6.1",
1153 | "form-data": "~2.3.2",
1154 | "har-validator": "~5.1.3",
1155 | "http-signature": "~1.2.0",
1156 | "is-typedarray": "~1.0.0",
1157 | "isstream": "~0.1.2",
1158 | "json-stringify-safe": "~5.0.1",
1159 | "mime-types": "~2.1.19",
1160 | "oauth-sign": "~0.9.0",
1161 | "performance-now": "^2.1.0",
1162 | "qs": "~6.5.2",
1163 | "safe-buffer": "^5.1.2",
1164 | "tough-cookie": "~2.5.0",
1165 | "tunnel-agent": "^0.6.0",
1166 | "uuid": "^3.3.2"
1167 | }
1168 | }
1169 | }
1170 | },
1171 | "nopt": {
1172 | "version": "5.0.0",
1173 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
1174 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
1175 | "requires": {
1176 | "abbrev": "1"
1177 | }
1178 | },
1179 | "npmlog": {
1180 | "version": "4.1.2",
1181 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
1182 | "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
1183 | "requires": {
1184 | "are-we-there-yet": "~1.1.2",
1185 | "console-control-strings": "~1.1.0",
1186 | "gauge": "~2.7.3",
1187 | "set-blocking": "~2.0.0"
1188 | }
1189 | },
1190 | "number-is-nan": {
1191 | "version": "1.0.1",
1192 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
1193 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
1194 | },
1195 | "oauth-sign": {
1196 | "version": "0.9.0",
1197 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
1198 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
1199 | },
1200 | "object-assign": {
1201 | "version": "4.1.1",
1202 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1203 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
1204 | },
1205 | "omggif": {
1206 | "version": "1.0.10",
1207 | "resolved": "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz",
1208 | "integrity": "sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw=="
1209 | },
1210 | "once": {
1211 | "version": "1.4.0",
1212 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1213 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
1214 | "requires": {
1215 | "wrappy": "1"
1216 | }
1217 | },
1218 | "pako": {
1219 | "version": "1.0.11",
1220 | "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
1221 | "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
1222 | },
1223 | "parse-bmfont-ascii": {
1224 | "version": "1.0.6",
1225 | "resolved": "https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz",
1226 | "integrity": "sha1-Eaw8P/WPfCAgqyJ2kHkQjU36AoU="
1227 | },
1228 | "parse-bmfont-binary": {
1229 | "version": "1.0.6",
1230 | "resolved": "https://registry.npmjs.org/parse-bmfont-binary/-/parse-bmfont-binary-1.0.6.tgz",
1231 | "integrity": "sha1-0Di0dtPp3Z2x4RoLDlOiJ5K2kAY="
1232 | },
1233 | "parse-bmfont-xml": {
1234 | "version": "1.1.4",
1235 | "resolved": "https://registry.npmjs.org/parse-bmfont-xml/-/parse-bmfont-xml-1.1.4.tgz",
1236 | "integrity": "sha512-bjnliEOmGv3y1aMEfREMBJ9tfL3WR0i0CKPj61DnSLaoxWR3nLrsQrEbCId/8rF4NyRF0cCqisSVXyQYWM+mCQ==",
1237 | "requires": {
1238 | "xml-parse-from-string": "^1.0.0",
1239 | "xml2js": "^0.4.5"
1240 | }
1241 | },
1242 | "parse-headers": {
1243 | "version": "2.0.3",
1244 | "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.3.tgz",
1245 | "integrity": "sha512-QhhZ+DCCit2Coi2vmAKbq5RGTRcQUOE2+REgv8vdyu7MnYx2eZztegqtTx99TZ86GTIwqiy3+4nQTWZ2tgmdCA=="
1246 | },
1247 | "path-is-absolute": {
1248 | "version": "1.0.1",
1249 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1250 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
1251 | },
1252 | "performance-now": {
1253 | "version": "2.1.0",
1254 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
1255 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
1256 | },
1257 | "phin": {
1258 | "version": "2.9.3",
1259 | "resolved": "https://registry.npmjs.org/phin/-/phin-2.9.3.tgz",
1260 | "integrity": "sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA=="
1261 | },
1262 | "pixelmatch": {
1263 | "version": "4.0.2",
1264 | "resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-4.0.2.tgz",
1265 | "integrity": "sha1-j0fc7FARtHe2fbA8JDvB8wheiFQ=",
1266 | "requires": {
1267 | "pngjs": "^3.0.0"
1268 | }
1269 | },
1270 | "pngjs": {
1271 | "version": "3.4.0",
1272 | "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz",
1273 | "integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w=="
1274 | },
1275 | "prism-media": {
1276 | "version": "1.2.9",
1277 | "resolved": "https://registry.npmjs.org/prism-media/-/prism-media-1.2.9.tgz",
1278 | "integrity": "sha512-UHCYuqHipbTR1ZsXr5eg4JUmHER8Ss4YEb9Azn+9zzJ7/jlTtD1h0lc4g6tNx3eMlB8Mp6bfll0LPMAV4R6r3Q=="
1279 | },
1280 | "process": {
1281 | "version": "0.11.10",
1282 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
1283 | "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI="
1284 | },
1285 | "process-nextick-args": {
1286 | "version": "2.0.1",
1287 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
1288 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
1289 | },
1290 | "psl": {
1291 | "version": "1.3.0",
1292 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.3.0.tgz",
1293 | "integrity": "sha512-avHdspHO+9rQTLbv1RO+MPYeP/SzsCoxofjVnHanETfQhTJrmB0HlDoW+EiN/R+C0BZ+gERab9NY0lPN2TxNag=="
1294 | },
1295 | "punycode": {
1296 | "version": "2.1.1",
1297 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
1298 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
1299 | },
1300 | "qs": {
1301 | "version": "6.5.3",
1302 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz",
1303 | "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA=="
1304 | },
1305 | "re2": {
1306 | "version": "1.15.9",
1307 | "resolved": "https://registry.npmjs.org/re2/-/re2-1.15.9.tgz",
1308 | "integrity": "sha512-AXWEhpMTBdC+3oqbjdU07dk0pBCvxh5vbOMLERL6Y8FYBSGn4vXlLe8cYszn64Yy7H8keVMrgPzoSvOd4mePpg==",
1309 | "requires": {
1310 | "install-artifact-from-github": "^1.2.0",
1311 | "nan": "^2.14.2",
1312 | "node-gyp": "^7.1.2"
1313 | }
1314 | },
1315 | "readable-stream": {
1316 | "version": "2.3.7",
1317 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
1318 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
1319 | "requires": {
1320 | "core-util-is": "~1.0.0",
1321 | "inherits": "~2.0.3",
1322 | "isarray": "~1.0.0",
1323 | "process-nextick-args": "~2.0.0",
1324 | "safe-buffer": "~5.1.1",
1325 | "string_decoder": "~1.1.1",
1326 | "util-deprecate": "~1.0.1"
1327 | },
1328 | "dependencies": {
1329 | "safe-buffer": {
1330 | "version": "5.1.2",
1331 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1332 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
1333 | }
1334 | }
1335 | },
1336 | "reflect-metadata": {
1337 | "version": "0.1.13",
1338 | "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
1339 | "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
1340 | },
1341 | "regenerator-runtime": {
1342 | "version": "0.13.7",
1343 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz",
1344 | "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew=="
1345 | },
1346 | "request": {
1347 | "version": "2.88.0",
1348 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
1349 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
1350 | "requires": {
1351 | "aws-sign2": "~0.7.0",
1352 | "aws4": "^1.8.0",
1353 | "caseless": "~0.12.0",
1354 | "combined-stream": "~1.0.6",
1355 | "extend": "~3.0.2",
1356 | "forever-agent": "~0.6.1",
1357 | "form-data": "~2.3.2",
1358 | "har-validator": "~5.1.0",
1359 | "http-signature": "~1.2.0",
1360 | "is-typedarray": "~1.0.0",
1361 | "isstream": "~0.1.2",
1362 | "json-stringify-safe": "~5.0.1",
1363 | "mime-types": "~2.1.19",
1364 | "oauth-sign": "~0.9.0",
1365 | "performance-now": "^2.1.0",
1366 | "qs": "~6.5.2",
1367 | "safe-buffer": "^5.1.2",
1368 | "tough-cookie": "~2.4.3",
1369 | "tunnel-agent": "^0.6.0",
1370 | "uuid": "^3.3.2"
1371 | },
1372 | "dependencies": {
1373 | "form-data": {
1374 | "version": "2.3.3",
1375 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
1376 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
1377 | "requires": {
1378 | "asynckit": "^0.4.0",
1379 | "combined-stream": "^1.0.6",
1380 | "mime-types": "^2.1.12"
1381 | }
1382 | },
1383 | "punycode": {
1384 | "version": "1.4.1",
1385 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
1386 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
1387 | },
1388 | "tough-cookie": {
1389 | "version": "2.4.3",
1390 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
1391 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
1392 | "requires": {
1393 | "psl": "^1.1.24",
1394 | "punycode": "^1.4.1"
1395 | }
1396 | }
1397 | }
1398 | },
1399 | "request-promise": {
1400 | "version": "4.2.6",
1401 | "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.6.tgz",
1402 | "integrity": "sha512-HCHI3DJJUakkOr8fNoCc73E5nU5bqITjOYFMDrKHYOXWXrgD/SBaC7LjwuPymUprRyuF06UK7hd/lMHkmUXglQ==",
1403 | "requires": {
1404 | "bluebird": "^3.5.0",
1405 | "request-promise-core": "1.1.4",
1406 | "stealthy-require": "^1.1.1",
1407 | "tough-cookie": "^2.3.3"
1408 | }
1409 | },
1410 | "request-promise-core": {
1411 | "version": "1.1.4",
1412 | "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz",
1413 | "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==",
1414 | "requires": {
1415 | "lodash": "^4.17.19"
1416 | }
1417 | },
1418 | "rimraf": {
1419 | "version": "3.0.2",
1420 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1421 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1422 | "requires": {
1423 | "glob": "^7.1.3"
1424 | }
1425 | },
1426 | "rxjs": {
1427 | "version": "6.6.6",
1428 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.6.tgz",
1429 | "integrity": "sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg==",
1430 | "requires": {
1431 | "tslib": "^1.9.0"
1432 | }
1433 | },
1434 | "safe-buffer": {
1435 | "version": "5.2.0",
1436 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz",
1437 | "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg=="
1438 | },
1439 | "safer-buffer": {
1440 | "version": "2.1.2",
1441 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1442 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
1443 | },
1444 | "sax": {
1445 | "version": "1.2.4",
1446 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
1447 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
1448 | },
1449 | "semver": {
1450 | "version": "7.3.4",
1451 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz",
1452 | "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==",
1453 | "requires": {
1454 | "lru-cache": "^6.0.0"
1455 | }
1456 | },
1457 | "set-blocking": {
1458 | "version": "2.0.0",
1459 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1460 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
1461 | },
1462 | "setimmediate": {
1463 | "version": "1.0.5",
1464 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
1465 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU="
1466 | },
1467 | "signal-exit": {
1468 | "version": "3.0.3",
1469 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
1470 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="
1471 | },
1472 | "snakecase-keys": {
1473 | "version": "3.2.1",
1474 | "resolved": "https://registry.npmjs.org/snakecase-keys/-/snakecase-keys-3.2.1.tgz",
1475 | "integrity": "sha512-CjU5pyRfwOtaOITYv5C8DzpZ8XA/ieRsDpr93HI2r6e3YInC6moZpSQbmUtg8cTk58tq2x3jcG2gv+p1IZGmMA==",
1476 | "requires": {
1477 | "map-obj": "^4.1.0",
1478 | "to-snake-case": "^1.0.0"
1479 | }
1480 | },
1481 | "sshpk": {
1482 | "version": "1.16.1",
1483 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
1484 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
1485 | "requires": {
1486 | "asn1": "~0.2.3",
1487 | "assert-plus": "^1.0.0",
1488 | "bcrypt-pbkdf": "^1.0.0",
1489 | "dashdash": "^1.12.0",
1490 | "ecc-jsbn": "~0.1.1",
1491 | "getpass": "^0.1.1",
1492 | "jsbn": "~0.1.0",
1493 | "safer-buffer": "^2.0.2",
1494 | "tweetnacl": "~0.14.0"
1495 | }
1496 | },
1497 | "stealthy-require": {
1498 | "version": "1.1.1",
1499 | "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz",
1500 | "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks="
1501 | },
1502 | "string-width": {
1503 | "version": "1.0.2",
1504 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
1505 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
1506 | "requires": {
1507 | "code-point-at": "^1.0.0",
1508 | "is-fullwidth-code-point": "^1.0.0",
1509 | "strip-ansi": "^3.0.0"
1510 | }
1511 | },
1512 | "string_decoder": {
1513 | "version": "1.1.1",
1514 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
1515 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
1516 | "requires": {
1517 | "safe-buffer": "~5.1.0"
1518 | },
1519 | "dependencies": {
1520 | "safe-buffer": {
1521 | "version": "5.1.2",
1522 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1523 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
1524 | }
1525 | }
1526 | },
1527 | "strip-ansi": {
1528 | "version": "3.0.1",
1529 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
1530 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
1531 | "requires": {
1532 | "ansi-regex": "^2.0.0"
1533 | }
1534 | },
1535 | "tar": {
1536 | "version": "6.1.11",
1537 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz",
1538 | "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==",
1539 | "requires": {
1540 | "chownr": "^2.0.0",
1541 | "fs-minipass": "^2.0.0",
1542 | "minipass": "^3.0.0",
1543 | "minizlib": "^2.1.1",
1544 | "mkdirp": "^1.0.3",
1545 | "yallist": "^4.0.0"
1546 | },
1547 | "dependencies": {
1548 | "mkdirp": {
1549 | "version": "1.0.4",
1550 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
1551 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="
1552 | }
1553 | }
1554 | },
1555 | "timm": {
1556 | "version": "1.7.1",
1557 | "resolved": "https://registry.npmjs.org/timm/-/timm-1.7.1.tgz",
1558 | "integrity": "sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw=="
1559 | },
1560 | "tinycolor2": {
1561 | "version": "1.4.2",
1562 | "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.2.tgz",
1563 | "integrity": "sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA=="
1564 | },
1565 | "tlds": {
1566 | "version": "1.218.0",
1567 | "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.218.0.tgz",
1568 | "integrity": "sha512-JpD3eSrYaIFlU/OvtI5WTEK+v5qXZSeUifz4hT2bJsJKx5ykjZvg6i5yXVBJNjoN3XbTCtryc7H5v8B16yHfMg=="
1569 | },
1570 | "to-no-case": {
1571 | "version": "1.0.2",
1572 | "resolved": "https://registry.npmjs.org/to-no-case/-/to-no-case-1.0.2.tgz",
1573 | "integrity": "sha1-xyKQcWTvaxeBMsjmmTAhLRtKoWo="
1574 | },
1575 | "to-snake-case": {
1576 | "version": "1.0.0",
1577 | "resolved": "https://registry.npmjs.org/to-snake-case/-/to-snake-case-1.0.0.tgz",
1578 | "integrity": "sha1-znRpE4l5RgGah+Yu366upMYIq4w=",
1579 | "requires": {
1580 | "to-space-case": "^1.0.0"
1581 | }
1582 | },
1583 | "to-space-case": {
1584 | "version": "1.0.0",
1585 | "resolved": "https://registry.npmjs.org/to-space-case/-/to-space-case-1.0.0.tgz",
1586 | "integrity": "sha1-sFLar7Gysp3HcM6gFj5ewOvJ/Bc=",
1587 | "requires": {
1588 | "to-no-case": "^1.0.0"
1589 | }
1590 | },
1591 | "tough-cookie": {
1592 | "version": "2.5.0",
1593 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
1594 | "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
1595 | "requires": {
1596 | "psl": "^1.1.28",
1597 | "punycode": "^2.1.1"
1598 | }
1599 | },
1600 | "tr46": {
1601 | "version": "0.0.3",
1602 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
1603 | "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
1604 | },
1605 | "ts-custom-error": {
1606 | "version": "2.2.2",
1607 | "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-2.2.2.tgz",
1608 | "integrity": "sha512-I0FEdfdatDjeigRqh1JFj67bcIKyRNm12UVGheBjs2pXgyELg2xeiQLVaWu1pVmNGXZVnz/fvycSU41moBIpOg=="
1609 | },
1610 | "ts-xor": {
1611 | "version": "1.0.8",
1612 | "resolved": "https://registry.npmjs.org/ts-xor/-/ts-xor-1.0.8.tgz",
1613 | "integrity": "sha512-0u70/SDLSCaX23UddnwAb2GvZZ2N0Rbjnmemn5pHoR40D32Xcva5KRGWV9SdJOKHCjJUlmctmCTvT0z+2yT8aw=="
1614 | },
1615 | "tslib": {
1616 | "version": "1.14.1",
1617 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
1618 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
1619 | },
1620 | "tunnel-agent": {
1621 | "version": "0.6.0",
1622 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
1623 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
1624 | "requires": {
1625 | "safe-buffer": "^5.0.1"
1626 | }
1627 | },
1628 | "tweetnacl": {
1629 | "version": "0.14.5",
1630 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
1631 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
1632 | },
1633 | "uri-js": {
1634 | "version": "4.2.2",
1635 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
1636 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
1637 | "requires": {
1638 | "punycode": "^2.1.0"
1639 | }
1640 | },
1641 | "url-regex-safe": {
1642 | "version": "1.0.2",
1643 | "resolved": "https://registry.npmjs.org/url-regex-safe/-/url-regex-safe-1.0.2.tgz",
1644 | "integrity": "sha512-t1doIKbYDBRyqXZz7A98AXH/zimKmYapxFjBZwcz3BmqjB921rUPEUokAaShKyenaX3McOM8FbkWLvFvX3Jsyw==",
1645 | "requires": {
1646 | "ip-regex": "^4.1.0",
1647 | "re2": "^1.15.4",
1648 | "tlds": "^1.209.0"
1649 | }
1650 | },
1651 | "utif": {
1652 | "version": "2.0.1",
1653 | "resolved": "https://registry.npmjs.org/utif/-/utif-2.0.1.tgz",
1654 | "integrity": "sha512-Z/S1fNKCicQTf375lIP9G8Sa1H/phcysstNrrSdZKj1f9g58J4NMgb5IgiEZN9/nLMPDwF0W7hdOe9Qq2IYoLg==",
1655 | "requires": {
1656 | "pako": "^1.0.5"
1657 | }
1658 | },
1659 | "util-deprecate": {
1660 | "version": "1.0.2",
1661 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1662 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
1663 | },
1664 | "utility-types": {
1665 | "version": "3.10.0",
1666 | "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz",
1667 | "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg=="
1668 | },
1669 | "uuid": {
1670 | "version": "3.3.3",
1671 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz",
1672 | "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ=="
1673 | },
1674 | "verror": {
1675 | "version": "1.10.0",
1676 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
1677 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
1678 | "requires": {
1679 | "assert-plus": "^1.0.0",
1680 | "core-util-is": "1.0.2",
1681 | "extsprintf": "^1.2.0"
1682 | }
1683 | },
1684 | "webidl-conversions": {
1685 | "version": "3.0.1",
1686 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
1687 | "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="
1688 | },
1689 | "whatwg-url": {
1690 | "version": "5.0.0",
1691 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
1692 | "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",
1693 | "requires": {
1694 | "tr46": "~0.0.3",
1695 | "webidl-conversions": "^3.0.0"
1696 | }
1697 | },
1698 | "which": {
1699 | "version": "2.0.2",
1700 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
1701 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1702 | "requires": {
1703 | "isexe": "^2.0.0"
1704 | }
1705 | },
1706 | "wide-align": {
1707 | "version": "1.1.3",
1708 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
1709 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
1710 | "requires": {
1711 | "string-width": "^1.0.2 || 2"
1712 | }
1713 | },
1714 | "wrappy": {
1715 | "version": "1.0.2",
1716 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1717 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
1718 | },
1719 | "ws": {
1720 | "version": "7.5.3",
1721 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz",
1722 | "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg=="
1723 | },
1724 | "xhr": {
1725 | "version": "2.6.0",
1726 | "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz",
1727 | "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==",
1728 | "requires": {
1729 | "global": "~4.4.0",
1730 | "is-function": "^1.0.1",
1731 | "parse-headers": "^2.0.0",
1732 | "xtend": "^4.0.0"
1733 | }
1734 | },
1735 | "xml-parse-from-string": {
1736 | "version": "1.0.1",
1737 | "resolved": "https://registry.npmjs.org/xml-parse-from-string/-/xml-parse-from-string-1.0.1.tgz",
1738 | "integrity": "sha1-qQKekp09vN7RafPG4oI42VpdWig="
1739 | },
1740 | "xml2js": {
1741 | "version": "0.4.23",
1742 | "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz",
1743 | "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==",
1744 | "requires": {
1745 | "sax": ">=0.6.0",
1746 | "xmlbuilder": "~11.0.0"
1747 | }
1748 | },
1749 | "xmlbuilder": {
1750 | "version": "11.0.1",
1751 | "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
1752 | "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="
1753 | },
1754 | "xtend": {
1755 | "version": "4.0.2",
1756 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
1757 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
1758 | },
1759 | "yallist": {
1760 | "version": "4.0.0",
1761 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1762 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
1763 | }
1764 | }
1765 | }
1766 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "insta_reddit_bot",
3 | "version": "0.3.6",
4 | "description": "A bot for Instagram which pulls images from Reddit",
5 | "main": "bot.js",
6 | "scripts": {
7 | "start": "node bot.js",
8 | "debug": "NODE_ENV=dev DEBUG=* node bot.js",
9 | "debug-noig": "NODE_ENV=dev DEBUG=* node bot.js -debug om3qwy",
10 | "debug-forceig": "NODE_ENV=dev DEBUG=* node bot.js -forceig -debug om3qwy",
11 | "settings": "nano settings.json"
12 | },
13 | "repository": {
14 | "type": "git",
15 | "url": "git+https://github.com/FreekBes/insta_reddit_bot.git"
16 | },
17 | "keywords": [
18 | "instagram",
19 | "reddit",
20 | "bot"
21 | ],
22 | "author": "Freek Bes",
23 | "license": "GPL-3.0",
24 | "bugs": {
25 | "url": "https://github.com/FreekBes/insta_reddit_bot/issues"
26 | },
27 | "homepage": "https://github.com/FreekBes/insta_reddit_bot#readme",
28 | "dependencies": {
29 | "discord.js": "^12.5.1",
30 | "https": "^1.0.0",
31 | "image-type": "^4.1.0",
32 | "instagram-private-api": "^1.39.0",
33 | "jimp": "^0.16.1",
34 | "lookpath": "^1.2.0",
35 | "request": "^2.88.0"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/settings.template.json:
--------------------------------------------------------------------------------
1 | {
2 | "instagram": {
3 | "username": "ENTER_INSTAGRAM_USERNAME_HERE",
4 | "password": "ENTER_INSTAGRAM_PASSWORD_HERE",
5 | "seed": "ENTER_RANDOM_WORD_HERE",
6 | "credits_in_caption": true,
7 | "credits_format": "Mirrored from a post on %subreddit% by %user%: %url%",
8 | "restart_every": 0
9 | },
10 | "reddit": {
11 | "subreddits": {
12 | "/r/ENTER_A_SUBREDDIT_HERE": 100
13 | }
14 | },
15 | "discord": {
16 | "enabled": false,
17 | "token": "ENTER_DISCORD_TOKEN_HERE_THEN_ENABLE",
18 | "prefix": "!",
19 | "channels": {
20 | "commands": "ENTER_CHANNEL_ID_HERE",
21 | "system": "ENTER_CHANNEL_ID_HERE"
22 | }
23 | },
24 | "schedule": {
25 | "human_error": {
26 | "min": 20,
27 | "max": 320
28 | },
29 | "hourly_timings": [
30 | [12, 32, 52],
31 | [12, 32, 52],
32 | [12, 32, 52],
33 | [12, 42],
34 | [12, 42],
35 | [12, 42],
36 | [12, 42],
37 | [12, 42],
38 | [12, 42],
39 | [12, 42],
40 | [12, 42],
41 | [12, 42],
42 | [12, 42],
43 | [12, 42],
44 | [12, 42],
45 | [12, 32, 52],
46 | [12, 32, 52],
47 | [12, 32, 52],
48 | [12, 32, 52],
49 | [12, 32, 52],
50 | [12, 32, 52],
51 | [12, 32, 52],
52 | [12, 32, 52],
53 | [12, 32, 52],
54 | [12, 32, 52],
55 | [12, 32, 52]
56 | ]
57 | }
58 | }
--------------------------------------------------------------------------------