Exemplo n.º 1
0
        public async Task BozjaHelpAsync()
        {
            var guildConfig = Db.Guilds.FirstOrDefault(g => g.Id == Context.Guild.Id);
            var prefix      = Db.Config.Prefix.ToString();

            if (guildConfig != null && guildConfig.Prefix != ' ')
            {
                prefix = guildConfig.Prefix.ToString();
            }

            var commands = DiscordUtilities.GetFormattedCommandList(
                typeof(BozjaExtraModule),
                prefix,
                except: new List <string> {
                "bozhelp"
            });

            var embed = new EmbedBuilder()
                        .WithTitle("Useful Commands (Bozja)")
                        .WithColor(Color.LightOrange)
                        .WithDescription(commands)
                        .Build();

            await ReplyAsync(embed : embed);
        }
Exemplo n.º 2
0
        public async Task BAHelpAsync()
        {
            var guildConfig = Db.Guilds.FirstOrDefault(g => g.Id == Context.Guild.Id);
            var prefix      = Db.Config.Prefix.ToString();

            if (guildConfig != null && guildConfig.Prefix != ' ')
            {
                prefix = guildConfig.Prefix.ToString();
            }

            var baseCommands = await DiscordUtilities.GetFormattedCommandList(Services, Context, prefix, "BA Extra Module", except : new List <string> {
                "bahelp"
            });

            var hostCommands = await DiscordUtilities.GetFormattedCommandList(Services, Context, prefix, "Run");

            var embed = new EmbedBuilder()
                        .WithTitle("Useful Commands (Baldesion Arsenal)")
                        .WithColor(Color.LightOrange)
                        .WithDescription(baseCommands + "==============================\n" + hostCommands)
                        .Build();

            await ReplyAsync(embed : embed);
        }