title: What am I doing wrong (Simple Announcer Bot on Discord)
body: <p>Disclaimer; I've never really looked a cold beyond once or twice prior to today.
  The base Bot I got is from <a href="https://drive.google.com/folderview?id=0B1tftZgPXbMbRDh2NXZLTmVvLVk&amp;usp=sharing" rel="nofollow">here</a>;<br>
  but I end up with this in cmd prompt when I try to run it:</p>
  
  <pre><code>C:\Users\aer\Desktop\discordbotjson&gt;node start
  C:\Users\aer\Desktop\discordbotjson\start.js:9
      var channel = client.channels.get("name", "general").id;
                    ^
  
  ReferenceError: client is not defined
  at Client.&lt;anonymous&gt; (C:\Users\aer\Desktop\discordbotjson\start.js:9:16)
  at emitNone (events.js:67:13)
  at Client.emit (events.js:166:7)
  at WebSocket.websocket.onmessage (C:\Users\aer\Desktop\discordbotjson\node_modules\discord.js\lib\Client\InternalClient.js:1047:13)
  at WebSocket.onMessage (C:\Users\aer\Desktop\discordbotjson\node_modules\ws\lib\WebSocket.js:414:14)
  at emitTwo (events.js:87:13)
  at WebSocket.emit (events.js:172:7)
  at Receiver.ontext (C:\Users\aer\Desktop\discordbotjson\node_modules\ws\lib\WebSocket.js:797:10)
  at C:\Users\aer\Desktop\discordbotjson\node_modules\ws\lib\Receiver.js:473:18
  at Receiver.applyExtensions (C:\Users\aer\Desktop\discordbotjson\node_modules\ws\lib\Receiver.js:360:5)
  </code></pre>
  
  <hr>
  
  <p>This is what the <code>start.json</code> looks like:</p>
  
  <pre><code>var Discord = require("discord.js");
  var schedule = require('node-schedule');
  var AuthDetails = require("./auth.json");
  
  var bot = new Discord.Client();
  
  bot.on('ready', () =&gt; {
  // change channel name to name of channel or just set to equal the     channel ID if you already know it.
  var channel = client.channels.get("name", "general").id; 
  
  var rule = new schedule.RecurrenceRule(); // Creates new Recurrence Rule
  rule.minute = 0; // Must set to 0 or scheduled job will run every minute.
  rule.hour = [14, 19, 20]; // Hours are based on your system's time.
  
  var j = schedule.scheduleJob(rule, function() {
      bot.channels.get("id", channel).sendMessage("Testing");
  })
  
  /* For different announcements:
  rule.hour = 8; // Set different time. Use array like above for multiple hours.
  
  var i = schedule.scheduleJob(rule, function() {
      bot.channels.get("id", channel).sendMessage("Announcement at 8AM");
  })
  
  // Repeat for more announcements
  */
  
  console.log("Bot is ready.");
  });
  
  //login
  bot.login(AuthDetails.email, AuthDetails.password);
  </code></pre>
  
  <p>Help would be appreciated, thanks.</p>