# Load functions
. $HOOKDIR/irker
. $HOOKDIR/slack
+. $HOOKDIR/discord
channels=$(git config --get irker.channels)
-webhook_url=$(git config --get hooks.slack.webhook-url)
+slack_url=$(git config --get hooks.slack.webhook-url)
+
+discord_url=$(git config --get hooks.discord.webhook-url)
while read line; do
set -- $line
if [ -n "$channels" ]; then
notify_irker $*
fi
- if [ -n "$webhook_url" ]; then
+ if [ -n "$slack_url" ]; then
notify_slack $*
fi
+ if [ -n "$discord_url" ]; then
+ notify_discord $*
+ fi
RET=$?
done
exit $RET