essential commit

This commit is contained in:
Master Kwoth 2016-02-03 17:42:43 +01:00
parent dd5f5c415c
commit 370fc22f05
2 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ namespace NadekoBot
{
public class NadekoStats
{
public string BotVersion = "0.8-beta5";
public string BotVersion = "0.8-beta6";
private static readonly NadekoStats _instance = new NadekoStats();
public static NadekoStats Instance => _instance;

View File

@ -505,16 +505,16 @@ namespace NadekoBot.Modules {
await e.Send("Failed. Make sure you've specified server and [channel or user]");
});
cgb.CreateCommand(".menrol")
cgb.CreateCommand(".menrole")
.Alias(".mentionrole")
.Description("Mentions every person from the provided role or roles (separated by a ',') on this server. Requires you to have mention @everyone permission.")
.Parameter("roles", ParameterType.Unparsed)
.Do(async e => {
if (!e.User.ServerPermissions.MentionEveryone) return;
var arg = e.GetArg("roles");
var arg = e.GetArg("roles").Split(',').Select(r => r.Trim());
string send = $"--{e.User.Mention} has invoked a mention on the following roles--";
foreach (var roleStr in e.Args) {
if (roleStr == null) continue;
foreach (var roleStr in arg) {
if (string.IsNullOrWhiteSpace(roleStr)) continue;
var role = e.Server.FindRoles(roleStr).FirstOrDefault();
if (role == null) continue;
send += $"\n`{role.Name}`\n";