Example #1
0
            public async Task LookupDefaultAsync([Remainder] string rndr)
            {//!lookup <chipname> -
                Chip locatedChip;

                if (rndr.Length == 1)
                {
                    await ReplyAsync(ObtainCodeResults(rndr));
                }
                else if (TryFindChipByName(rndr, out locatedChip))
                {
                    await ReplyAsync("", embed : EmbedTool.ChipEmbed(locatedChip));
                }
                else if (TryFindChipByAlias(rndr, out locatedChip))
                {
                    await ReplyAsync("", embed : EmbedTool.ChipEmbed(locatedChip));
                }
                else
                {
                    await ReplyAsync(ObtainSuggestions(rndr));
                }
            }