Added notification types
This commit is contained in:
parent
fe400de851
commit
b77229595e
@ -60,6 +60,7 @@ func testPackage(pkg string) {
|
|||||||
Message: "Test failed",
|
Message: "Test failed",
|
||||||
Link: "https://" + pkg,
|
Link: "https://" + pkg,
|
||||||
Icon: "https://notify.moe/images/brand/220.png",
|
Icon: "https://notify.moe/images/brand/220.png",
|
||||||
|
Type: arn.NotificationTypePackageTest,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@ func Test(ctx *aero.Context) string {
|
|||||||
Title: "Anime Notifier",
|
Title: "Anime Notifier",
|
||||||
Message: "Yay, it works!",
|
Message: "Yay, it works!",
|
||||||
Icon: "https://" + ctx.App.Config.Domain + "/images/brand/220.png",
|
Icon: "https://" + ctx.App.Config.Domain + "/images/brand/220.png",
|
||||||
|
Type: arn.NotificationTypeTest,
|
||||||
})
|
})
|
||||||
|
|
||||||
return "ok"
|
return "ok"
|
||||||
|
@ -90,6 +90,7 @@ func Success(ctx *aero.Context) string {
|
|||||||
Message: user.Nick + " paid " + payment.Amount + " " + payment.Currency + " making his new balance " + strconv.Itoa(user.Balance),
|
Message: user.Nick + " paid " + payment.Amount + " " + payment.Currency + " making his new balance " + strconv.Itoa(user.Balance),
|
||||||
Icon: user.LargeAvatar(),
|
Icon: user.LargeAvatar(),
|
||||||
Link: "https://" + ctx.App.Config.Domain + "/api/paypalpayment/" + payment.ID,
|
Link: "https://" + ctx.App.Config.Domain + "/api/paypalpayment/" + payment.ID,
|
||||||
|
Type: arn.NotificationTypePurchase,
|
||||||
})
|
})
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user