mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-04 13:06:29 +03:00
Added early event start notifications (#5)
totally didn't take 2 painful days Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
7fe6549bb3
commit
58eceab771
7 changed files with 60 additions and 2 deletions
|
@ -132,6 +132,9 @@ public static class EventHandler {
|
|||
scheduledEvent.StartTime.ToUnixTimeSeconds().ToString(), Utils.Wrap(scheduledEvent.Description)),
|
||||
true);
|
||||
}
|
||||
if (eventConfig["EventEarlyNotificationOffset"] != "0") {
|
||||
_ = Utils.SendEarlyEventStartNotificationAsync(channel, scheduledEvent, Convert.ToInt32(eventConfig["EventEarlyNotificationOffset"]));
|
||||
}
|
||||
}
|
||||
|
||||
private static async Task ScheduledEventCancelledEvent(SocketGuildEvent scheduledEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue