示例#1
0
        public async Task CheckPool()
        {
            var count = await _challenges.GetPendingCount();

            var msg = await ReplyAsync($"There are {count} challenges pending");

            if (count == 0)
            {
                await msg.AddReactionAsync(new Emoji("😰"));
            }
        }
示例#2
0
        public async Task CheckPool()
        {
            var count = await _challenges.GetPendingCount();

            var msg = await ReplyAsync($"There are {count} challenges pending");

            var emoji = count switch {
                0 => "😰", // cold sweat
                //1 => "😟", // worried
                //2 => "🙂", // smile
                //3 => "😁", // grin
                > 4 => "😲", // astonished
                _ => null,
            };

            if (emoji != null)
            {
                await msg.AddReactionAsync(new Emoji(emoji));
            }
        }
示例#3
0
        public async Task CheckPool()
        {
            var count = await _challenges.GetPendingCount();

            await ReplyAsync($"There are {count} challenges pending");
        }