Discord bot command for number of sessions created on that day (From DMP: Goals & Mid-Point Milestone)
Used discord.js to create a bot
Implemented /ping command for testing of bot and /sessions command for getting number of sessions created that day
Used concurrently (a npm package) to run multiple commands using one. Here, command npm run dev used to run both the frontend and the discord bot. This is because Next.js is designed for creating websites, a discord bot requires persistent running, not just on requests.
Please review and suggest any modifications. I am more than happy to make corrections if needed.
Discord bot command for number of sessions created on that day (From DMP: Goals & Mid-Point Milestone)
npm run dev
used to run both the frontend and the discord bot. This is because Next.js is designed for creating websites, a discord bot requires persistent running, not just on requests.Please review and suggest any modifications. I am more than happy to make corrections if needed.