Exemplo n.º 1
0
        }                                        // the global report case id counter.
        // issues are only offloaded (sent twice into the same channel, if the original cannot be found.)

        public void AddChangelog(Changelog c)
        {
            if (Changelogs.Contains(c))
            {
                return;
            }

            Changelogs.Add(c);
        }
Exemplo n.º 2
0
        public bool TryGetChangelog(ulong id, out Changelog changelog)
        {
            changelog = null;
            if (!Changelogs.Any(x => x.Id == id))
            {
                return(false);
            }

            changelog = Changelogs.Where(x => x.Id == id).FirstOrDefault();
            return(true);
        }
Exemplo n.º 3
0
 public async Task NotifyCompleteReportAsync(OldAccount a, OrikivoCommandContext Context, Report report, Changelog changelog)
 {
     ulong  reward = 100;
     string b      = $"The report that was accepted ({report.Id}) has been built on {changelog.Name} ({changelog.Id}). Thank you for your input!\nYou have been awarded {EmojiIndex.Balance}{reward.ToPlaceValue().MarkdownBold()} for your time. Keep up the good work.";
     //CompactMessage msg = new CompactMessage(b);
     //OldMail m = new OldMail("Orikivo", $"({report.Id}) has been built!", msg);
     //await m.SendAsync(a, Context.Client);
 }