Simple discord bot that posts new Counter-Strike 2 patch notes to your discord server. I tried my best to make the application as easy to integrate as possible to your existing project.
Node.js version 16.9 or higher
git clone https://github.com/GhettoSway/discord-cs2updates
npm install
Create .env and fill it as .env.example. token and channelId are necessary variables
tokenis your bot's tokenchannelIdis the channel id, to which patch notes will be posted toembedColoris the color of the embed, as dec (defaults to orange if undefined)thumbnailis link to image, that will be set as embed thumbnail (defaults to discord server's icon if undefined)intervalis time interval in seconds to check for new updates (defaults to 60 if undefined)
npm start to start the bot.
If you wish to track Counter-Strike blog posts too, you may extend the application to do so easily! Event type 12 is used for patch notes, others are blog posts. You'll have to implement your own logic for blog post handling in fetchPatchNotes. To do so, replace if (event.event_type !== 12) continue; with
if (event.event_type !== 12) {
// handle blog post
}You may contact me via discord: fobba#9439
