
A Discord bot that can help you create Github issues from the Discord chat, let's begin. Discord bots can also be created to use slash commands, which gives a better user experience.
We will be using Nodejs to build the bot while using the discord.js library. For the bot to talk to GitHub, we will be using the GitHub-provided SDK Octokit. To deal with environment variables, we will be using the npm package Dotenv. The Octokit SDK that will talk to GitHub needs a fetch package; for that, we will be installing the package Node Fetch.
That was all about installing packages. Now we will move on to some real coding.
Create a project folder with your bot project name. And do npm init, to initialize npm.
NPM is our package manager, and all the packages we talked about will be installed through npm commands.
npm install dotenv discord.js node-fetch octokit

Write a comment ...