示例#1
0
 private void AddToOstronBountyCyclePostQueue(WarframeOstronBountyCycle bounty, bool notifyClient)
 {
     if (!_ostronBountyCyclePostQueue.Any(x => x.WarframeEvent.GUID == bounty.GUID))
     {
         _ostronBountyCyclePostQueue.Add(new MessageQueueElement <WarframeOstronBountyCycle>(bounty, notifyClient, false));
     }
 }
        public static string DiscordMessage(this WarframeOstronBountyCycle cycleInfo, bool isNotification)
        {
            var cycleStatus = $"{cycleInfo.TimeOfNextCycleChange:HH:mm} ({(cycleInfo.TimeUntilNextCycleChange.Hours > 0 ? $"{cycleInfo.TimeUntilNextCycleChange.Hours}h " : string.Empty)}{cycleInfo.TimeUntilNextCycleChange.Minutes}m)";

            var returnMessage = new StringBuilder();

            returnMessage.AppendLine($"Ostron bounties reset at {cycleStatus}.");

            return(returnMessage.ToString());
        }