An open API service indexing awesome lists of open source software.

https://github.com/tlkamp/githubsolutioncog

A Cog for RedBot that cross-posts Discord solutions to GitHub issues.
https://github.com/tlkamp/githubsolutioncog

discord discord-cogs issues python3 redbot redbotv3

Last synced: about 1 month ago
JSON representation

A Cog for RedBot that cross-posts Discord solutions to GitHub issues.

Awesome Lists containing this project

README

          

# GithubSolution Cog
A cog for [Red-DiscordBot](https://red-discordbot.readthedocs.io/en/v3-develop/)
that cross-posts solutions for GitHub issues from Discord.

## Authentication
GithubSolution requires a personal access token for authentication.
Please use [this guide](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) to
obtain one.

The personal access token needs **repo** scope.

## Configuration
All configuration is on a per-guild (server) basis.

| field | command | description | permissions |
|------------------|-----------------------------------------------------------------------|-----------------------------------------------------------------------------------|-----------------------|
| github_project | !setproject namespace/project
`!setproject tlkamp/githubsolutioncog` | The project GithubSolution checks for issues. | Guild (server) Admin. |
| github_token_var | !settokenvar MYVARIABLE
`!settokenvar GHTOKEN` | The environment variable GithubSolution will pull the personal access token from. | Bot owner. |

## Usage
To post a solution simply give the command:

```
# Syntax
!solution

# Example
!solution 123 The user did not try turning it off and then on again.
```

![Discord](img/discord.png)

![Issue](img/issue.png)