Exemplo n.º 1
0
        public async ValueTask <CommandResult> HandleAsync(ICommandContext context)
        {
            var embed = EmbedHelper.CreateBotInfo(context.Client);

            embed.AddField("Uptime", _botInfo.Uptime.ToPrettyString());
            embed.AddField("Environment", _hostEnvironment.EnvironmentName);
            embed.AddField("Host", Environment.MachineName);
            embed.AddField(".NET", Environment.Version.ToString(3));

            await context.RespondAsync(embed);

            return(CommandResult.NoAction);
        }