From dd5f5c415cbdf0b185e210da182f2020c46da607 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 3 Feb 2016 11:17:49 +0100 Subject: [PATCH] fix - everyone not mentioning and sending to channel, better format --- NadekoBot/Modules/Administration.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/NadekoBot/Modules/Administration.cs b/NadekoBot/Modules/Administration.cs index 08e1476e..45a92c98 100644 --- a/NadekoBot/Modules/Administration.cs +++ b/NadekoBot/Modules/Administration.cs @@ -145,7 +145,7 @@ namespace NadekoBot.Modules { cgb.CreateCommand(".roles") .Description("List all roles on this server") .Do(async e => { - await e.Send("`List of roles:` " + string.Join(",",e.Server.Roles)); + await e.Send("`List of roles:` \n• " + string.Join("\n• ", e.Server.Roles).Replace("@everyone","[everyone]")); }); cgb.CreateCommand(".b").Alias(".ban") @@ -512,21 +512,21 @@ namespace NadekoBot.Modules { .Do(async e => { if (!e.User.ServerPermissions.MentionEveryone) return; var arg = e.GetArg("roles"); - string send = $"{e.User.Mention} has invoked a mention on the following roles:\n"; + string send = $"--{e.User.Mention} has invoked a mention on the following roles--"; foreach (var roleStr in e.Args) { if (roleStr == null) continue; var role = e.Server.FindRoles(roleStr).FirstOrDefault(); if (role == null) continue; - send += $"`{role.Name}`"; - send += string.Join(", ", role.Members.Select(r => r.Name)); + send += $"\n`{role.Name}`\n"; + send += string.Join(", ", role.Members.Select(r => r.Mention)); } while (send.Length > 2000) { var curstr = send.Substring(0, 2000); - await e.User.Send(curstr.Substring(0, curstr.LastIndexOf(", ") + 1)); + await e.Channel.Send(curstr.Substring(0, curstr.LastIndexOf(", ") + 1)); send = curstr.Substring(curstr.LastIndexOf(", ") + 1) + send.Substring(2000); } - await e.User.Send(send); + await e.Channel.Send(send); }); /*cgb.CreateCommand(".voicetext") .Description("Enabled or disabled voice to text channel connection. Only people in a certain voice channel will see ")