Replace the NixOS_GitHub bot:
Write a function which accepts a single webhook event (which could be any of the events described at https://developer.github.com/webhooks/) and returns a list of messages to send to IRC.
If the webhook event should send no message, then it should return an empty list.
Preferred languages:
- Rust
- PHP
- Anything else, really
Example function:
function event_to_msgs($event) {
if (isset($event['issue']) && $event['action'] == 'created) {
return ["cool, a new issue!"];
} else {
return [];
}
}