mirror of
https://github.com/Luzifer/twitch-manager.git
synced 2024-12-21 04:11:17 +00:00
Add demo for donations
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fb116bb29a
commit
0d0e1ca3e5
1 changed files with 7 additions and 0 deletions
7
demo.go
7
demo.go
|
@ -25,6 +25,13 @@ func handleDemoAlert(w http.ResponseWriter, r *http.Request) {
|
||||||
"total_amount": 1337,
|
"total_amount": 1337,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case msgTypeDonation:
|
||||||
|
data = map[string]interface{}{
|
||||||
|
"name": demoIssuer,
|
||||||
|
"amount": 6.66,
|
||||||
|
"message": "You rock!",
|
||||||
|
}
|
||||||
|
|
||||||
case msgTypeFollow:
|
case msgTypeFollow:
|
||||||
data = map[string]interface{}{
|
data = map[string]interface{}{
|
||||||
"from": demoIssuer,
|
"from": demoIssuer,
|
||||||
|
|
Loading…
Reference in a new issue