title: Why can't I log into the Discord.js client?
body: <p>This code isn't working, it never logs <code>Ready!</code> to the console. It's also not logging out any errors, so I believe it may have logged in correctly but just isn't working. Does anyone have any pointers?</p>
  
  <pre><code>var Discord = require("discord.js");
  var client = new Discord.Client();
  
  client.login('myEmail', 'myPassword', output);
  
  client.on('ready', () =&gt; {
    console.log("Ready!");
  });
  
  function output(error, token) {
          console.log("errorz!");
          if (error) {
              console.log("There was an error logging in: ${error}");
              return;
          } else {
              console.log("`Logged in. Token: ${token}`");
          }
  }
  </code></pre>
  
  <p>Just to make sure I am doing this right, I have put this in a file called <code>discord-fisher.js</code> and I am running it using <code>node discord-fisher.js</code> from the terminal.</p>