antipath.js 395 B

123456789101112131415161718192021
  1. #!/usr/bin/env node
  2. const discord = require('discord.js')
  3. const ldConfig = require('./config')
  4. ldConfig().then(async conf => {
  5. // TODO: cool clustering
  6. const clients = []
  7. for (const token of conf.discord.botTokens) {
  8. const client = new discord.Client()
  9. await client.login(token)
  10. clients.push(client)
  11. }
  12. console.log(`antipath: ${clients.length} clients connected`)
  13. })