-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathindex.js
More file actions
27 lines (22 loc) · 760 Bytes
/
index.js
File metadata and controls
27 lines (22 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require('./config.json');
const Bot = require('./bot.js');
const chalk = require('chalk');
const fs = require('fs');
const tokens = fs.readFileSync('tokens.txt', 'utf-8').replace(/\r/gi, '').split('\n');
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
var i = 0;
rl.question(chalk.blue('Invite Code: '), (invite) => {
rl.question(chalk.blue('Message to Send: '), (message) => {
setInterval(() => {
if (i >= tokens.length) return;
new Bot(client, tokens[i], invite, message).send();
i++;
}, config.login_delay);
});
});