Skip to content

🤖 Discord bot with a command to display unreviewed pull requests

License

Notifications You must be signed in to change notification settings

EnriqueSoria/github_discord

Repository files navigation

GithubDiscordBot

A command for a discord bot to send private pull requests with a rich preview in Discord.

This repo contains:

  • An installable cog, so you can include /pull_request command in your bot.
  • A simple Discord bot that already includes the /pull_request command.

imatge

How to run the bot

  • Populate .env: cp .env.sample .env
  • Fill the .env with as desired
  • Run bot: make

How to install it on your bot

Install the library:

pip install https://github.com/EnriqueSoria/github_discord.git

Add the cog to your bot:

from github_discord.cogs.pull_requests import PullRequests

bot = discord.Bot()
bot.add_cog(PullRequests(bot))

Use it (in discord)

Talk to your bot or add it to a group and send this message: /pending_reviews

About

🤖 Discord bot with a command to display unreviewed pull requests

Topics

Resources

License

Stars

Watchers

Forks