Skip to content

Discord Bot for Creating GitHub Issues

Notifications You must be signed in to change notification settings

risk-of-thunder/MUL-T

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IssueBot

A Discord bot for creating GitHub issues.

Install Instructions

Note: Due to NPM package linking requiring root access on system-wide NPM installations, it's recommended to use NVM.

Clone the repository:

$ git clone --recursive https://github.com/LeagueSandbox/IssueBot.git
$ cd IssueBot/issuebot

Install dependencies:

$ npm install

Now create a Discord application and an associated bot. Write down the Bot token, since you will need it in a bit.

Next, create a personal access token on GitHub with the public_repo permission. Also write down this token.

Add the Discord bot to your Discord server you want to use this functionality on.

Note: How to do the above three steps is out of the scope of this project README. A quick Google to the right documentation should help you with this.

Go to your project and create the configuration file.

$ cp config.json.template config.json

Edit config.json and insert your Discord token, GitHub token and your GitHub user/organization name.

Note: The user/organization name needs to be from the same account of which you generated the personal access token for.

Run the bot:

$ npm start

You should see the following output:

user@system:~/IssueBot/issuebot$ npm start

> [email protected] start /home/user/IssueBot/issuebot
> tsc -p . && node built/issuebot.js

Loading commands...
Mapped Function to !issue
Bot ready

Your bot should now be online in your Discord.

Usage

To use it, type the following in Discord where the bot can read it:

!issue REPO "title" "body"

Replace REPO with the repository you have access to. A new GitHub issue should be created through the bot.

Docker

You can provide the required options via environment variables as follows:

  • GITHUB_NAME: The github user/organization name
  • GITHUB_TOKEN: The github user access token
  • DISCORD_TOKEN: The discord bot token
  • THUNDERSTORE_API_SECRET: base64 encoded secret for the Thunderstore API
  • THUNDERSTORE_API_ALGORITHM: HS256 or RS256, algorithm of the JWT
  • THUNDERSTORE_API_KEY_ID: Thunderstore API key ID
  • THUNDERSTORE_API_URL: Thunderstore API url

About

Discord Bot for Creating GitHub Issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.1%
  • TypeScript 43.4%
  • Dockerfile 2.5%