From 2574ad72ca7e51b05f01b0b91f5cdd07e61c10be Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 14:29:39 +0530 Subject: [PATCH 1/9] Update SelfCommands.cs --- .../Modules/Administration/Commands/SelfCommands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs b/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs index 60e9c8ce..0c634461 100644 --- a/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs @@ -31,13 +31,13 @@ namespace NadekoBot.Modules.Administration if (server == null) { - await channel.SendMessageAsync("Cannot find that server").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Cannot find that server").ConfigureAwait(false); return; } if (server.OwnerId != _client.GetCurrentUser().Id) { await server.LeaveAsync().ConfigureAwait(false); - await channel.SendMessageAsync("Left server " + server.Name).ConfigureAwait(false); + await channel.SendMessageAsync("✅ Left server " + server.Name).ConfigureAwait(false); } else { @@ -47,4 +47,4 @@ namespace NadekoBot.Modules.Administration } } } -} \ No newline at end of file +} From c53c5d878ccd1f9e0354f4588e01fd31d3ce6b84 Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 15:48:51 +0530 Subject: [PATCH 2/9] added emojis and fixed older emojis --- .../Modules/Administration/Administration.cs | 130 +++++++++--------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index c8455d6b..dc1a0a8c 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -119,7 +119,7 @@ namespace NadekoBot.Modules.Administration await uow.CompleteAsync(); } - await channel.SendMessageAsync($"{imsg.Author.Mention} :ok: `Permissions for this server are reset`"); + await channel.SendMessageAsync($"{imsg.Author.Mention} 🆗 **Permissions for this server are reset.**"); } [NadekoCommand, Usage, Description, Aliases] @@ -137,9 +137,9 @@ namespace NadekoBot.Modules.Administration await uow.CompleteAsync(); } if (conf.DeleteMessageOnCommand) - await channel.SendMessageAsync("❗`Now automatically deleting successfull command invokations.`").ConfigureAwait(false); + await channel.SendMessageAsync("✅ **Now automatically deleting successful command invokations.**").ConfigureAwait(false); else - await channel.SendMessageAsync("❗`Stopped automatic deletion of successfull command invokations.`").ConfigureAwait(false); + await channel.SendMessageAsync("❗**Stopped automatic deletion of successful command invokations.**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -151,11 +151,11 @@ namespace NadekoBot.Modules.Administration try { await usr.AddRolesAsync(role).ConfigureAwait(false); - await channel.SendMessageAsync($"Successfully added role **{role.Name}** to user **{usr.Username}**").ConfigureAwait(false); + await channel.SendMessageAsync($"ℹ️ Successfully added role **{role.Name}** to user **{usr.Username}**").ConfigureAwait(false); } catch (Exception ex) { - await channel.SendMessageAsync("Failed to add roles. Bot has insufficient permissions.\n").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Failed to add roles. **Bot has insufficient permissions.**\n").ConfigureAwait(false); Console.WriteLine(ex.ToString()); } } @@ -169,11 +169,11 @@ namespace NadekoBot.Modules.Administration try { await usr.RemoveRolesAsync(role).ConfigureAwait(false); - await channel.SendMessageAsync($"Successfully removed role **{role.Name}** from user **{usr.Username}**").ConfigureAwait(false); + await channel.SendMessageAsync($"ℹ️ Successfully removed role **{role.Name}** from user **{usr.Username}**").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("Failed to remove roles. Most likely reason: Insufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Failed to remove roles. Most likely reason: **Insufficient permissions.**").ConfigureAwait(false); } } @@ -187,15 +187,15 @@ namespace NadekoBot.Modules.Administration { if (roleToEdit.Position > (await channel.Guild.GetCurrentUserAsync().ConfigureAwait(false)).Roles.Max(r => r.Position)) { - await channel.SendMessageAsync("You can't edit roles higher than your highest role.").ConfigureAwait(false); + await channel.SendMessageAsync("🚫 You can't edit roles higher than your highest role.").ConfigureAwait(false); return; } await roleToEdit.ModifyAsync(g => g.Name = newname).ConfigureAwait(false); - await channel.SendMessageAsync("Role renamed.").ConfigureAwait(false); + await channel.SendMessageAsync("✅ Role renamed.").ConfigureAwait(false); } catch (Exception) { - await channel.SendMessageAsync("Failed to rename role. Probably insufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Failed to rename role. Probably **insufficient permissions.**").ConfigureAwait(false); } } @@ -209,11 +209,11 @@ namespace NadekoBot.Modules.Administration try { await user.RemoveRolesAsync(user.Roles).ConfigureAwait(false); - await channel.SendMessageAsync($"Successfully removed **all** roles from user **{user.Username}**").ConfigureAwait(false); + await channel.SendMessageAsync($"🗑 Successfully removed **all** roles from user **{user.Username}**").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("Failed to remove roles. Most likely reason: Insufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Failed to remove roles. Most likely reason: **Insufficient permissions.**").ConfigureAwait(false); } } @@ -230,11 +230,11 @@ namespace NadekoBot.Modules.Administration try { var r = await channel.Guild.CreateRoleAsync(roleName).ConfigureAwait(false); - await channel.SendMessageAsync($"Successfully created role **{r.Name}**.").ConfigureAwait(false); + await channel.SendMessageAsync($"✅ Successfully created role **{r.Name}**.").ConfigureAwait(false); } catch (Exception) { - await channel.SendMessageAsync(":warning: Unspecified error.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Unspecified error.").ConfigureAwait(false); } } @@ -247,7 +247,7 @@ namespace NadekoBot.Modules.Administration if (args.Count() != 2 && args.Count() != 4) { - await channel.SendMessageAsync("The parameters are invalid.").ConfigureAwait(false); + await channel.SendMessageAsync("❌ The parameters specified are **invalid.**").ConfigureAwait(false); return; } var roleName = args[0].ToUpperInvariant(); @@ -255,7 +255,7 @@ namespace NadekoBot.Modules.Administration if (role == null) { - await channel.SendMessageAsync("That role does not exist.").ConfigureAwait(false); + await channel.SendMessageAsync("🚫 That role **does not exist.**").ConfigureAwait(false); return; } try @@ -268,11 +268,11 @@ namespace NadekoBot.Modules.Administration var blue = Convert.ToByte(rgb ? int.Parse(args[3]) : Convert.ToInt32(arg1.Substring(4, 2), 16)); await role.ModifyAsync(r => r.Color = new Discord.Color(red, green, blue).RawValue).ConfigureAwait(false); - await channel.SendMessageAsync($"Role {role.Name}'s color has been changed.").ConfigureAwait(false); + await channel.SendMessageAsync($"☑️ Role **{role.Name}'s** color has been changed.").ConfigureAwait(false); } catch (Exception) { - await channel.SendMessageAsync("Error occured, most likely invalid parameters or insufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Error occured, most likely **invalid parameters** or **insufficient permissions.**").ConfigureAwait(false); } } @@ -284,16 +284,16 @@ namespace NadekoBot.Modules.Administration var channel = (ITextChannel)umsg.Channel; if (string.IsNullOrWhiteSpace(msg)) { - msg = "No reason provided."; + msg = "❗️No reason provided."; } if (umsg.Author.Id != user.Guild.OwnerId && user.Roles.Select(r=>r.Position).Max() >= ((IGuildUser)umsg.Author).Roles.Select(r => r.Position).Max()) { - await channel.SendMessageAsync("You can't use this command on users with a role higher or equal to yours in the role hierarchy."); + await channel.SendMessageAsync("⚠️ You can't use this command on users with a role higher or equal to yours in the role hierarchy."); return; } try { - await (await user.CreateDMChannelAsync()).SendMessageAsync($"**You have been BANNED from `{channel.Guild.Name}` server.**\n" + + await (await user.CreateDMChannelAsync()).SendMessageAsync($"⛔️ **You have been BANNED from `{channel.Guild.Name}` server.**\n" + $"Reason: {msg}").ConfigureAwait(false); await Task.Delay(2000).ConfigureAwait(false); } @@ -302,11 +302,11 @@ namespace NadekoBot.Modules.Administration { await channel.Guild.AddBanAsync(user, 7).ConfigureAwait(false); - await channel.SendMessageAsync("Banned user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); + await channel.SendMessageAsync("⛔️ **Banned** user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); } catch { - await channel.SendMessageAsync("Error. Most likely I don't have sufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ **Error.** Most likely I don't have sufficient permissions.").ConfigureAwait(false); } } @@ -319,16 +319,16 @@ namespace NadekoBot.Modules.Administration var channel = (ITextChannel)umsg.Channel; if (string.IsNullOrWhiteSpace(msg)) { - msg = "No reason provided."; + msg = "❗️No reason provided."; } if (umsg.Author.Id != user.Guild.OwnerId && user.Roles.Select(r => r.Position).Max() >= ((IGuildUser)umsg.Author).Roles.Select(r => r.Position).Max()) { - await channel.SendMessageAsync("You can't use this command on users with a role higher or equal to yours in the role hierarchy."); + await channel.SendMessageAsync("⚠️ You can't use this command on users with a role higher or equal to yours in the role hierarchy."); return; } try { - await user.SendMessageAsync($"**You have been SOFT-BANNED from `{channel.Guild.Name}` server.**\n" + + await user.SendMessageAsync($"☣ **You have been SOFT-BANNED from `{channel.Guild.Name}` server.**\n" + $"Reason: {msg}").ConfigureAwait(false); await Task.Delay(2000).ConfigureAwait(false); } @@ -339,11 +339,11 @@ namespace NadekoBot.Modules.Administration try { await channel.Guild.RemoveBanAsync(user).ConfigureAwait(false); } catch { await channel.Guild.RemoveBanAsync(user).ConfigureAwait(false); } - await channel.SendMessageAsync("Soft-Banned user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); + await channel.SendMessageAsync("☣ **Soft-Banned** user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); } catch { - await channel.SendMessageAsync("Error. Most likely I don't have sufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Error. Most likely I don't have sufficient permissions.").ConfigureAwait(false); } } @@ -356,20 +356,20 @@ namespace NadekoBot.Modules.Administration if (user == null) { - await channel.SendMessageAsync("User not found.").ConfigureAwait(false); + await channel.SendMessageAsync("❗️User not found.").ConfigureAwait(false); return; } if (umsg.Author.Id != user.Guild.OwnerId && user.Roles.Select(r => r.Position).Max() >= ((IGuildUser)umsg.Author).Roles.Select(r => r.Position).Max()) { - await channel.SendMessageAsync("You can't use this command on users with a role higher or equal to yours in the role hierarchy."); + await channel.SendMessageAsync("⚠️ You can't use this command on users with a role higher or equal to yours in the role hierarchy."); return; } if (!string.IsNullOrWhiteSpace(msg)) { try { - await user.SendMessageAsync($"**You have been KICKED from `{channel.Guild.Name}` server.**\n" + + await user.SendMessageAsync($"‼️**You have been KICKED from `{channel.Guild.Name}` server.**\n" + $"Reason: {msg}").ConfigureAwait(false); await Task.Delay(2000).ConfigureAwait(false); } @@ -378,11 +378,11 @@ namespace NadekoBot.Modules.Administration try { await user.KickAsync().ConfigureAwait(false); - await channel.SendMessageAsync("Kicked user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); + await channel.SendMessageAsync("‼️**Kicked user** " + user.Username + " Id: " + user.Id).ConfigureAwait(false); } catch { - await channel.SendMessageAsync("Error. Most likely I don't have sufficient permissions.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Error. Most likely I don't have sufficient permissions.").ConfigureAwait(false); } } @@ -404,7 +404,7 @@ namespace NadekoBot.Modules.Administration GuildMuteRoles.AddOrUpdate(channel.Guild.Id, name, (id, old) => name); await uow.CompleteAsync().ConfigureAwait(false); } - await channel.SendMessageAsync("`New mute role set.`").ConfigureAwait(false); + await channel.SendMessageAsync("☑️ **New mute role set.**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -426,11 +426,11 @@ namespace NadekoBot.Modules.Administration { await user.ModifyAsync(usr => usr.Mute = true).ConfigureAwait(false); await user.AddRolesAsync(await GetMuteRole(channel.Guild).ConfigureAwait(false)).ConfigureAwait(false); - await channel.SendMessageAsync($"**{user}** was muted from text and voice chat successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🔇 **{user}** was muted from text and voice chat successfully.").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -446,11 +446,11 @@ namespace NadekoBot.Modules.Administration { await user.ModifyAsync(usr => usr.Mute = false).ConfigureAwait(false); await user.RemoveRolesAsync(await GetMuteRole(channel.Guild).ConfigureAwait(false)).ConfigureAwait(false); - await channel.SendMessageAsync($"**{user}** was unmuted from text and voice chat successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🔉**{user}** was unmuted from text and voice chat successfully.").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -464,11 +464,11 @@ namespace NadekoBot.Modules.Administration try { await user.AddRolesAsync(await GetMuteRole(channel.Guild).ConfigureAwait(false)).ConfigureAwait(false); - await channel.SendMessageAsync($"**{user}** was muted from chatting successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🔇 **{user}** was muted from chatting successfully.").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -482,11 +482,11 @@ namespace NadekoBot.Modules.Administration try { await user.RemoveRolesAsync(await GetMuteRole(channel.Guild).ConfigureAwait(false)).ConfigureAwait(false); - await channel.SendMessageAsync($"**{user}** was unmuted from chatting successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🔉 **{user}** was unmuted from chatting successfully.").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -500,11 +500,11 @@ namespace NadekoBot.Modules.Administration try { await user.ModifyAsync(usr => usr.Mute = true).ConfigureAwait(false); - await channel.SendMessageAsync($"**{user}** was voice muted successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🔇 **{user}** was voice muted successfully.").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -517,11 +517,11 @@ namespace NadekoBot.Modules.Administration try { await user.ModifyAsync(usr => usr.Mute = false).ConfigureAwait(false); - await channel.SendMessageAsync($"**{user}** was voice unmuted successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🎙 **{user}** was voice unmuted successfully.").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -540,11 +540,11 @@ namespace NadekoBot.Modules.Administration { await u.ModifyAsync(usr=>usr.Deaf = true).ConfigureAwait(false); } - await channel.SendMessageAsync("Deafen successful").ConfigureAwait(false); + await channel.SendMessageAsync("🔇 Deafen successful").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -563,11 +563,11 @@ namespace NadekoBot.Modules.Administration { await u.ModifyAsync(usr=> usr.Deaf = false).ConfigureAwait(false); } - await channel.SendMessageAsync("Undeafen successful").ConfigureAwait(false); + await channel.SendMessageAsync("🔊 Undeafen successful").ConfigureAwait(false); } catch { - await channel.SendMessageAsync("I most likely don't have the permission necessary for that.").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ I most likely don't have the permission necessary for that.").ConfigureAwait(false); } } @@ -577,7 +577,7 @@ namespace NadekoBot.Modules.Administration public async Task DelVoiChanl(IUserMessage umsg, [Remainder] IVoiceChannel voiceChannel) { await voiceChannel.DeleteAsync().ConfigureAwait(false); - await umsg.Channel.SendMessageAsync($"Removed channel **{voiceChannel.Name}**.").ConfigureAwait(false); + await umsg.Channel.SendMessageAsync($"❗️Removed channel **{voiceChannel.Name}**.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -587,7 +587,7 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)umsg.Channel; var ch = await channel.Guild.CreateVoiceChannelAsync(channelName).ConfigureAwait(false); - await channel.SendMessageAsync($"Created voice channel **{ch.Name}**, id `{ch.Id}`.").ConfigureAwait(false); + await channel.SendMessageAsync($"✅ Created voice channel **{ch.Name}**, id `{ch.Id}`.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -596,7 +596,7 @@ namespace NadekoBot.Modules.Administration public async Task DelTxtChanl(IUserMessage umsg, [Remainder] ITextChannel channel) { await channel.DeleteAsync().ConfigureAwait(false); - await channel.SendMessageAsync($"Removed text channel **{channel.Name}**, id `{channel.Id}`.").ConfigureAwait(false); + await channel.SendMessageAsync($"❗️Removed text channel **{channel.Name}**, id `{channel.Id}`.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -606,7 +606,7 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)umsg.Channel; var txtCh = await channel.Guild.CreateTextChannelAsync(channelName).ConfigureAwait(false); - await channel.SendMessageAsync($"Added text channel **{txtCh.Name}**, id `{txtCh.Id}`.").ConfigureAwait(false); + await channel.SendMessageAsync($"✅ Added text channel **{txtCh.Name}**, id `{txtCh.Id}`.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -617,7 +617,7 @@ namespace NadekoBot.Modules.Administration var channel = (ITextChannel)umsg.Channel; topic = topic ?? ""; await channel.ModifyAsync(c => c.Topic = topic); - await channel.SendMessageAsync(":ok: **New channel topic set.**").ConfigureAwait(false); + await channel.SendMessageAsync("🆗 **New channel topic set.**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -628,7 +628,7 @@ namespace NadekoBot.Modules.Administration var channel = (ITextChannel)umsg.Channel; await channel.ModifyAsync(c => c.Name = name).ConfigureAwait(false); - await channel.SendMessageAsync(":ok: **New channel name set.**").ConfigureAwait(false); + await channel.SendMessageAsync("🆗 **New channel name set.**").ConfigureAwait(false); } @@ -677,7 +677,7 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)umsg.Channel; - try { await channel.SendMessageAsync("`Shutting down.`").ConfigureAwait(false); } catch (Exception ex) { _log.Warn(ex); } + try { await channel.SendMessageAsync("ℹ️ **Shutting down.**").ConfigureAwait(false); } catch (Exception ex) { _log.Warn(ex); } await Task.Delay(2000).ConfigureAwait(false); Environment.Exit(0); } @@ -693,7 +693,7 @@ namespace NadekoBot.Modules.Administration await (await NadekoBot.Client.GetCurrentUserAsync()).ModifyAsync(u => u.Username = newName).ConfigureAwait(false); - await channel.SendMessageAsync($"Successfully changed name to {newName}").ConfigureAwait(false); + await channel.SendMessageAsync($"🆒 Successfully changed name to **{newName}**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -718,7 +718,7 @@ namespace NadekoBot.Modules.Administration } } - await channel.SendMessageAsync("New avatar set.").ConfigureAwait(false); + await channel.SendMessageAsync("🆒 **New avatar set.**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -732,7 +732,7 @@ namespace NadekoBot.Modules.Administration await NadekoBot.Client.SetGame(game).ConfigureAwait(false); - await channel.SendMessageAsync("`New game set.`").ConfigureAwait(false); + await channel.SendMessageAsync("👾 **New game set.**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -746,7 +746,7 @@ namespace NadekoBot.Modules.Administration await NadekoBot.Client.SetStream(name, url).ConfigureAwait(false); - await channel.SendMessageAsync("`New stream set.`").ConfigureAwait(false); + await channel.SendMessageAsync("ℹ️ **New stream set.**").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -790,7 +790,7 @@ namespace NadekoBot.Modules.Administration } else { - await channel.SendMessageAsync("`Invalid format.`").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Invalid format.").ConfigureAwait(false); } } @@ -805,10 +805,10 @@ namespace NadekoBot.Modules.Administration g.GetDefaultChannelAsync() )).ConfigureAwait(false); - await Task.WhenAll(channels.Select(c => c.SendMessageAsync($"`Message from {umsg.Author} (Bot Owner):` " + message))) + await Task.WhenAll(channels.Select(c => c.SendMessageAsync($"🆕 **Message from {umsg.Author} (Bot Owner):** " + message))) .ConfigureAwait(false); - await channel.SendMessageAsync(":ok:").ConfigureAwait(false); + await channel.SendMessageAsync("🆗").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -851,7 +851,7 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)umsg.Channel; - string send = $"--{umsg.Author.Mention} has invoked a mention on the following roles--"; + string send = $"❕{umsg.Author.Mention} has invoked a mention on the following roles❕"; foreach (var role in roles) { send += $"\n`{role.Name}`\n"; From 3e6993b3e5558eff83d1f9acc809bfbb73a4211c Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 16:45:04 +0530 Subject: [PATCH 3/9] added emojis and fixes --- src/NadekoBot/Modules/Administration/Administration.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index dc1a0a8c..3305f9b5 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -302,7 +302,7 @@ namespace NadekoBot.Modules.Administration { await channel.Guild.AddBanAsync(user, 7).ConfigureAwait(false); - await channel.SendMessageAsync("⛔️ **Banned** user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); + await channel.SendMessageAsync("⛔️ **Banned** user **" + user.Username + "** ID: " + user.Id).ConfigureAwait(false); } catch { @@ -339,7 +339,7 @@ namespace NadekoBot.Modules.Administration try { await channel.Guild.RemoveBanAsync(user).ConfigureAwait(false); } catch { await channel.Guild.RemoveBanAsync(user).ConfigureAwait(false); } - await channel.SendMessageAsync("☣ **Soft-Banned** user " + user.Username + " Id: " + user.Id).ConfigureAwait(false); + await channel.SendMessageAsync("☣ **Soft-Banned** user **" + user.Username + "** ID: " + user.Id).ConfigureAwait(false); } catch { @@ -378,7 +378,7 @@ namespace NadekoBot.Modules.Administration try { await user.KickAsync().ConfigureAwait(false); - await channel.SendMessageAsync("‼️**Kicked user** " + user.Username + " Id: " + user.Id).ConfigureAwait(false); + await channel.SendMessageAsync("‼️**Kicked** user **" + user.Username + "** ID: " + user.Id).ConfigureAwait(false); } catch { From 2d617ec0a8aa294c76201f9b71dc9121223aef6f Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 17:52:49 +0530 Subject: [PATCH 4/9] add colours to stats --- src/NadekoBot/Services/Impl/StatsService.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/NadekoBot/Services/Impl/StatsService.cs b/src/NadekoBot/Services/Impl/StatsService.cs index cc567f2e..629ae80a 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -61,14 +61,15 @@ namespace NadekoBot.Services.Impl public async Task Print() { var curUser = await client.GetCurrentUserAsync(); - return $@"`Author: Kwoth` `Library: Discord.Net` -`Bot Version: {BotVersion}` -`Bot id: {curUser.Id}` -`Owners' Ids: {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}` -`Messages: {messageCounter} ({messageCounter / (double)GetUptime().TotalSeconds:F2}/sec)` `Heap: {Heap} MB`"; + return $@"```css +Author: [Kwoth] | Library: [Discord.Net] +Bot Version: [{BotVersion}] +Bot id: {curUser.Id} +Owners Ids: {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}` +Messages: {messageCounter} [{messageCounter / (double)GetUptime().TotalSeconds:F2}/sec] Heap: [{Heap} MB]```"; } public Task Reset() From c0925cec3a59580381cf557e097b1b029e67adbb Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 17:54:53 +0530 Subject: [PATCH 5/9] added colours --- 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 629ae80a..a5fb607f 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -68,7 +68,7 @@ Bot id: {curUser.Id} Owners Ids: {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}` +Commands Ran this session: {commandsRan} Messages: {messageCounter} [{messageCounter / (double)GetUptime().TotalSeconds:F2}/sec] Heap: [{Heap} MB]```"; } From 7125b7728cbfa30a74d0ec569419eee891fbbcaf Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 18:21:55 +0530 Subject: [PATCH 6/9] added emojis and fixed few other --- src/NadekoBot/Modules/Administration/Administration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 3305f9b5..7376b79d 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -446,7 +446,7 @@ namespace NadekoBot.Modules.Administration { await user.ModifyAsync(usr => usr.Mute = false).ConfigureAwait(false); await user.RemoveRolesAsync(await GetMuteRole(channel.Guild).ConfigureAwait(false)).ConfigureAwait(false); - await channel.SendMessageAsync($"🔉**{user}** was unmuted from text and voice chat successfully.").ConfigureAwait(false); + await channel.SendMessageAsync($"🔉 **{user}** was unmuted from text and voice chat successfully.").ConfigureAwait(false); } catch { From aa4bc00d8c0cb96559f9673d90ecfa79926728a8 Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 18:40:37 +0530 Subject: [PATCH 7/9] changed id to ID --- src/NadekoBot/Modules/Administration/Administration.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 7376b79d..1a373be8 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -587,7 +587,7 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)umsg.Channel; var ch = await channel.Guild.CreateVoiceChannelAsync(channelName).ConfigureAwait(false); - await channel.SendMessageAsync($"✅ Created voice channel **{ch.Name}**, id `{ch.Id}`.").ConfigureAwait(false); + await channel.SendMessageAsync($"✅ Created voice channel **{ch.Name}**, ID `{ch.Id}`.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -596,7 +596,7 @@ namespace NadekoBot.Modules.Administration public async Task DelTxtChanl(IUserMessage umsg, [Remainder] ITextChannel channel) { await channel.DeleteAsync().ConfigureAwait(false); - await channel.SendMessageAsync($"❗️Removed text channel **{channel.Name}**, id `{channel.Id}`.").ConfigureAwait(false); + await channel.SendMessageAsync($"❗️Removed text channel **{channel.Name}**, ID `{channel.Id}`.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] @@ -606,7 +606,7 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)umsg.Channel; var txtCh = await channel.Guild.CreateTextChannelAsync(channelName).ConfigureAwait(false); - await channel.SendMessageAsync($"✅ Added text channel **{txtCh.Name}**, id `{txtCh.Id}`.").ConfigureAwait(false); + await channel.SendMessageAsync($"✅ Added text channel **{txtCh.Name}**, ID `{txtCh.Id}`.").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases] From 906de4c59005d3a24b31b04a59a779e71d607493 Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 20:16:53 +0530 Subject: [PATCH 8/9] added kwoth's tag --- 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 a5fb607f..9e07d12b 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -62,7 +62,7 @@ namespace NadekoBot.Services.Impl { var curUser = await client.GetCurrentUserAsync(); return $@"```css -Author: [Kwoth] | Library: [Discord.Net] +Author: [Kwoth#2560] | Library: [Discord.Net] Bot Version: [{BotVersion}] Bot id: {curUser.Id} Owners Ids: {string.Join(", ", NadekoBot.Credentials.OwnerIds)} From ca5ee70c97cd7ab67f13c156168cc2fbbc6d1b87 Mon Sep 17 00:00:00 2001 From: samvaio Date: Sat, 19 Nov 2016 20:32:43 +0530 Subject: [PATCH 9/9] lil fixes - added emojis - changes id to ID and etc - corrected few spells --- src/NadekoBot/Modules/Administration/Administration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 1a373be8..e6c475f7 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -155,7 +155,7 @@ namespace NadekoBot.Modules.Administration } catch (Exception ex) { - await channel.SendMessageAsync("⚠️ Failed to add roles. **Bot has insufficient permissions.**\n").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Failed to add role. **Bot has insufficient permissions.**\n").ConfigureAwait(false); Console.WriteLine(ex.ToString()); } } @@ -173,7 +173,7 @@ namespace NadekoBot.Modules.Administration } catch { - await channel.SendMessageAsync("⚠️ Failed to remove roles. Most likely reason: **Insufficient permissions.**").ConfigureAwait(false); + await channel.SendMessageAsync("⚠️ Failed to remove role. Most likely reason: **Insufficient permissions.**").ConfigureAwait(false); } }