Jump to content
McKay Development

lll

Member
  • Content Count

    6
  • Joined

  • Last visited


Reputation Activity

  1. Like
    lll got a reaction from Dr. McKay in Best practice to logIn   
    This logic will be written in the constructor. Something like this :
    constructor(accountName) { this.setCookies = util.promisify(this.manager.setCookies).bind(this.manager); this.user.on('error', this.logOut); this.user.on('loginKey', loginKey => db.findOne('bot', { accountName }, { loginKey })); }  
×
×
  • Create New...