public BattleEncounter(DiscordApi.DiscordApi discordApi, string attackedSystem, ulong channelID) { this.discordApi = discordApi; this.channelID = channelID; this.attackedSystem = attackedSystem; this.encounterStart = DateTime.Now; this.lastNotification = DateTime.Now; Task.Run(async() => await CheckIfEndEncounter()); }
public WarTimer(DiscordApi.DiscordApi discordApi, string teamName, ulong channelID) { this.discordApi = discordApi; this.teamName = teamName; this.channelID = channelID; this.warMessageRecieved.Delay(TimeSpan.FromMinutes(30)).Subscribe(this.SendFirstWarReminder); this.warMessageRecieved.Delay(TimeSpan.FromMinutes(55)).Subscribe(this.SendSecondWarReminder); this.warMessageRecieved.Delay(TimeSpan.FromMinutes(60)).Subscribe(this.WarActiveReminder); }