├── .gitignore ├── LICENSE ├── README.md ├── app.json ├── config ├── collection.js └── connecton.js ├── helper ├── adminHelper.js └── adminList.js ├── index.js ├── package-lock.json └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | node_modules 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # filestoringbot 2 | stores files with file_id on telegram ( "This bot is only for storing and sending files and not for promoting violation of copyright") 3 | 4 | 5 | Deploy 6 | 7 | 8 | 9 | required details 10 | 11 | TOKEN - Get bot token from bot father 12 | 13 | DOMAIN - Same as app name that you enter in heroku 14 | 15 | ADMIN - your account id(if you cant find it use bots like @getidsbot ) 16 | 17 | CHANNEL_USERNAME - your channel username without '@' 18 | 19 | DB_URL - create an account on https://www.mongodb.com/cloud/atlas , database name - mediaFile ,collection name - fileBackup.Click connect and choose 'connect your application'.Copy the link and replace "< password >" with password of user having acess to db and replace "myFirstDatabase" to "mediaFile" 20 | 21 | GROUP_ID - create a private group or channel to get users search and failed search ,so you can notify them after uploading content 22 | 23 | 24 | 25 | 26 | we have added some tutorials on how to use t.me/filestoringbot 27 | 28 |

HOW TO USE?

How to save file? 33 | 34 | 1.send document to bot it will return a file_id 35 | 36 | 2.copy file_id 37 | 38 | 3.use the following format /save file name,file_id 39 | 40 | 4.To add more than one files seperate multiple file_id with coma /save file name,file_id,file_id2,file_id3,file_id4 41 | 42 | 43 |

How to save file?

44 | 45 | 1.To update already existing filter eg.if you missed one episode of a series 46 | 47 | 2.use /update file name,file_id 48 | 49 |

How to broadcast to all users?

50 | 51 | /send your message 52 | 53 | 54 |

HOW FILES GET SAVED?

55 | 56 | Files that are forwarded to bot will get saved for getting inline search result with caption ,manually saved files may not be having captions for now 57 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JsFileStoreBot", 3 | "description": "file storing bot made in JAVA SCRIPT", 4 | "repository": "https://github.com/Kunal-Diwan/JsFileStoreBot", 5 | "logo": "https://node-js-sample.herokuapp.com/node.png", 6 | "keywords": ["telegram","filestoring","bot","nodejs"], 7 | "env": { 8 | "TOKEN": { 9 | "description": "bot token provided by @botfather", 10 | "value":"token" 11 | }, 12 | "DOMAIN":{ 13 | "description": "enter your app name", 14 | "value":"domain" 15 | }, 16 | "DB_URL":{ 17 | "description": "get mongodb database url from https://www.mongodb.com/cloud/atlas with database name = mediaFile and collection name = fileBackup", 18 | "value":"db" 19 | }, 20 | "ADMIN":{ 21 | "description": "enter your id", 22 | "value":"admin_id" 23 | }, 24 | "CHANNEL_USERNAME":{ 25 | "description": "channel username without @", 26 | "value":"channel" 27 | }, 28 | "LOG_GROUP":{ 29 | "description": "private group id to get user search data", 30 | "value":"group" 31 | } 32 | 33 | 34 | 35 | 36 | 37 | 38 | }, 39 | "buildpacks": [ 40 | { 41 | "url": "heroku/nodejs" 42 | } 43 | ] 44 | } 45 | -------------------------------------------------------------------------------- /config/collection.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | FILE_COLLECTION : "fileBackup", 3 | USER_INFO:"user", 4 | REQUEST:'request', 5 | INLINE_FILE:'inline' 6 | } 7 | -------------------------------------------------------------------------------- /config/connecton.js: -------------------------------------------------------------------------------- 1 | const MongoClient = require('mongodb').MongoClient 2 | const collection = require('./collection') 3 | 4 | const state = { 5 | db: null 6 | } 7 | 8 | module.exports.connect = function (done) { 9 | url = process.env.DB_URL 10 | const dbname = 'mediaFile' 11 | 12 | MongoClient.connect(url,{ useUnifiedTopology: true } , (err, data) => { 13 | if (err) return done(err) 14 | state.db = data.db(dbname) 15 | done() 16 | }) 17 | 18 | 19 | } 20 | 21 | module.exports.get = function () { 22 | return state.db 23 | } 24 | -------------------------------------------------------------------------------- /helper/adminHelper.js: -------------------------------------------------------------------------------- 1 | const db = require('../config/connecton') 2 | const collection = require('../config/collection') 3 | var objectId = require('mongodb').ObjectID 4 | 5 | module.exports={ 6 | //saving user id for broadcasting 7 | saveUser:(userData)=>{ 8 | db.get().collection(collection.USER_INFO).createIndex({"userId":1},{unique:true,dropDups: true}) 9 | db.get().collection(collection.USER_INFO).insertOne(userData).catch((err)=>{ 10 | 11 | }) 12 | }, 13 | getUser:()=>{ 14 | return new Promise((resolve,reject)=>{ 15 | db.get().collection(collection.USER_INFO).find({}).toArray().then((res)=>{ 16 | resolve(res) 17 | }) 18 | }) 19 | }, 20 | saveFile:(fileData)=>{ 21 | db.get().collection(collection.FILE_COLLECTION).insertOne(fileData).then((res)=>{ 22 | console.log(res); 23 | }) 24 | }, 25 | getFile:(query)=>{ 26 | return new Promise((resolve,reject)=>{ 27 | db.get().collection(collection.FILE_COLLECTION).findOne({searchQuery:query}).then((res)=>{ 28 | resolve(res) 29 | }) 30 | }) 31 | }, 32 | updateFile:(updateData)=>{ 33 | return new Promise((resolve,reject)=>{ 34 | db.get().collection(collection.FILE_COLLECTION).updateOne({searchQuery:updateData.searchQuery},{$push:{file_id:{$each:updateData.file_id}}}).then((res)=>{ 35 | resolve(res) 36 | }) 37 | }) 38 | }, 39 | getList:()=>{ 40 | return new Promise((resolve,reject)=>{ 41 | db.get().collection(collection.FILE_COLLECTION).find({}).toArray().then((res)=>{ 42 | resolve(res) 43 | }) 44 | }) 45 | }, 46 | deleteFile:(searchQuery)=>{ 47 | return new Promise((resolve,reject)=>{ 48 | db.get().collection(collection.FILE_COLLECTION).deleteOne({searchQuery:searchQuery}).then((res)=>{ 49 | resolve(res) 50 | }) 51 | }) 52 | }, 53 | //trying to save failed search as request 54 | saveRequest:(requestData)=>{ 55 | db.get().collection(collection.REQUEST).createIndex({"inputQuery":1},{unique:true,dropDups:true}) 56 | db.get().collection(collection.REQUEST).insertOne(requestData).then((res)=>{ 57 | console.log(res); 58 | }) 59 | }, 60 | getRequest:()=>{ 61 | return new Promise((resolve,reject)=>{ 62 | db.get().collection(collection.REQUEST).find({}).toArray().then((res)=>{ 63 | resolve(res) 64 | }) 65 | }) 66 | }, 67 | delRequest:(query)=>{ 68 | return new Promise((resolve,reject)=>{ 69 | db.get().collection(collection.REQUEST).deleteOne({inputQuery:query}).then((res)=>{ 70 | resolve(res) 71 | }) 72 | }) 73 | }, 74 | 75 | //saving files automatically for inline search 76 | saveFileInline:(fileDetails)=>{ 77 | db.get().collection(collection.INLINE_FILE).createIndex({file_name:"text"}) 78 | db.get().collection(collection.INLINE_FILE).insertOne(fileDetails).then((res)=>{ 79 | console.log(res); 80 | }) 81 | }, 82 | getfileInline:(query)=>{ 83 | return new Promise(async(resolve,reject)=>{ 84 | await db.get().collection(collection.INLINE_FILE).find( { file_name: { $regex:query ,$options:'i'} } ).toArray().then((res)=>{ 85 | console.log(res); 86 | resolve(res) 87 | }) 88 | }) 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /helper/adminList.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | require('dotenv').config() 2 | const { Telegraf, Markup } = require('telegraf') 3 | const TelegrafStatelessQuestion = require('telegraf-stateless-question'); 4 | const bot = new Telegraf(process.env.TOKEN) 5 | 6 | const db = require('./config/connecton') 7 | const collection = require('./config/collection') 8 | const adminHelper = require('./helper/adminHelper') 9 | 10 | 11 | //DATABASE CONNECTION 12 | db.connect((err) => { 13 | if (err) { console.log('error connection db' + err); } 14 | else { console.log('db connected'); } 15 | }) 16 | 17 | //member of a channel or not 18 | let joinedState = false 19 | 20 | //start message 21 | 22 | bot.start(async (ctx) => { 23 | let userId = ctx.message.from.id 24 | let first_name = ctx.message.from.first_name 25 | 26 | //checking if user is a member of channel or not 27 | await bot.telegram.getChatMember(`@${process.env.CHANNEL_USERNAME}`, ctx.from.id).then((res) => { 28 | status = res.status 29 | console.log(status); 30 | if (status == 'left') { 31 | joinedState = false 32 | ctx.reply(`You must join our channel to use this bot`, { 33 | parse_mode: 'HTML', 34 | reply_markup: { 35 | inline_keyboard: [ 36 | [{ text: '↗️ Join channel ↗️', url: `t.me/${process.env.CHANNEL_USERNAME}` }], 37 | [{ text: '✅ Joined ✅', callback_data: 'JOINCHECK' }] 38 | ] 39 | } 40 | }) 41 | } else { 42 | joinedState = true 43 | ctx.reply('Here you can search files in Inline mode as well as PM, Use the below buttons to search file uploaded by our Team ..', { 44 | parse_mode: 'HTML', 45 | reply_markup: { 46 | inline_keyboard: [ 47 | [{ text: '🔎 Search 🔎',switch_inline_query:''}] 48 | ] 49 | } 50 | 51 | }) 52 | } 53 | }) 54 | 55 | //to save userdata for broadcasting purpose 56 | 57 | userData = { 58 | userId: userId, 59 | first_name: first_name 60 | 61 | } 62 | adminHelper.saveUser(userData) 63 | 64 | //checking if admin and providing admin keyboard to manage requests,help etc 65 | if (ctx.from.id == process.env.ADMIN) { 66 | return await ctx.reply('🙋 Hello my Admin, I am File Store Bot - I can Help you to upload/search files via inline mode . \nPowered By @DevelopedBots 💖', Markup.keyboard( 67 | [ 68 | ['🤖 Statics','❓Help'], 69 | ['👥 Requests'], 70 | ['💌 Broadcast'] 71 | ] 72 | ) 73 | .oneTime() 74 | .resize() 75 | ) 76 | }else{ 77 | return await ctx.reply('Check Below Buttons to Know more ....',Markup.keyboard( 78 | [ 79 | ['📖 Help 📖','↗️ Share ↗️'], 80 | ['📥Request'], 81 | ['🧾List'] 82 | ] 83 | ) 84 | .oneTime() 85 | .resize() 86 | ) 87 | 88 | } 89 | }) 90 | 91 | 92 | //==============================================================================================================// 93 | 94 | //defining admin buttons 95 | 96 | 97 | bot.hears('🤖 Statics', async (ctx) => { 98 | let users = await adminHelper.getUser().then((res) => { 99 | if (ctx.from.id == process.env.ADMIN) { 100 | ctx.reply(`📊Total users started bot:${res.length}\n\n⚠Real time data only available while broadcasting message`, { parse_mode: 'HTML' }) 101 | } else { 102 | ctx.reply('not found read /help to know how to use the bot') 103 | } 104 | }) 105 | }) 106 | bot.hears('❓Help', (ctx) => { 107 | ctx.deleteMessage() 108 | if (ctx.from.id == process.env.ADMIN) { 109 | ctx.reply('we will soon add tutorials and documentations check @DevelopedBots') 110 | } 111 | }) 112 | bot.hears('👥 Requests', async (ctx) => { 113 | ctx.deleteMessage() 114 | if (ctx.from.id == process.env.ADMIN) { 115 | let req = await adminHelper.getRequest().then((res) => { 116 | console.log(res); 117 | let reqArray = []; 118 | for (i = 0; i < res.length; i++) { 119 | reqArray.push(res[i].inputQuery) 120 | } 121 | console.log(reqArray); 122 | let requestedContent = reqArray.map((item, index) => { 123 | return `${item}` 124 | }) 125 | let reqData = requestedContent.join('\n\n') 126 | if (ctx.from.id == process.env.ADMIN) { 127 | ctx.reply(`${reqData}`, { 128 | parse_mode: 'HTML', 129 | reply_markup: { 130 | inline_keyboard: [ 131 | [{ text: 'Delete a request', callback_data: 'REQONE' }], 132 | [{ text: "Delete all Requests", callback_data: 'REQALL' }] 133 | ] 134 | } 135 | }) 136 | } 137 | 138 | }) 139 | } 140 | }) 141 | 142 | //getting requested keyword to remove 143 | 144 | const ReqQuestion = new TelegrafStatelessQuestion('request',async ctx => { 145 | console.log('user broadcasting') 146 | text =ctx.message.text 147 | if(text.length >0){ 148 | await adminHelper.delRequest(text).then(async(res)=>{ 149 | 150 | if (ctx.from.id == process.env.ADMIN) { 151 | return await ctx.reply('✅Removed succesfully ', Markup.keyboard( 152 | [ 153 | ['🤖 Bot statics','🔰Help'], 154 | ['❕Requests'], 155 | ['💌 Broadcast'] 156 | ] 157 | ) 158 | .oneTime() 159 | .resize() 160 | ) 161 | } 162 | 163 | }) 164 | }else{ 165 | ctx.reply('🚫 Enter a valid text') 166 | } 167 | 168 | }) 169 | bot.use(ReqQuestion.middleware()) 170 | 171 | bot.action('REQONE',async(ctx)=>{ 172 | text = '⚠ Copy paste the exact keyword from request list to remove from list' 173 | return ReqQuestion.replyWithMarkdown(ctx,text) 174 | }) 175 | 176 | //getting broadcast message 177 | 178 | const broadCastQuestion = new TelegrafStatelessQuestion('broadcastuser',async ctx => { 179 | console.log('user broadcasting') 180 | text =ctx.message.text 181 | 182 | if(ctx.message.text.length >0){ 183 | let userData = await adminHelper.getUser().then(async(res) => { 184 | 185 | let userId = [] 186 | n = res.length 187 | for (i = 0; i < n; i++) { 188 | userId.push(res[i].userId) 189 | } 190 | //broadcasting message and getting number of sucesfull broadcast 191 | failedCount = [] 192 | async function broadcast(text) { 193 | for (users of userId) { 194 | try { 195 | await bot.telegram.sendMessage(users, String(text)) 196 | } catch (error) { 197 | failedCount.push(users) 198 | } 199 | } 200 | // ctx.reply(`📊Total users started bot: ${n}\n🛑failed users -${failedCount.length}\n🎉Active users:${n - failedCount.length}`, { parse_mode: 'HTML' }) 201 | return await ctx.replyWithMarkdown(`📊Total users started bot: *${n}*\n🛑failed users -*${failedCount.length}*\n🎉Active users:*${n - failedCount.length}*`, Markup.keyboard( 202 | [ 203 | ['🤖Bot statics','🔰Help'], 204 | ['❕Requests'], 205 | ['💌 Broadcast'] 206 | ] 207 | ) 208 | .oneTime() 209 | .resize() 210 | ) 211 | } 212 | 213 | if (ctx.from.id == process.env.ADMIN) { 214 | broadcast(text) 215 | } else { 216 | ctx.reply('you dont have the permission') 217 | } 218 | 219 | }) 220 | }else{ 221 | ctx.reply('‼ Enter a valid text') 222 | } 223 | }) 224 | 225 | // Dont forget to use the middleware 226 | bot.use(broadCastQuestion.middleware()) 227 | 228 | bot.hears('💌 Broadcast',(ctx)=>{ 229 | let text = 'Enter message to be brodcasted(only text supported)' 230 | return broadCastQuestion.replyWithMarkdown(ctx,text) 231 | 232 | }) 233 | 234 | //==============================================================================================================// 235 | 236 | //defining user buttons 237 | 238 | bot.hears('📖 Help 📖',(ctx)=>{ 239 | ctx.reply(`🔍 NORMAL SEARCH\n\nSimply type your search keyword if its available bot will fetch files for you.Files may not have caption we will fix it soon`,{ 240 | parse_mode:'HTML', 241 | reply_markup:{ 242 | inline_keyboard:[ 243 | [{ text: "▶ Next", callback_data: 'helpNext'}], 244 | [{text:'🎲Clone',url:'https://github.com/Kunal-Diwan/JsFileStoreBot'}] 245 | ] 246 | } 247 | }) 248 | }) 249 | 250 | bot.hears('↗️ Share ↗️',(ctx)=>{ 251 | ctx.deleteMessage() 252 | ctx.reply(`❤ Hi ${ctx.from.first_name} thanks for helping us.Click share button below and share our channel as a token of support`,{ 253 | parse_mode:'HTML', 254 | reply_markup:{ 255 | inline_keyboard:[ 256 | [{text:'🧡 SHARE',url:`https://t.me/share/url?url=https://t.me/${process.env.CHANNEL_USERNAME}`}] 257 | ] 258 | } 259 | }) 260 | }) 261 | 262 | const Req = new TelegrafStatelessQuestion('requesting',async ctx => { 263 | console.log('req') 264 | text =ctx.message.text 265 | reqData={ 266 | inputQuery:text 267 | } 268 | 269 | if(ctx.message.via_bot){ 270 | adminHelper.saveRequest(reqData) 271 | ctx.deleteMessage() 272 | return await ctx.reply(`🔖Saved to pending requests check our channel for updates`,Markup.keyboard( 273 | [ 274 | ['📖Help','♻Share'], 275 | ['📥Request'], 276 | ['🧾List'] 277 | ] 278 | ) 279 | .oneTime() 280 | .resize() 281 | ) 282 | }else{ 283 | ctx.deleteMessage() 284 | ctx.replyWithMarkdown(`❌Failed request try again\n use *@imdb* inline and enter query`) 285 | } 286 | 287 | }) 288 | bot.use(Req.middleware()) 289 | 290 | bot.hears('📥Request',(ctx)=>{ 291 | text = `🎉 use *@imdb* inline and enter query` 292 | return Req.replyWithMarkup(ctx,text) 293 | }) 294 | 295 | bot.hears('🧾List',(ctx)=>{ 296 | saveData = adminHelper.getList().then((res) => { 297 | let n = res.length 298 | list = [] 299 | for (i = 0; i < n; i++) { 300 | list.push(res[i].searchQuery) 301 | } 302 | let outputList = list.map((item, index) => { 303 | return `${item}` 304 | }) 305 | let resultList = outputList.join('\n\n') 306 | ctx.reply(resultList, { 307 | parse_mode: 'HTML' 308 | }) 309 | }) 310 | }) 311 | 312 | 313 | //broadcasting message 314 | 315 | bot.command('send', async (ctx) => { 316 | msg = ctx.message.text 317 | let msgArray = msg.split(' ') 318 | msgArray.shift() 319 | let text = msgArray.join(' ') 320 | console.log(text); 321 | 322 | let userData = await adminHelper.getUser().then((res) => { 323 | 324 | let userId = [] 325 | n = res.length 326 | for (i = 0; i < n; i++) { 327 | userId.push(res[i].userId) 328 | } 329 | //broadcasting message and getting number of sucesfull broadcast 330 | failedCount = [] 331 | async function broadcast(text) { 332 | for (users of userId) { 333 | try { 334 | await bot.telegram.sendMessage(users, String(text)) 335 | } catch (error) { 336 | failedCount.push(users) 337 | } 338 | } 339 | ctx.reply(`📊Total users started bot: ${n}\n🛑failed users -${failedCount.length}\n🎉Active users:${n - failedCount.length}`, { parse_mode: 'HTML' }) 340 | } 341 | 342 | if (ctx.from.id == process.env.ADMIN) { 343 | broadcast(text) 344 | } else { 345 | ctx.reply('you dont have the permission') 346 | } 347 | 348 | }) 349 | }) 350 | 351 | //getting file_id on sending document to bot 352 | 353 | bot.on('document', (ctx) => { 354 | document = ctx.message.document 355 | file_id = document.file_id 356 | fileDetails ={ 357 | file_name:document.file_name, 358 | file_id:document.file_id, 359 | caption:ctx.message.caption, 360 | file_size:document.file_size, 361 | uniqueId:document.file_unique_id 362 | } 363 | 364 | if (ctx.from.id == process.env.ADMIN) { 365 | ctx.reply(file_id) 366 | adminHelper.saveFileInline(fileDetails) 367 | } else { 368 | ctx.reply('🚫better send files to your personal chat') 369 | } 370 | 371 | 372 | }) 373 | 374 | bot.on('audio',(ctx)=>{ 375 | console.log(ctx.message.audio); 376 | audio = ctx.message.audio 377 | fileDetails ={ 378 | file_name:audio.file_name, 379 | file_id:audio.file_id, 380 | caption:ctx.message.caption, 381 | file_size:audio.file_size, 382 | uniqueId:audio.file_unique_id 383 | } 384 | 385 | if (ctx.from.id == process.env.ADMIN) { 386 | ctx.reply(audio.file_id) 387 | adminHelper.saveFileInline(fileDetails) 388 | } else { 389 | ctx.reply('🚫better send files to your personal chat') 390 | } 391 | }) 392 | 393 | //saving file_id with search query to database -input format /save file name,file_id1,file_id2 394 | 395 | bot.command('save', (ctx) => { 396 | inputMessage = ctx.message.text 397 | let inputMsgArray = inputMessage.split(' ') 398 | inputMsgArray.shift() 399 | let newInputMsgArray = inputMsgArray.join(' ') 400 | let message = newInputMsgArray.split(',') 401 | searchQuery = message[0].toLowerCase() 402 | message.shift() 403 | fileData = { 404 | searchQuery: searchQuery, 405 | file_id: message 406 | } 407 | 408 | if (ctx.from.id == process.env.ADMIN) { 409 | adminHelper.saveFile(fileData) 410 | ctx.reply('✅saved') 411 | } else { 412 | ctx.reply('not authorized') 413 | } 414 | 415 | }) 416 | 417 | //delete content 418 | 419 | bot.command('del',(ctx)=>{ 420 | msg = ctx.message.text 421 | let msgArray = msg.split(' ') 422 | msgArray.shift() 423 | let query = msgArray.join(' ') 424 | query.toLowerCase() 425 | console.log(query); 426 | if(ctx.from.id == process.env.ADMIN){ 427 | adminHelper.deleteFile(query) 428 | ctx.reply('⭕removed') 429 | } 430 | }) 431 | 432 | //update content 433 | 434 | bot.command('update', async (ctx) => { 435 | inputMessage = ctx.message.text 436 | let inputMsgArray = inputMessage.split(' ') 437 | inputMsgArray.shift() 438 | let newInputMsgArray = inputMsgArray.join(' ') 439 | let message = newInputMsgArray.split(',') 440 | searchQuery = message[0].toLowerCase() 441 | message.shift() 442 | updateData = { 443 | searchQuery: searchQuery, 444 | file_id: message 445 | } 446 | if (ctx.from.id == process.env.ADMIN) { 447 | let update = await adminHelper.updateFile(updateData).then((res) => { 448 | if (res.result.nModified == 0) { 449 | ctx.reply('❌Nothing to upate') 450 | } else { 451 | ctx.reply('✅Updated') 452 | } 453 | }) 454 | } else { 455 | ctx.reply('you are not authorized') 456 | } 457 | }) 458 | 459 | //getting list of all added contents 460 | 461 | bot.command('list', async (ctx) => { 462 | saveData = adminHelper.getList().then((res) => { 463 | let n = res.length 464 | list = [] 465 | for (i = 0; i < n; i++) { 466 | list.push(res[i].searchQuery) 467 | } 468 | let outputList = list.map((item, index) => { 469 | return `${item}` 470 | }) 471 | let resultList = outputList.join('\n\n') 472 | ctx.reply(resultList, { 473 | parse_mode: 'HTML' 474 | }) 475 | }) 476 | }) 477 | 478 | //help 479 | 480 | bot.command('help', (ctx) => { 481 | ctx.reply(`🔍NORMAL SEARCH\n\nSimply type your search keyword if its available bot will fetch files for you.Files may not have caption we will fix it soon`,{ 482 | parse_mode:'HTML', 483 | reply_markup:{ 484 | inline_keyboard:[ 485 | [{ text: "▶ Next", callback_data: 'helpNext'}], 486 | [{text:'🎲 Clone',url:'https://github.com/Kunal-Diwan/JsFileStoreBot'}] 487 | ] 488 | } 489 | }) 490 | }) 491 | 492 | 493 | 494 | 495 | //checking search query and taking file_id from database and sending document with file_id 496 | 497 | bot.on('message', async (ctx) => { 498 | inputQuery = ctx.message.text 499 | query = inputQuery.toLowerCase() 500 | 501 | console.log(inputQuery); 502 | let requestData = { 503 | inputQuery: query, 504 | first_name: ctx.from.first_name, 505 | from: ctx.from.id 506 | } 507 | 508 | let file =await adminHelper.getFile(query).then((res) => { 509 | if (res) { 510 | let n = res.file_id.length 511 | if (n > 0) { 512 | for (i = 0; i < n; i++) { 513 | ctx.replyWithDocument(res.file_id[i]) 514 | 515 | } 516 | } else { 517 | //error message if searched data not available saving search query to requested list 518 | ctx.reply(`❌Looks like the requested content is not available right now.I have notified admins`, { parse_mode: 'HTML' }) 519 | bot.telegram.sendMessage(process.env.LOG_GROUP, `🛑Failed search\nKeyword:${query}\nFirst name:${ctx.from.first_name}\nUserId:${ctx.from.id}`, { parse_mode: 'HTML' }) 520 | 521 | 522 | } 523 | } else { 524 | ctx.reply(`❌Looks like the requested content is not available right now.I have notified admins`, { parse_mode: 'HTML' }) 525 | bot.telegram.sendMessage(process.env.LOG_GROUP, `🛑Failed search\nKeyword:${query}\nFirst name:${ctx.from.first_name}\nUserId:${ctx.from.id}`, { parse_mode: 'HTML' }) 526 | 527 | 528 | } 529 | }) 530 | 531 | bot.telegram.sendMessage(process.env.LOG_GROUP, `Keyword:${query}\nFirst name:${ctx.from.first_name}\nUserId:${ctx.from.id}`, { parse_mode: 'HTML' }) 532 | 533 | 534 | 535 | }) 536 | 537 | //inline search 538 | 539 | bot.on('inline_query',async(ctx)=>{ 540 | query = ctx.inlineQuery.query 541 | if(query.length>0){ 542 | let searchResult = adminHelper.getfileInline(query).then((res)=>{ 543 | let result = res.map((item,index)=>{ 544 | fileSize = item.file_size * 9.5367E-07 545 | return { 546 | type:'document', 547 | id:item._id, 548 | title:item.file_name, 549 | description:`size:${fileSize}MiB`, 550 | document_file_id:item.file_id, 551 | caption:item.caption, 552 | reply_markup:{ 553 | inline_keyboard:[ 554 | [{text:"🔎Search again",switch_inline_query:''}] 555 | ] 556 | } 557 | } 558 | }) 559 | 560 | ctx.answerInlineQuery(result) 561 | }) 562 | }else{ 563 | console.log('query not found'); 564 | } 565 | 566 | }) 567 | 568 | //==============================================================================================================// 569 | //==============================================================================================================// 570 | 571 | //callback datas 572 | 573 | bot.action('JOINCHECK', async (ctx) => { 574 | ctx.deleteMessage() 575 | await bot.telegram.getChatMember(`@${process.env.CHANNEL_USERNAME}`, ctx.from.id).then((res) => { 576 | status = res.status 577 | if (status != 'left') { 578 | joinedState = true 579 | ctx.reply('Search for files uploaded by our team', { 580 | parse_mode: 'HTML', 581 | reply_markup: { 582 | inline_keyboard: [ 583 | [{ text: '❤Share our channel', url: `https://t.me/share/url?url=https://t.me/${process.env.CHANNEL_USERNAME}` }] 584 | ] 585 | } 586 | 587 | }) 588 | 589 | } else { 590 | joinedState = false 591 | ctx.reply(`You must join our channel to use this bot`, { 592 | parse_mode: 'HTML', 593 | reply_markup: { 594 | inline_keyboard: [ 595 | [{ text: '🔰Join channel', url: `t.me/${process.env.CHANNEL_USERNAME}` }], 596 | [{ text: '✅Joined', callback_data: 'JOINCHECK' }] 597 | ] 598 | } 599 | }) 600 | } 601 | }) 602 | 603 | }) 604 | 605 | bot.action('helpNext', (ctx) => { 606 | ctx.deleteMessage() 607 | ctx.reply('🔰INLINE SEARCH\n\nClick 🔎Search button and use me inline in your personal chat.Files will be having caption and efficient search result', { 608 | parse_mode: "HTML", 609 | reply_markup: { 610 | inline_keyboard: [ 611 | [{ text: "◀ Back", callback_data: 'helpBack' }], 612 | [{ text: '🔎Search', switch_inline_query: "" }] 613 | ] 614 | } 615 | 616 | }) 617 | }) 618 | bot.action('helpBack', (ctx) => { 619 | ctx.deleteMessage() 620 | ctx.reply(`🔍NORMAL SEARCH\n\nSimply type your search keyword if its available bot will fetch files for you.Files may not have caption we will fix it soon`,{ 621 | parse_mode:'HTML', 622 | reply_markup:{ 623 | inline_keyboard:[ 624 | [{ text: "▶ Next", callback_data: 'helpNext'}], 625 | [{text:'💫 Clone',url:'https://github.com/Kunal-Diwan/JsFileStoreBot'}] 626 | ] 627 | } 628 | }) 629 | }) 630 | 631 | bot.action('REQALL', async (ctx) => { 632 | ctx.deleteMessage() 633 | await db.get().collection(collection.REQUEST).drop() 634 | }) 635 | 636 | 637 | // deploy to heroku 638 | 639 | domain = `${process.env.DOMAIN}.herokuapp.com` 640 | bot.launch({ 641 | webhook:{ 642 | domain:domain, 643 | port:Number(process.env.PORT) 644 | 645 | } 646 | }) 647 | 648 | 649 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jsfilestorebot", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@sindresorhus/is": { 8 | "version": "0.14.0", 9 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 10 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" 11 | }, 12 | "@szmarczak/http-timer": { 13 | "version": "1.1.2", 14 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 15 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 16 | "requires": { 17 | "defer-to-connect": "^1.0.1" 18 | } 19 | }, 20 | "abbrev": { 21 | "version": "1.1.1", 22 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 23 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 24 | }, 25 | "abort-controller": { 26 | "version": "3.0.0", 27 | "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", 28 | "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", 29 | "requires": { 30 | "event-target-shim": "^5.0.0" 31 | } 32 | }, 33 | "ansi-align": { 34 | "version": "3.0.0", 35 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 36 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 37 | "requires": { 38 | "string-width": "^3.0.0" 39 | }, 40 | "dependencies": { 41 | "string-width": { 42 | "version": "3.1.0", 43 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 44 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 45 | "requires": { 46 | "emoji-regex": "^7.0.1", 47 | "is-fullwidth-code-point": "^2.0.0", 48 | "strip-ansi": "^5.1.0" 49 | } 50 | } 51 | } 52 | }, 53 | "ansi-regex": { 54 | "version": "4.1.0", 55 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 56 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" 57 | }, 58 | "ansi-styles": { 59 | "version": "4.3.0", 60 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 61 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 62 | "requires": { 63 | "color-convert": "^2.0.1" 64 | } 65 | }, 66 | "anymatch": { 67 | "version": "3.1.1", 68 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 69 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 70 | "requires": { 71 | "normalize-path": "^3.0.0", 72 | "picomatch": "^2.0.4" 73 | } 74 | }, 75 | "balanced-match": { 76 | "version": "1.0.0", 77 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 78 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 79 | }, 80 | "binary-extensions": { 81 | "version": "2.2.0", 82 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 83 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" 84 | }, 85 | "bl": { 86 | "version": "2.2.1", 87 | "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", 88 | "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", 89 | "requires": { 90 | "readable-stream": "^2.3.5", 91 | "safe-buffer": "^5.1.1" 92 | } 93 | }, 94 | "boxen": { 95 | "version": "4.2.0", 96 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", 97 | "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", 98 | "requires": { 99 | "ansi-align": "^3.0.0", 100 | "camelcase": "^5.3.1", 101 | "chalk": "^3.0.0", 102 | "cli-boxes": "^2.2.0", 103 | "string-width": "^4.1.0", 104 | "term-size": "^2.1.0", 105 | "type-fest": "^0.8.1", 106 | "widest-line": "^3.1.0" 107 | } 108 | }, 109 | "brace-expansion": { 110 | "version": "1.1.11", 111 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 112 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 113 | "requires": { 114 | "balanced-match": "^1.0.0", 115 | "concat-map": "0.0.1" 116 | } 117 | }, 118 | "braces": { 119 | "version": "3.0.2", 120 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 121 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 122 | "requires": { 123 | "fill-range": "^7.0.1" 124 | } 125 | }, 126 | "bson": { 127 | "version": "1.1.5", 128 | "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.5.tgz", 129 | "integrity": "sha512-kDuEzldR21lHciPQAIulLs1LZlCXdLziXI6Mb/TDkwXhb//UORJNPXgcRs2CuO4H0DcMkpfT3/ySsP3unoZjBg==" 130 | }, 131 | "cacheable-request": { 132 | "version": "6.1.0", 133 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 134 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 135 | "requires": { 136 | "clone-response": "^1.0.2", 137 | "get-stream": "^5.1.0", 138 | "http-cache-semantics": "^4.0.0", 139 | "keyv": "^3.0.0", 140 | "lowercase-keys": "^2.0.0", 141 | "normalize-url": "^4.1.0", 142 | "responselike": "^1.0.2" 143 | }, 144 | "dependencies": { 145 | "get-stream": { 146 | "version": "5.2.0", 147 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", 148 | "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", 149 | "requires": { 150 | "pump": "^3.0.0" 151 | } 152 | }, 153 | "lowercase-keys": { 154 | "version": "2.0.0", 155 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 156 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" 157 | } 158 | } 159 | }, 160 | "camelcase": { 161 | "version": "5.3.1", 162 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 163 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" 164 | }, 165 | "chalk": { 166 | "version": "3.0.0", 167 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 168 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 169 | "requires": { 170 | "ansi-styles": "^4.1.0", 171 | "supports-color": "^7.1.0" 172 | }, 173 | "dependencies": { 174 | "has-flag": { 175 | "version": "4.0.0", 176 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 177 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" 178 | }, 179 | "supports-color": { 180 | "version": "7.2.0", 181 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 182 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 183 | "requires": { 184 | "has-flag": "^4.0.0" 185 | } 186 | } 187 | } 188 | }, 189 | "chokidar": { 190 | "version": "3.5.1", 191 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", 192 | "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", 193 | "requires": { 194 | "anymatch": "~3.1.1", 195 | "braces": "~3.0.2", 196 | "fsevents": "~2.3.1", 197 | "glob-parent": "~5.1.0", 198 | "is-binary-path": "~2.1.0", 199 | "is-glob": "~4.0.1", 200 | "normalize-path": "~3.0.0", 201 | "readdirp": "~3.5.0" 202 | } 203 | }, 204 | "ci-info": { 205 | "version": "2.0.0", 206 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 207 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" 208 | }, 209 | "cli-boxes": { 210 | "version": "2.2.1", 211 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", 212 | "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==" 213 | }, 214 | "clone-response": { 215 | "version": "1.0.2", 216 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 217 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 218 | "requires": { 219 | "mimic-response": "^1.0.0" 220 | } 221 | }, 222 | "color-convert": { 223 | "version": "2.0.1", 224 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 225 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 226 | "requires": { 227 | "color-name": "~1.1.4" 228 | } 229 | }, 230 | "color-name": { 231 | "version": "1.1.4", 232 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 233 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 234 | }, 235 | "concat-map": { 236 | "version": "0.0.1", 237 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 238 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 239 | }, 240 | "configstore": { 241 | "version": "5.0.1", 242 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 243 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 244 | "requires": { 245 | "dot-prop": "^5.2.0", 246 | "graceful-fs": "^4.1.2", 247 | "make-dir": "^3.0.0", 248 | "unique-string": "^2.0.0", 249 | "write-file-atomic": "^3.0.0", 250 | "xdg-basedir": "^4.0.0" 251 | } 252 | }, 253 | "core-util-is": { 254 | "version": "1.0.2", 255 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 256 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 257 | }, 258 | "crypto-random-string": { 259 | "version": "2.0.0", 260 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 261 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" 262 | }, 263 | "debug": { 264 | "version": "4.3.1", 265 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", 266 | "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", 267 | "requires": { 268 | "ms": "2.1.2" 269 | } 270 | }, 271 | "decompress-response": { 272 | "version": "3.3.0", 273 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 274 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 275 | "requires": { 276 | "mimic-response": "^1.0.0" 277 | } 278 | }, 279 | "deep-extend": { 280 | "version": "0.6.0", 281 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 282 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 283 | }, 284 | "defer-to-connect": { 285 | "version": "1.1.3", 286 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", 287 | "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" 288 | }, 289 | "denque": { 290 | "version": "1.5.0", 291 | "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz", 292 | "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==" 293 | }, 294 | "dot-prop": { 295 | "version": "5.3.0", 296 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", 297 | "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", 298 | "requires": { 299 | "is-obj": "^2.0.0" 300 | } 301 | }, 302 | "dotenv": { 303 | "version": "8.2.0", 304 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", 305 | "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" 306 | }, 307 | "duplexer3": { 308 | "version": "0.1.4", 309 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 310 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" 311 | }, 312 | "emoji-regex": { 313 | "version": "7.0.3", 314 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 315 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" 316 | }, 317 | "end-of-stream": { 318 | "version": "1.4.4", 319 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 320 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 321 | "requires": { 322 | "once": "^1.4.0" 323 | } 324 | }, 325 | "escape-goat": { 326 | "version": "2.1.1", 327 | "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", 328 | "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" 329 | }, 330 | "event-target-shim": { 331 | "version": "5.0.1", 332 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", 333 | "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" 334 | }, 335 | "fill-range": { 336 | "version": "7.0.1", 337 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 338 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 339 | "requires": { 340 | "to-regex-range": "^5.0.1" 341 | } 342 | }, 343 | "fsevents": { 344 | "version": "2.3.2", 345 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 346 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 347 | "optional": true 348 | }, 349 | "get-stream": { 350 | "version": "4.1.0", 351 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 352 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 353 | "requires": { 354 | "pump": "^3.0.0" 355 | } 356 | }, 357 | "glob-parent": { 358 | "version": "5.1.1", 359 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 360 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 361 | "requires": { 362 | "is-glob": "^4.0.1" 363 | } 364 | }, 365 | "global-dirs": { 366 | "version": "2.1.0", 367 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", 368 | "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", 369 | "requires": { 370 | "ini": "1.3.7" 371 | } 372 | }, 373 | "got": { 374 | "version": "9.6.0", 375 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 376 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 377 | "requires": { 378 | "@sindresorhus/is": "^0.14.0", 379 | "@szmarczak/http-timer": "^1.1.2", 380 | "cacheable-request": "^6.0.0", 381 | "decompress-response": "^3.3.0", 382 | "duplexer3": "^0.1.4", 383 | "get-stream": "^4.1.0", 384 | "lowercase-keys": "^1.0.1", 385 | "mimic-response": "^1.0.1", 386 | "p-cancelable": "^1.0.0", 387 | "to-readable-stream": "^1.0.0", 388 | "url-parse-lax": "^3.0.0" 389 | } 390 | }, 391 | "graceful-fs": { 392 | "version": "4.2.6", 393 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", 394 | "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==" 395 | }, 396 | "has-flag": { 397 | "version": "3.0.0", 398 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 399 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 400 | }, 401 | "has-yarn": { 402 | "version": "2.1.0", 403 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 404 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" 405 | }, 406 | "http-cache-semantics": { 407 | "version": "4.1.0", 408 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 409 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" 410 | }, 411 | "ignore-by-default": { 412 | "version": "1.0.1", 413 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 414 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=" 415 | }, 416 | "import-lazy": { 417 | "version": "2.1.0", 418 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 419 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=" 420 | }, 421 | "imurmurhash": { 422 | "version": "0.1.4", 423 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 424 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" 425 | }, 426 | "inherits": { 427 | "version": "2.0.4", 428 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 429 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 430 | }, 431 | "ini": { 432 | "version": "1.3.7", 433 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", 434 | "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==" 435 | }, 436 | "is-binary-path": { 437 | "version": "2.1.0", 438 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 439 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 440 | "requires": { 441 | "binary-extensions": "^2.0.0" 442 | } 443 | }, 444 | "is-ci": { 445 | "version": "2.0.0", 446 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 447 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 448 | "requires": { 449 | "ci-info": "^2.0.0" 450 | } 451 | }, 452 | "is-extglob": { 453 | "version": "2.1.1", 454 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 455 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" 456 | }, 457 | "is-fullwidth-code-point": { 458 | "version": "2.0.0", 459 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 460 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 461 | }, 462 | "is-glob": { 463 | "version": "4.0.1", 464 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 465 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 466 | "requires": { 467 | "is-extglob": "^2.1.1" 468 | } 469 | }, 470 | "is-installed-globally": { 471 | "version": "0.3.2", 472 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", 473 | "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", 474 | "requires": { 475 | "global-dirs": "^2.0.1", 476 | "is-path-inside": "^3.0.1" 477 | } 478 | }, 479 | "is-npm": { 480 | "version": "4.0.0", 481 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", 482 | "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==" 483 | }, 484 | "is-number": { 485 | "version": "7.0.0", 486 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 487 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" 488 | }, 489 | "is-obj": { 490 | "version": "2.0.0", 491 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 492 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" 493 | }, 494 | "is-path-inside": { 495 | "version": "3.0.2", 496 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", 497 | "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==" 498 | }, 499 | "is-typedarray": { 500 | "version": "1.0.0", 501 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 502 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 503 | }, 504 | "is-yarn-global": { 505 | "version": "0.3.0", 506 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 507 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" 508 | }, 509 | "isarray": { 510 | "version": "1.0.0", 511 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 512 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 513 | }, 514 | "json-buffer": { 515 | "version": "3.0.0", 516 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 517 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" 518 | }, 519 | "keyv": { 520 | "version": "3.1.0", 521 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 522 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 523 | "requires": { 524 | "json-buffer": "3.0.0" 525 | } 526 | }, 527 | "latest-version": { 528 | "version": "5.1.0", 529 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 530 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 531 | "requires": { 532 | "package-json": "^6.3.0" 533 | } 534 | }, 535 | "lowercase-keys": { 536 | "version": "1.0.1", 537 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 538 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" 539 | }, 540 | "make-dir": { 541 | "version": "3.1.0", 542 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 543 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 544 | "requires": { 545 | "semver": "^6.0.0" 546 | }, 547 | "dependencies": { 548 | "semver": { 549 | "version": "6.3.0", 550 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 551 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 552 | } 553 | } 554 | }, 555 | "memory-pager": { 556 | "version": "1.5.0", 557 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 558 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 559 | "optional": true 560 | }, 561 | "mimic-response": { 562 | "version": "1.0.1", 563 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 564 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 565 | }, 566 | "minimatch": { 567 | "version": "3.0.4", 568 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 569 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 570 | "requires": { 571 | "brace-expansion": "^1.1.7" 572 | } 573 | }, 574 | "minimist": { 575 | "version": "1.2.5", 576 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 577 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 578 | }, 579 | "module-alias": { 580 | "version": "2.2.2", 581 | "resolved": "https://registry.npmjs.org/module-alias/-/module-alias-2.2.2.tgz", 582 | "integrity": "sha512-A/78XjoX2EmNvppVWEhM2oGk3x4lLxnkEA4jTbaK97QKSDjkIoOsKQlfylt/d3kKKi596Qy3NP5XrXJ6fZIC9Q==" 583 | }, 584 | "mongodb": { 585 | "version": "3.6.4", 586 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.4.tgz", 587 | "integrity": "sha512-Y+Ki9iXE9jI+n9bVtbTOOdK0B95d6wVGSucwtBkvQ+HIvVdTCfpVRp01FDC24uhC/Q2WXQ8Lpq3/zwtB5Op9Qw==", 588 | "requires": { 589 | "bl": "^2.2.1", 590 | "bson": "^1.1.4", 591 | "denque": "^1.4.1", 592 | "require_optional": "^1.0.1", 593 | "safe-buffer": "^5.1.2", 594 | "saslprep": "^1.0.0" 595 | } 596 | }, 597 | "ms": { 598 | "version": "2.1.2", 599 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 600 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 601 | }, 602 | "node-fetch": { 603 | "version": "2.6.1", 604 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", 605 | "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" 606 | }, 607 | "nodemon": { 608 | "version": "2.0.7", 609 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", 610 | "integrity": "sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==", 611 | "requires": { 612 | "chokidar": "^3.2.2", 613 | "debug": "^3.2.6", 614 | "ignore-by-default": "^1.0.1", 615 | "minimatch": "^3.0.4", 616 | "pstree.remy": "^1.1.7", 617 | "semver": "^5.7.1", 618 | "supports-color": "^5.5.0", 619 | "touch": "^3.1.0", 620 | "undefsafe": "^2.0.3", 621 | "update-notifier": "^4.1.0" 622 | }, 623 | "dependencies": { 624 | "debug": { 625 | "version": "3.2.7", 626 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 627 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 628 | "requires": { 629 | "ms": "^2.1.1" 630 | } 631 | } 632 | } 633 | }, 634 | "nopt": { 635 | "version": "1.0.10", 636 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 637 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 638 | "requires": { 639 | "abbrev": "1" 640 | } 641 | }, 642 | "normalize-path": { 643 | "version": "3.0.0", 644 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 645 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" 646 | }, 647 | "normalize-url": { 648 | "version": "4.5.0", 649 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 650 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==" 651 | }, 652 | "once": { 653 | "version": "1.4.0", 654 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 655 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 656 | "requires": { 657 | "wrappy": "1" 658 | } 659 | }, 660 | "p-cancelable": { 661 | "version": "1.1.0", 662 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 663 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" 664 | }, 665 | "p-timeout": { 666 | "version": "4.1.0", 667 | "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-4.1.0.tgz", 668 | "integrity": "sha512-+/wmHtzJuWii1sXn3HCuH/FTwGhrp4tmJTxSKJbfS+vkipci6osxXM5mY0jUiRzWKMTgUT8l7HFbeSwZAynqHw==" 669 | }, 670 | "package-json": { 671 | "version": "6.5.0", 672 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 673 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 674 | "requires": { 675 | "got": "^9.6.0", 676 | "registry-auth-token": "^4.0.0", 677 | "registry-url": "^5.0.0", 678 | "semver": "^6.2.0" 679 | }, 680 | "dependencies": { 681 | "semver": { 682 | "version": "6.3.0", 683 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 684 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 685 | } 686 | } 687 | }, 688 | "picomatch": { 689 | "version": "2.2.2", 690 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 691 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" 692 | }, 693 | "prepend-http": { 694 | "version": "2.0.0", 695 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 696 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" 697 | }, 698 | "process-nextick-args": { 699 | "version": "2.0.1", 700 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 701 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 702 | }, 703 | "pstree.remy": { 704 | "version": "1.1.8", 705 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 706 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" 707 | }, 708 | "pump": { 709 | "version": "3.0.0", 710 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 711 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 712 | "requires": { 713 | "end-of-stream": "^1.1.0", 714 | "once": "^1.3.1" 715 | } 716 | }, 717 | "pupa": { 718 | "version": "2.1.1", 719 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", 720 | "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", 721 | "requires": { 722 | "escape-goat": "^2.0.0" 723 | } 724 | }, 725 | "rc": { 726 | "version": "1.2.8", 727 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 728 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 729 | "requires": { 730 | "deep-extend": "^0.6.0", 731 | "ini": "~1.3.0", 732 | "minimist": "^1.2.0", 733 | "strip-json-comments": "~2.0.1" 734 | } 735 | }, 736 | "readable-stream": { 737 | "version": "2.3.7", 738 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 739 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 740 | "requires": { 741 | "core-util-is": "~1.0.0", 742 | "inherits": "~2.0.3", 743 | "isarray": "~1.0.0", 744 | "process-nextick-args": "~2.0.0", 745 | "safe-buffer": "~5.1.1", 746 | "string_decoder": "~1.1.1", 747 | "util-deprecate": "~1.0.1" 748 | }, 749 | "dependencies": { 750 | "safe-buffer": { 751 | "version": "5.1.2", 752 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 753 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 754 | } 755 | } 756 | }, 757 | "readdirp": { 758 | "version": "3.5.0", 759 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", 760 | "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", 761 | "requires": { 762 | "picomatch": "^2.2.1" 763 | } 764 | }, 765 | "registry-auth-token": { 766 | "version": "4.2.1", 767 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz", 768 | "integrity": "sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==", 769 | "requires": { 770 | "rc": "^1.2.8" 771 | } 772 | }, 773 | "registry-url": { 774 | "version": "5.1.0", 775 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 776 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 777 | "requires": { 778 | "rc": "^1.2.8" 779 | } 780 | }, 781 | "require_optional": { 782 | "version": "1.0.1", 783 | "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz", 784 | "integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==", 785 | "requires": { 786 | "resolve-from": "^2.0.0", 787 | "semver": "^5.1.0" 788 | } 789 | }, 790 | "resolve-from": { 791 | "version": "2.0.0", 792 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", 793 | "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=" 794 | }, 795 | "responselike": { 796 | "version": "1.0.2", 797 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 798 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 799 | "requires": { 800 | "lowercase-keys": "^1.0.0" 801 | } 802 | }, 803 | "safe-buffer": { 804 | "version": "5.2.1", 805 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 806 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 807 | }, 808 | "sandwich-stream": { 809 | "version": "2.0.2", 810 | "resolved": "https://registry.npmjs.org/sandwich-stream/-/sandwich-stream-2.0.2.tgz", 811 | "integrity": "sha512-jLYV0DORrzY3xaz/S9ydJL6Iz7essZeAfnAavsJ+zsJGZ1MOnsS52yRjU3uF3pJa/lla7+wisp//fxOwOH8SKQ==" 812 | }, 813 | "saslprep": { 814 | "version": "1.0.3", 815 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", 816 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", 817 | "optional": true, 818 | "requires": { 819 | "sparse-bitfield": "^3.0.3" 820 | } 821 | }, 822 | "semver": { 823 | "version": "5.7.1", 824 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 825 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 826 | }, 827 | "semver-diff": { 828 | "version": "3.1.1", 829 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", 830 | "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", 831 | "requires": { 832 | "semver": "^6.3.0" 833 | }, 834 | "dependencies": { 835 | "semver": { 836 | "version": "6.3.0", 837 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 838 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 839 | } 840 | } 841 | }, 842 | "signal-exit": { 843 | "version": "3.0.3", 844 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 845 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" 846 | }, 847 | "sparse-bitfield": { 848 | "version": "3.0.3", 849 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 850 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", 851 | "optional": true, 852 | "requires": { 853 | "memory-pager": "^1.0.2" 854 | } 855 | }, 856 | "string-width": { 857 | "version": "4.2.0", 858 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 859 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 860 | "requires": { 861 | "emoji-regex": "^8.0.0", 862 | "is-fullwidth-code-point": "^3.0.0", 863 | "strip-ansi": "^6.0.0" 864 | }, 865 | "dependencies": { 866 | "ansi-regex": { 867 | "version": "5.0.0", 868 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 869 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" 870 | }, 871 | "emoji-regex": { 872 | "version": "8.0.0", 873 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 874 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 875 | }, 876 | "is-fullwidth-code-point": { 877 | "version": "3.0.0", 878 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 879 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" 880 | }, 881 | "strip-ansi": { 882 | "version": "6.0.0", 883 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 884 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 885 | "requires": { 886 | "ansi-regex": "^5.0.0" 887 | } 888 | } 889 | } 890 | }, 891 | "string_decoder": { 892 | "version": "1.1.1", 893 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 894 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 895 | "requires": { 896 | "safe-buffer": "~5.1.0" 897 | }, 898 | "dependencies": { 899 | "safe-buffer": { 900 | "version": "5.1.2", 901 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 902 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 903 | } 904 | } 905 | }, 906 | "strip-ansi": { 907 | "version": "5.2.0", 908 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 909 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 910 | "requires": { 911 | "ansi-regex": "^4.1.0" 912 | } 913 | }, 914 | "strip-json-comments": { 915 | "version": "2.0.1", 916 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 917 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 918 | }, 919 | "supports-color": { 920 | "version": "5.5.0", 921 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 922 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 923 | "requires": { 924 | "has-flag": "^3.0.0" 925 | } 926 | }, 927 | "telegraf": { 928 | "version": "4.1.1", 929 | "resolved": "https://registry.npmjs.org/telegraf/-/telegraf-4.1.1.tgz", 930 | "integrity": "sha512-VGcFfTZzjlZquBHX5VwIzhREnDHQSHV+PkirqGKXzLWun/c/qkzJKeAFc3qv5AGJBrdfNbVbHNtZT7mjpmMPtg==", 931 | "requires": { 932 | "abort-controller": "^3.0.0", 933 | "debug": "^4.3.1", 934 | "minimist": "^1.2.5", 935 | "module-alias": "^2.2.2", 936 | "node-fetch": "^2.6.1", 937 | "p-timeout": "^4.1.0", 938 | "sandwich-stream": "^2.0.2", 939 | "typegram": "^3.1.10" 940 | } 941 | }, 942 | "telegraf-stateless-question": { 943 | "version": "2.0.0", 944 | "resolved": "https://registry.npmjs.org/telegraf-stateless-question/-/telegraf-stateless-question-2.0.0.tgz", 945 | "integrity": "sha512-djgq3kV43sstplGPhRS8K2a5KJUpN3lDTA7uXcYU6UMfIQu6fRXraJF5YleG3PvmCMGEuhq6ObPb5J6AvpuZrQ==", 946 | "requires": { 947 | "telegram-format": "^2.0.0" 948 | } 949 | }, 950 | "telegram-format": { 951 | "version": "2.0.1", 952 | "resolved": "https://registry.npmjs.org/telegram-format/-/telegram-format-2.0.1.tgz", 953 | "integrity": "sha512-U0pJ7mV+6Nq0EcvrUU/dtluM0BX0bhUOIG4+vaIcyy4w1e2/+0424SEfsMx0ecn8IwKHbGN/Gj4LDU+CbsFovg==" 954 | }, 955 | "term-size": { 956 | "version": "2.2.1", 957 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", 958 | "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==" 959 | }, 960 | "to-readable-stream": { 961 | "version": "1.0.0", 962 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 963 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" 964 | }, 965 | "to-regex-range": { 966 | "version": "5.0.1", 967 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 968 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 969 | "requires": { 970 | "is-number": "^7.0.0" 971 | } 972 | }, 973 | "touch": { 974 | "version": "3.1.0", 975 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 976 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 977 | "requires": { 978 | "nopt": "~1.0.10" 979 | } 980 | }, 981 | "type-fest": { 982 | "version": "0.8.1", 983 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 984 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" 985 | }, 986 | "typedarray-to-buffer": { 987 | "version": "3.1.5", 988 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 989 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 990 | "requires": { 991 | "is-typedarray": "^1.0.0" 992 | } 993 | }, 994 | "typegram": { 995 | "version": "3.1.10", 996 | "resolved": "https://registry.npmjs.org/typegram/-/typegram-3.1.10.tgz", 997 | "integrity": "sha512-VfsuVP4uqk9yllRpaGp9yFpzvLKXghFCOSc3TVi+fy1IL2Bi4z2gJ9rMgVSSug4pWQP8Ui7Isvl14yYV8VEWaQ==" 998 | }, 999 | "undefsafe": { 1000 | "version": "2.0.3", 1001 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", 1002 | "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", 1003 | "requires": { 1004 | "debug": "^2.2.0" 1005 | }, 1006 | "dependencies": { 1007 | "debug": { 1008 | "version": "2.6.9", 1009 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1010 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1011 | "requires": { 1012 | "ms": "2.0.0" 1013 | } 1014 | }, 1015 | "ms": { 1016 | "version": "2.0.0", 1017 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1018 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1019 | } 1020 | } 1021 | }, 1022 | "unique-string": { 1023 | "version": "2.0.0", 1024 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1025 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1026 | "requires": { 1027 | "crypto-random-string": "^2.0.0" 1028 | } 1029 | }, 1030 | "update-notifier": { 1031 | "version": "4.1.3", 1032 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", 1033 | "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", 1034 | "requires": { 1035 | "boxen": "^4.2.0", 1036 | "chalk": "^3.0.0", 1037 | "configstore": "^5.0.1", 1038 | "has-yarn": "^2.1.0", 1039 | "import-lazy": "^2.1.0", 1040 | "is-ci": "^2.0.0", 1041 | "is-installed-globally": "^0.3.1", 1042 | "is-npm": "^4.0.0", 1043 | "is-yarn-global": "^0.3.0", 1044 | "latest-version": "^5.0.0", 1045 | "pupa": "^2.0.1", 1046 | "semver-diff": "^3.1.1", 1047 | "xdg-basedir": "^4.0.0" 1048 | } 1049 | }, 1050 | "url-parse-lax": { 1051 | "version": "3.0.0", 1052 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 1053 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 1054 | "requires": { 1055 | "prepend-http": "^2.0.0" 1056 | } 1057 | }, 1058 | "util-deprecate": { 1059 | "version": "1.0.2", 1060 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1061 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1062 | }, 1063 | "widest-line": { 1064 | "version": "3.1.0", 1065 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1066 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1067 | "requires": { 1068 | "string-width": "^4.0.0" 1069 | } 1070 | }, 1071 | "wrappy": { 1072 | "version": "1.0.2", 1073 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1074 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1075 | }, 1076 | "write-file-atomic": { 1077 | "version": "3.0.3", 1078 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1079 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1080 | "requires": { 1081 | "imurmurhash": "^0.1.4", 1082 | "is-typedarray": "^1.0.0", 1083 | "signal-exit": "^3.0.2", 1084 | "typedarray-to-buffer": "^3.1.5" 1085 | } 1086 | }, 1087 | "xdg-basedir": { 1088 | "version": "4.0.0", 1089 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1090 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" 1091 | } 1092 | } 1093 | } 1094 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jsfilestorebot", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node index.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "dotenv": "^8.2.0", 14 | "mongodb": "^3.6.4", 15 | "nodemon": "^2.0.7", 16 | "telegraf": "^4.1.1", 17 | "telegraf-stateless-question": "^2.0.0" 18 | } 19 | } 20 | --------------------------------------------------------------------------------