If you are looking for a way to get build (success/fail) status reports from AppVeyor in Discord, stop looking. You've came to the right place.
Rest aside and just follow the guide below and stay notified of your build status.
- You should be using AppVeyor for testing codes.
- A Discord Server where notifications will be posted.
- 5 minutes
- A cup of coffee ☕
-
Create a webhook in your Discord Server (Guide).
-
Copy the Webhook URL.
-
Go to your project settings (for which you want status notifications) in AppVeyor and add an environment variable called
WEBHOOK_URL
and paste the Webhook URL you got in the previous step. -
Add these lines to the
appveyor.yml
file of your repository.on_success: - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1 - ps: ./send.ps1 success $env:WEBHOOK_URL on_failure: - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1 - ps: ./send.ps1 failure $env:WEBHOOK_URL
-
Grab your coffee ☕ and enjoy! And, if you liked this, please ⭐Star this repository to show your love.
- If you face any issues in the scripts (and you're sure it's not on your side), please consider opening an issue and I'll fix it ASAP.
- If you want to improve the scripts, feel free to open a pull request.