예제 #1
0
        public async Task Stats(SocketCommandContext context, string[] command, ServerConfig serverConfig)
        {
            var guilds = await discordClient.GetGuildsAsync();

            var builder = new StringBuilder();

            builder.Append("Uptime: ");
            builder.Append(GetUptimeString());
            builder.AppendLine();
            builder.Append("Messages Seen: ");
            builder.Append(statsService.GetSeenMessages());
            builder.AppendLine();
            builder.Append("Server Count: ");
            builder.Append(guilds.Count);
            await context.Reply(builder.ToString());
        }