Beispiel #1
0
        public async Task About()
        {
            _loggerService.LogInformation("Received 'about' command from user '{User}'", Context.User.ToString());

            var uptime            = _clock.GetCurrentInstant() - Process.GetCurrentProcess().StartTime.ToUniversalTime().ToInstant();
            var subscriptionCount = await _subscriptionQueries.GetAllAsync().CountAsync();

            var embed = EmbedHelper.About(Context.Client.Guilds.Count, subscriptionCount, uptime);

            if (Context.IsPrivate)
            {
                await Context.User.SendMessageAsync(embed : embed);

                return;
            }

            await Context.Channel.SendMessageAsync(embed : embed);
        }