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/issuebotInstall dependencies:
$ npm installNow 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.jsonEdit 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 startYou should see the following output:
user@system:~/IssueBot/issuebot$ npm start
> issuebot@0.1.0 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 nameGITHUB_TOKEN: The github user access tokenDISCORD_TOKEN: The discord bot token

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
