got a github repository? love discord? get notifications from github right in your favorite server!
find the discord channel in which you would like to send commits and other updates
in the settings for that channel, find the webhooks option and create a new webhook. note: do not give this url out to the public. anyone or service can post messages to this channel, without even needing to be in the server. keep it safe!
navigate to your repository on github, and open the settings
select add webhook
paste in the webhook url and append /github
to the end. select "send me everything", set the type to application/json
, and then add webhook
test it by updating something or starring the repository or using the below code! if it works, you're all set!