title: How do I code event/command handlers for my Discord.js bot?
body: <p>I've started creating a Discord bot in Node.js using the Discord.js library. However, all the code is contained within a single index file.</p>
  
  <p>How do I organize the commands and events each into separate files, and run them when needed?</p>