// const uModel = require('./src/models/users'); const mongoDB = 'mongodb+srv://admin:admin@cluster0.hrgvn.mongodb.net/LegendaryLeague?retryWrites=true&w=majority'; const mongoose = require('mongoose'); mongoose.Promise = global.Promise; mongoose.connect(mongoDB); const {LeagueAPI} = require('./public/leagueAPI'); const {_Crypto} = require('./public/cryptoLib'); (async ()=> { // var RiotExists = await new LeagueAPI().verifyUserName('hc12', 'EUW'); // console.log(RiotExists) const crypto = await new _Crypto('a@a.pt', 'aA123456').bouncer(); console.log(crypto) // const Hash = crypto.hash(); // const eHash = crypto.eHash(); // const isNew = await crypto.isNew(eHash); // console.log(Hash, eHash, isNew) })()