├── .gitignore ├── README.md ├── index.js ├── package-lock.json └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Account generator 2 | This is the updated version of my first account generator app. 3 | > This is the updated version of my first account generator app. 4 | 5 | 6 | ## 🖥️ Dependencies 7 | - discord.js 8 | - async 9 | - express 10 | - firstline 11 | - line-reader 12 | 13 | ## ⚙️ How does it works? 14 | First of all you need to create a service using "/create SERVICENAME", this will create a SERVICENAME.txt file, you can also create it manually. 15 | Then just add accounts to it manually or with the command "add mail:password SERVICENAME" this will take the first line of SERVICENAME.txt and send it in the user's DM. 16 | In the source code remember to replace "Channel ID" in the if (message.channel.id === "Channel_ID") line with the id of the channel you want to make the bot work in. 17 | 18 | ## Commands 19 | - /create [service name] - it creates a .txt file with the name you choose. The users will now be able to generate an account of that service. 20 | - /add [credentials][service name] - this will add the account you typed, into the .txt file of the service you choose. 21 | - /gen [service name] - this will take the first account of that service and send it into the dms 22 | - /restock [service name] - this will send a notification to all the server saying that the service has been restocked by an admin. 23 | 24 | ## Support 25 | 26 | To get support use: 27 | - Mail: hirtie.silvano@gmail.com 28 | - Discord: Mental#8160 29 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const Discord = require("discord.js"); 2 | const bot = new Discord.Client(); 3 | const prefix = "/"; 4 | var fs = require("fs"); 5 | var lineReader = require("line-reader"); 6 | var async = require("async"); 7 | const firstline = require("firstline"); 8 | const generated = new Set(); 9 | var os = require("os"); 10 | 11 | var express = require('express'); 12 | var app = express(); 13 | 14 | app.set('port', (process.env.PORT || 5000)); 15 | 16 | //For avoidong Heroku $PORT error 17 | app.get('/', function (request, response) { 18 | var result = 'App is running' 19 | response.send(result); 20 | }).listen(app.get('port'), function () { 21 | console.log('App is running, server is listening on port ', app.get('port')); 22 | }); 23 | bot.on("ready", () => { 24 | console.log(`Logged in as ${bot.user.tag}!`); 25 | }); 26 | 27 | bot.on("message", message => { 28 | if (message.channel.id === "Channel_ID") { //This will make the bot work only in that channel 29 | if (message.author.bot) return; 30 | var command = message.content 31 | .toLowerCase() 32 | .slice(prefix.length) 33 | .split(" ")[0]; 34 | 35 | if (command === "test") { 36 | message.channel.send("Test done, bot is working"); 37 | } 38 | 39 | if (command === "gen") { 40 | if (generated.has(message.author.id)) { 41 | message.channel.send( 42 | "Wait 15 minute before generating another account!. - " + 43 | message.author 44 | ); 45 | } else { 46 | let messageArray = message.content.split(" "); 47 | let args = messageArray.slice(1); 48 | if (!args[0]) 49 | return message.reply("Please, specify the service you want!"); 50 | var fs = require("fs"); 51 | const filePath = __dirname + "/" + args[0] + ".txt"; 52 | 53 | fs.readFile(filePath, function (err, data) { 54 | if (!err) { 55 | data = data.toString(); 56 | var position = data.toString().indexOf("\n"); 57 | var firstLine = data.split("\n")[0]; 58 | message.author.send(firstLine); 59 | if (position != -1) { 60 | data = data.substr(position + 1); 61 | fs.writeFile(filePath, data, function (err) { 62 | const embed = { 63 | title: "Account Generated!", 64 | description: "Check your dm for the account's information!", 65 | color: 8519796, 66 | timestamp: "2019-04-04T14:16:26.398Z", 67 | footer: { 68 | icon_url: 69 | "https://cdn.discordapp.com/avatars/530778425540083723/7a05e4dd16825d47b6cdfb02b92d26a5.png", 70 | text: "Buy discord accounts from Mental#8106" 71 | }, 72 | thumbnail: { 73 | url: 74 | "http://www.compartosanita.it/wp-content/uploads/2019/02/right.png" 75 | }, 76 | author: { 77 | name: "Account Generator", 78 | url: "https://discordapp.com", 79 | icon_url: bot.displayAvatarURL 80 | }, 81 | fields: [] 82 | }; 83 | message.channel.send({ embed }); 84 | generated.add(message.author.id); 85 | setTimeout(() => { 86 | // Removes the user from the set after a minute 87 | generated.delete(message.author.id); 88 | }, 150000); 89 | if (err) { 90 | console.log(err); 91 | } 92 | }); 93 | } else { 94 | message.channel.send( 95 | "Sorry, there isn't any account available for that service!" 96 | ); 97 | } 98 | } else { 99 | message.channel.send( 100 | "Sorry, that service doesn't exists on our database" 101 | ); 102 | } 103 | }); 104 | } 105 | } 106 | else 107 | if (command === "stats") { 108 | 109 | message.channel.send(`Total users: ${bot.users.size}`) 110 | } 111 | 112 | if (command === "add") { 113 | if (!message.member.hasPermission("ADMINISTRATOR")) 114 | return message.reply("Sorry, you can't do it, you are not an admin!"); 115 | var fs = require("fs"); 116 | let messageArray = message.content.split(" "); 117 | let args = messageArray.slice(1); 118 | var account = args[0] 119 | var service = args[1] 120 | const filePath = __dirname + "/" + args[1] + ".txt"; 121 | fs.appendFile(filePath, os.EOL + args[0], function (err) { 122 | if (err) return console.log(err); 123 | message.channel.send("Done!") 124 | }); 125 | 126 | 127 | } 128 | if (command === "create") { 129 | if (!message.member.hasPermission("ADMINISTRATOR")) 130 | return message.reply("Sorry, you can't do it, you are not an admin!"); 131 | var fs = require("fs"); 132 | let messageArray = message.content.split(" "); 133 | let args = messageArray.slice(1); 134 | const filePath = __dirname + "/" + args[0] + ".txt"; 135 | fs.writeFile(filePath, 'first:first', function (err) { 136 | if (err) throw err; 137 | message.channel.send("Done!") 138 | }); 139 | } 140 | if (command === "restock") { 141 | let messageArray = message.content.split(" "); 142 | let args = messageArray.slice(1); 143 | if (!message.member.hasPermission("ADMINISTRATOR")) 144 | return message.reply("Sorry, you can't do it, you are not an admin!"); 145 | if (!args[0]) 146 | return message.reply( 147 | "Please, specify the service you want to restock!" 148 | ); 149 | message.channel.send( 150 | "@everyone " + 151 | "**" + 152 | args[0] + 153 | "**" + 154 | " has been restocked by " + 155 | "<@" + 156 | message.author.id + 157 | ">" 158 | ); 159 | } 160 | } 161 | }); 162 | 163 | bot.login("Token"); -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "account-generator", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "accepts": { 8 | "version": "1.3.7", 9 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 10 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 11 | "requires": { 12 | "mime-types": "~2.1.24", 13 | "negotiator": "0.6.2" 14 | } 15 | }, 16 | "array-flatten": { 17 | "version": "1.1.1", 18 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 19 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 20 | }, 21 | "async": { 22 | "version": "3.1.0", 23 | "resolved": "https://registry.npmjs.org/async/-/async-3.1.0.tgz", 24 | "integrity": "sha512-4vx/aaY6j/j3Lw3fbCHNWP0pPaTCew3F6F3hYyl/tHs/ndmV1q7NW9T5yuJ2XAGwdQrP+6Wu20x06U4APo/iQQ==" 25 | }, 26 | "async-limiter": { 27 | "version": "1.0.1", 28 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", 29 | "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" 30 | }, 31 | "body-parser": { 32 | "version": "1.19.0", 33 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 34 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 35 | "requires": { 36 | "bytes": "3.1.0", 37 | "content-type": "~1.0.4", 38 | "debug": "2.6.9", 39 | "depd": "~1.1.2", 40 | "http-errors": "1.7.2", 41 | "iconv-lite": "0.4.24", 42 | "on-finished": "~2.3.0", 43 | "qs": "6.7.0", 44 | "raw-body": "2.4.0", 45 | "type-is": "~1.6.17" 46 | } 47 | }, 48 | "bytes": { 49 | "version": "3.1.0", 50 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 51 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 52 | }, 53 | "content-disposition": { 54 | "version": "0.5.3", 55 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 56 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 57 | "requires": { 58 | "safe-buffer": "5.1.2" 59 | } 60 | }, 61 | "content-type": { 62 | "version": "1.0.4", 63 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 64 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 65 | }, 66 | "cookie": { 67 | "version": "0.4.0", 68 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 69 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 70 | }, 71 | "cookie-signature": { 72 | "version": "1.0.6", 73 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 74 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 75 | }, 76 | "debug": { 77 | "version": "2.6.9", 78 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 79 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 80 | "requires": { 81 | "ms": "2.0.0" 82 | } 83 | }, 84 | "depd": { 85 | "version": "1.1.2", 86 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 87 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 88 | }, 89 | "destroy": { 90 | "version": "1.0.4", 91 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 92 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 93 | }, 94 | "discord.js": { 95 | "version": "11.5.1", 96 | "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-11.5.1.tgz", 97 | "integrity": "sha512-tGhV5xaZXE3Z+4uXJb3hYM6gQ1NmnSxp9PClcsSAYFVRzH6AJH74040mO3afPDMWEAlj8XsoPXXTJHTxesqcGw==", 98 | "requires": { 99 | "long": "^4.0.0", 100 | "prism-media": "^0.0.3", 101 | "snekfetch": "^3.6.4", 102 | "tweetnacl": "^1.0.0", 103 | "ws": "^6.0.0" 104 | } 105 | }, 106 | "ee-first": { 107 | "version": "1.1.1", 108 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 109 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 110 | }, 111 | "encodeurl": { 112 | "version": "1.0.2", 113 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 114 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 115 | }, 116 | "escape-html": { 117 | "version": "1.0.3", 118 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 119 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 120 | }, 121 | "etag": { 122 | "version": "1.8.1", 123 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 124 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 125 | }, 126 | "express": { 127 | "version": "4.17.1", 128 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 129 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 130 | "requires": { 131 | "accepts": "~1.3.7", 132 | "array-flatten": "1.1.1", 133 | "body-parser": "1.19.0", 134 | "content-disposition": "0.5.3", 135 | "content-type": "~1.0.4", 136 | "cookie": "0.4.0", 137 | "cookie-signature": "1.0.6", 138 | "debug": "2.6.9", 139 | "depd": "~1.1.2", 140 | "encodeurl": "~1.0.2", 141 | "escape-html": "~1.0.3", 142 | "etag": "~1.8.1", 143 | "finalhandler": "~1.1.2", 144 | "fresh": "0.5.2", 145 | "merge-descriptors": "1.0.1", 146 | "methods": "~1.1.2", 147 | "on-finished": "~2.3.0", 148 | "parseurl": "~1.3.3", 149 | "path-to-regexp": "0.1.7", 150 | "proxy-addr": "~2.0.5", 151 | "qs": "6.7.0", 152 | "range-parser": "~1.2.1", 153 | "safe-buffer": "5.1.2", 154 | "send": "0.17.1", 155 | "serve-static": "1.14.1", 156 | "setprototypeof": "1.1.1", 157 | "statuses": "~1.5.0", 158 | "type-is": "~1.6.18", 159 | "utils-merge": "1.0.1", 160 | "vary": "~1.1.2" 161 | } 162 | }, 163 | "finalhandler": { 164 | "version": "1.1.2", 165 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 166 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 167 | "requires": { 168 | "debug": "2.6.9", 169 | "encodeurl": "~1.0.2", 170 | "escape-html": "~1.0.3", 171 | "on-finished": "~2.3.0", 172 | "parseurl": "~1.3.3", 173 | "statuses": "~1.5.0", 174 | "unpipe": "~1.0.0" 175 | } 176 | }, 177 | "firstline": { 178 | "version": "2.0.2", 179 | "resolved": "https://registry.npmjs.org/firstline/-/firstline-2.0.2.tgz", 180 | "integrity": "sha512-8KcmfI0jgSECnzdhucm0i7vrwef3BWwgjimW2YkRC5eSFwjb5DibVoA0YvgkYwwxuJi9c+7M7X3b3lX8o9B6wg==" 181 | }, 182 | "forwarded": { 183 | "version": "0.1.2", 184 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 185 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 186 | }, 187 | "fresh": { 188 | "version": "0.5.2", 189 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 190 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 191 | }, 192 | "http-errors": { 193 | "version": "1.7.2", 194 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 195 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 196 | "requires": { 197 | "depd": "~1.1.2", 198 | "inherits": "2.0.3", 199 | "setprototypeof": "1.1.1", 200 | "statuses": ">= 1.5.0 < 2", 201 | "toidentifier": "1.0.0" 202 | } 203 | }, 204 | "iconv-lite": { 205 | "version": "0.4.24", 206 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 207 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 208 | "requires": { 209 | "safer-buffer": ">= 2.1.2 < 3" 210 | } 211 | }, 212 | "inherits": { 213 | "version": "2.0.3", 214 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 215 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 216 | }, 217 | "ipaddr.js": { 218 | "version": "1.9.0", 219 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", 220 | "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==" 221 | }, 222 | "line-reader": { 223 | "version": "0.4.0", 224 | "resolved": "https://registry.npmjs.org/line-reader/-/line-reader-0.4.0.tgz", 225 | "integrity": "sha1-F+RIGNoKwzVnW6MAlU+U72cOZv0=" 226 | }, 227 | "long": { 228 | "version": "4.0.0", 229 | "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", 230 | "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" 231 | }, 232 | "media-typer": { 233 | "version": "0.3.0", 234 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 235 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 236 | }, 237 | "merge-descriptors": { 238 | "version": "1.0.1", 239 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 240 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 241 | }, 242 | "methods": { 243 | "version": "1.1.2", 244 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 245 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 246 | }, 247 | "mime": { 248 | "version": "1.6.0", 249 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 250 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 251 | }, 252 | "mime-db": { 253 | "version": "1.43.0", 254 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", 255 | "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==" 256 | }, 257 | "mime-types": { 258 | "version": "2.1.26", 259 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", 260 | "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", 261 | "requires": { 262 | "mime-db": "1.43.0" 263 | } 264 | }, 265 | "ms": { 266 | "version": "2.0.0", 267 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 268 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 269 | }, 270 | "negotiator": { 271 | "version": "0.6.2", 272 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 273 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 274 | }, 275 | "on-finished": { 276 | "version": "2.3.0", 277 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 278 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 279 | "requires": { 280 | "ee-first": "1.1.1" 281 | } 282 | }, 283 | "parseurl": { 284 | "version": "1.3.3", 285 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 286 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 287 | }, 288 | "path-to-regexp": { 289 | "version": "0.1.7", 290 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 291 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 292 | }, 293 | "prism-media": { 294 | "version": "0.0.3", 295 | "resolved": "https://registry.npmjs.org/prism-media/-/prism-media-0.0.3.tgz", 296 | "integrity": "sha512-c9KkNifSMU/iXT8FFTaBwBMr+rdVcN+H/uNv1o+CuFeTThNZNTOrQ+RgXA1yL/DeLk098duAeRPP3QNPNbhxYQ==" 297 | }, 298 | "proxy-addr": { 299 | "version": "2.0.5", 300 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", 301 | "integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==", 302 | "requires": { 303 | "forwarded": "~0.1.2", 304 | "ipaddr.js": "1.9.0" 305 | } 306 | }, 307 | "qs": { 308 | "version": "6.7.0", 309 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 310 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 311 | }, 312 | "range-parser": { 313 | "version": "1.2.1", 314 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 315 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 316 | }, 317 | "raw-body": { 318 | "version": "2.4.0", 319 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 320 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 321 | "requires": { 322 | "bytes": "3.1.0", 323 | "http-errors": "1.7.2", 324 | "iconv-lite": "0.4.24", 325 | "unpipe": "1.0.0" 326 | } 327 | }, 328 | "safe-buffer": { 329 | "version": "5.1.2", 330 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 331 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 332 | }, 333 | "safer-buffer": { 334 | "version": "2.1.2", 335 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 336 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 337 | }, 338 | "send": { 339 | "version": "0.17.1", 340 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 341 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 342 | "requires": { 343 | "debug": "2.6.9", 344 | "depd": "~1.1.2", 345 | "destroy": "~1.0.4", 346 | "encodeurl": "~1.0.2", 347 | "escape-html": "~1.0.3", 348 | "etag": "~1.8.1", 349 | "fresh": "0.5.2", 350 | "http-errors": "~1.7.2", 351 | "mime": "1.6.0", 352 | "ms": "2.1.1", 353 | "on-finished": "~2.3.0", 354 | "range-parser": "~1.2.1", 355 | "statuses": "~1.5.0" 356 | }, 357 | "dependencies": { 358 | "ms": { 359 | "version": "2.1.1", 360 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 361 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 362 | } 363 | } 364 | }, 365 | "serve-static": { 366 | "version": "1.14.1", 367 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 368 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 369 | "requires": { 370 | "encodeurl": "~1.0.2", 371 | "escape-html": "~1.0.3", 372 | "parseurl": "~1.3.3", 373 | "send": "0.17.1" 374 | } 375 | }, 376 | "setprototypeof": { 377 | "version": "1.1.1", 378 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 379 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 380 | }, 381 | "snekfetch": { 382 | "version": "3.6.4", 383 | "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz", 384 | "integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw==" 385 | }, 386 | "statuses": { 387 | "version": "1.5.0", 388 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 389 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 390 | }, 391 | "toidentifier": { 392 | "version": "1.0.0", 393 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 394 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 395 | }, 396 | "tweetnacl": { 397 | "version": "1.0.1", 398 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.1.tgz", 399 | "integrity": "sha512-kcoMoKTPYnoeS50tzoqjPY3Uv9axeuuFAZY9M/9zFnhoVvRfxz9K29IMPD7jGmt2c8SW7i3gT9WqDl2+nV7p4A==" 400 | }, 401 | "type-is": { 402 | "version": "1.6.18", 403 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 404 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 405 | "requires": { 406 | "media-typer": "0.3.0", 407 | "mime-types": "~2.1.24" 408 | } 409 | }, 410 | "unpipe": { 411 | "version": "1.0.0", 412 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 413 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 414 | }, 415 | "utils-merge": { 416 | "version": "1.0.1", 417 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 418 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 419 | }, 420 | "vary": { 421 | "version": "1.1.2", 422 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 423 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 424 | }, 425 | "ws": { 426 | "version": "6.2.1", 427 | "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz", 428 | "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==", 429 | "requires": { 430 | "async-limiter": "~1.0.0" 431 | } 432 | } 433 | } 434 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "account-generator", 3 | "version": "1.0.0", 4 | "description": "A discord bot you can use to give accounts to your server's members", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/silvanohirtie/account-generator.git" 12 | }, 13 | "keywords": [], 14 | "author": "", 15 | "license": "ISC", 16 | "bugs": { 17 | "url": "https://github.com/silvanohirtie/account-generator/issues" 18 | }, 19 | "homepage": "https://github.com/silvanohirtie/account-generator#readme", 20 | "dependencies": { 21 | "async": "^3.1.0", 22 | "discord.js": "^11.5.1", 23 | "express": "^4.17.1", 24 | "firstline": "^2.0.2", 25 | "line-reader": "^0.4.0" 26 | } 27 | } --------------------------------------------------------------------------------