This commit is contained in:
daru
2022-07-29 18:43:00 +02:00
parent 1bb8536334
commit 13b2335ae8
4 changed files with 12 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"fmt"
"strings"
"time"
"github.com/bwmarrin/discordgo"
"github.com/gookit/color"
@@ -62,6 +63,11 @@ func SendAppointBroadcast(creator string, app *Appointment) {
}
}
func AnnounceBomb(app *Appointment, timer time.Duration) {
time.Sleep(timer)
AnnounceAppointmentSoon(app)
}
func AnnounceAppointmentSoon(app *Appointment) {
if app != nil && discc != nil {
watchData, err := GetAnimeWatchFromDb(app.Anime)