import { HOSTS } from './config' import * as fs from 'fs' import * as path from 'path' import * as crypto from 'crypto' import * as nodemailer from 'nodemailer' import { MAIL_CONFIG, MAIL_FROM } from './config' export async function getLeastLoadedHost() { if(HOSTS.length == 1) return HOSTS[0] throw new Error('getLeastLoadedHost() is not implemented yet') } const wordlist = fs.readFileSync(path.join(__dirname, 'wordlist'), 'utf-8').trim().split('\n') export function randomWords(length: number) { let words = '' for(let i=0;i