From d9b47fe590c963e841292140f56fca1ad479c007 Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 22:42:26 +0530 Subject: [PATCH 1/5] changed id to ID --- src/NadekoBot/Services/Impl/StatsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Services/Impl/StatsService.cs b/src/NadekoBot/Services/Impl/StatsService.cs index 9e07d12b..9a76490a 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -64,8 +64,8 @@ namespace NadekoBot.Services.Impl return $@"```css Author: [Kwoth#2560] | Library: [Discord.Net] Bot Version: [{BotVersion}] -Bot id: {curUser.Id} -Owners Ids: {string.Join(", ", NadekoBot.Credentials.OwnerIds)} +Bot ID: {curUser.Id} +Owners ID(s): {string.Join(", ", NadekoBot.Credentials.OwnerIds)} Uptime: {GetUptimeString()} Servers: {client.GetGuilds().Count} | TextChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is ITextChannel)).Count()} | VoiceChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is IVoiceChannel)).Count()} Commands Ran this session: {commandsRan} From f00bedaecb318c8596d0a9ea9861a189882d1244 Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 23:49:10 +0530 Subject: [PATCH 2/5] added colour to list of modules --- src/NadekoBot/Modules/Help/Help.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Help/Help.cs b/src/NadekoBot/Modules/Help/Help.cs index e24c3677..c026e996 100644 --- a/src/NadekoBot/Modules/Help/Help.cs +++ b/src/NadekoBot/Modules/Help/Help.cs @@ -38,7 +38,7 @@ namespace NadekoBot.Modules.Help public async Task Modules(IUserMessage umsg) { - await umsg.Channel.SendMessageAsync("šŸ“œ **List of modules:** ```xl\nā€¢ " + string.Join("\nā€¢ ", _commands.Modules.Select(m => m.Name)) + $"\n``` ā„¹ļø **Type** `-commands module_name` **to get a list of commands in that module.** ***e.g.*** `-commands games`") + await umsg.Channel.SendMessageAsync("šŸ“œ **List of modules:** ```css\nā€¢ " + string.Join("\nā€¢ ", _commands.Modules.Select(m => m.Name)) + $"\n``` ā„¹ļø **Type** `-commands module_name` **to get a list of commands in that module.** ***e.g.*** `-commands games`") .ConfigureAwait(false); } From cb96837678ce0aef1ca0cced7e199259976e28da Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 23:51:45 +0530 Subject: [PATCH 3/5] added colours to list of commands --- src/NadekoBot/_Extensions/Extensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/_Extensions/Extensions.cs b/src/NadekoBot/_Extensions/Extensions.cs index d2917856..04159315 100644 --- a/src/NadekoBot/_Extensions/Extensions.cs +++ b/src/NadekoBot/_Extensions/Extensions.cs @@ -158,7 +158,7 @@ namespace NadekoBot.Extensions public static Task SendTableAsync(this IMessageChannel ch, string seed, IEnumerable items, Func howToPrint, int columns = 3) { var i = 0; - return ch.SendMessageAsync($@"{seed}```xl + return ch.SendMessageAsync($@"{seed}```css {string.Join("\n", items.GroupBy(item => (i++) / columns) .Select(ig => string.Concat(ig.Select(el => howToPrint(el)))))} ```"); @@ -346,4 +346,4 @@ namespace NadekoBot.Extensions public static bool IsDiscordInvite(this string str) => filterRegex.IsMatch(str); } -} \ No newline at end of file +} From 95b4bf4197be9d44804c03d7b9017f29ee363fee Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 23:55:00 +0530 Subject: [PATCH 4/5] lil fix --- src/NadekoBot/Services/Impl/StatsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Services/Impl/StatsService.cs b/src/NadekoBot/Services/Impl/StatsService.cs index 9a76490a..1c1cb367 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -65,7 +65,7 @@ namespace NadekoBot.Services.Impl Author: [Kwoth#2560] | Library: [Discord.Net] Bot Version: [{BotVersion}] Bot ID: {curUser.Id} -Owners ID(s): {string.Join(", ", NadekoBot.Credentials.OwnerIds)} +Owner ID(s): {string.Join(", ", NadekoBot.Credentials.OwnerIds)} Uptime: {GetUptimeString()} Servers: {client.GetGuilds().Count} | TextChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is ITextChannel)).Count()} | VoiceChannels: {client.GetGuilds().SelectMany(g => g.GetChannels().Where(c => c is IVoiceChannel)).Count()} Commands Ran this session: {commandsRan} From 04e7e284f65cadc8160c4c0ae9137530f2855d8a Mon Sep 17 00:00:00 2001 From: samvaio Date: Sun, 20 Nov 2016 00:57:28 +0530 Subject: [PATCH 5/5] Added emojis for server online afk dnd and offline - Added emojis supported by iOS and Android discord client --- src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs b/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs index 00df0f9c..dbceb1a2 100644 --- a/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs +++ b/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs @@ -51,7 +51,7 @@ __`Owner:`__ **{await server.GetUserAsync(server.OwnerId)}** __`ID:`__ **{server.Id}** __`Icon URL:`__ { server.IconUrl} __`TextChannels:`__ **{(await server.GetTextChannelsAsync()).Count()}** `VoiceChannels:` **{(await server.GetVoiceChannelsAsync()).Count()}** -__`Members:`__ **{users.Count}** `-` {users.Count(u => u.Status == UserStatus.Online)}:green_heart: {users.Count(u => u.Status == UserStatus.Idle)}:yellow_heart: {users.Count(u => u.Status == UserStatus.DoNotDisturb)}:heart: {users.Count(u=> u.Status == UserStatus.Offline || u.Status == UserStatus.Unknown)}:black_heart: +__`Members:`__ **{users.Count}** `-` {users.Count(u => u.Status == UserStatus.Online)}šŸ’š {users.Count(u => u.Status == UserStatus.Idle)}šŸ”¶ {users.Count(u => u.Status == UserStatus.DoNotDisturb)}šŸ”“ {users.Count(u=> u.Status == UserStatus.Offline || u.Status == UserStatus.Unknown)}ā¬›ļø __`Roles:`__ **{server.Roles.Count()}** __`Created At:`__ **{createdAt.ToString("dd.MM.yyyy HH:mm")}** ");