Text fixes
Some minor fixes to text strings.
This commit is contained in:
parent
a44c3e5e7b
commit
70e1108ece
@ -108,7 +108,7 @@ namespace NadekoBot.Modules {
|
|||||||
.Parameter("r", ParameterType.Optional)
|
.Parameter("r", ParameterType.Optional)
|
||||||
.Parameter("g", ParameterType.Optional)
|
.Parameter("g", ParameterType.Optional)
|
||||||
.Parameter("b", ParameterType.Optional)
|
.Parameter("b", ParameterType.Optional)
|
||||||
.Description("Set a role's color to the hex or 0-255 color value provided.\n**Usage**: .color Admin 255 200 100 or .color Admin ffba55")
|
.Description("Set a role's color to the hex or 0-255 rgb color value provided.\n**Usage**: .color Admin 255 200 100 or .color Admin ffba55")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (!e.User.ServerPermissions.ManageRoles) {
|
if (!e.User.ServerPermissions.ManageRoles) {
|
||||||
await e.Channel.SendMessage("You don't have permission to use this!");
|
await e.Channel.SendMessage("You don't have permission to use this!");
|
||||||
@ -160,7 +160,7 @@ namespace NadekoBot.Modules {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".modules")
|
cgb.CreateCommand(".modules")
|
||||||
.Description("List all bot modules")
|
.Description("List all bot modules.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
await e.Channel.SendMessage("`List of modules:` \n• " + string.Join("\n• ", NadekoBot.client.GetService<ModuleService>().Modules.Select(m => m.Name)));
|
await e.Channel.SendMessage("`List of modules:` \n• " + string.Join("\n• ", NadekoBot.client.GetService<ModuleService>().Modules.Select(m => m.Name)));
|
||||||
});
|
});
|
||||||
@ -180,7 +180,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
cgb.CreateCommand(".b").Alias(".ban")
|
cgb.CreateCommand(".b").Alias(".ban")
|
||||||
.Parameter("everything", ParameterType.Unparsed)
|
.Parameter("everything", ParameterType.Unparsed)
|
||||||
.Description("Bans a mentioned user")
|
.Description("Bans a mentioned user.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
try {
|
try {
|
||||||
if (e.User.ServerPermissions.BanMembers && e.Message.MentionedUsers.Any()) {
|
if (e.User.ServerPermissions.BanMembers && e.Message.MentionedUsers.Any()) {
|
||||||
@ -193,7 +193,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
cgb.CreateCommand(".ub").Alias(".unban")
|
cgb.CreateCommand(".ub").Alias(".unban")
|
||||||
.Parameter("everything", ParameterType.Unparsed)
|
.Parameter("everything", ParameterType.Unparsed)
|
||||||
.Description("Unbans a mentioned user")
|
.Description("Unbans a mentioned user.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
try {
|
try {
|
||||||
if (e.User.ServerPermissions.BanMembers && e.Message.MentionedUsers.Any()) {
|
if (e.User.ServerPermissions.BanMembers && e.Message.MentionedUsers.Any()) {
|
||||||
@ -219,7 +219,7 @@ namespace NadekoBot.Modules {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
cgb.CreateCommand(".mute")
|
cgb.CreateCommand(".mute")
|
||||||
.Description("Mutes mentioned user or users")
|
.Description("Mutes mentioned user or users.")
|
||||||
.Parameter("throwaway", ParameterType.Unparsed)
|
.Parameter("throwaway", ParameterType.Unparsed)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (!e.User.ServerPermissions.MuteMembers) {
|
if (!e.User.ServerPermissions.MuteMembers) {
|
||||||
@ -239,7 +239,7 @@ namespace NadekoBot.Modules {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".unmute")
|
cgb.CreateCommand(".unmute")
|
||||||
.Description("Unmutes mentioned user or users")
|
.Description("Unmutes mentioned user or users.")
|
||||||
.Parameter("throwaway", ParameterType.Unparsed)
|
.Parameter("throwaway", ParameterType.Unparsed)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (!e.User.ServerPermissions.MuteMembers) {
|
if (!e.User.ServerPermissions.MuteMembers) {
|
||||||
@ -310,7 +310,7 @@ namespace NadekoBot.Modules {
|
|||||||
await e.Channel.SendMessage($"Removed channel **{e.GetArg("channel_name")}**.");
|
await e.Channel.SendMessage($"Removed channel **{e.GetArg("channel_name")}**.");
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
await e.Channel.SendMessage("No sufficient permissions.");
|
await e.Channel.SendMessage("Insufficient permissions.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -324,7 +324,7 @@ namespace NadekoBot.Modules {
|
|||||||
await e.Channel.SendMessage($"Created voice channel **{e.GetArg("channel_name")}**.");
|
await e.Channel.SendMessage($"Created voice channel **{e.GetArg("channel_name")}**.");
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
await e.Channel.SendMessage("No sufficient permissions.");
|
await e.Channel.SendMessage("Insufficient permissions.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ namespace NadekoBot.Modules {
|
|||||||
await e.Channel.SendMessage($"Removed text channel **{e.GetArg("channel_name")}**.");
|
await e.Channel.SendMessage($"Removed text channel **{e.GetArg("channel_name")}**.");
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
await e.Channel.SendMessage("No sufficient permissions.");
|
await e.Channel.SendMessage("Insufficient permissions.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ namespace NadekoBot.Modules {
|
|||||||
await e.Channel.SendMessage($"Added text channel **{e.GetArg("channel_name")}**.");
|
await e.Channel.SendMessage($"Added text channel **{e.GetArg("channel_name")}**.");
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
await e.Channel.SendMessage("No sufficient permissions.");
|
await e.Channel.SendMessage("Insufficient permissions.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -367,7 +367,7 @@ namespace NadekoBot.Modules {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".uid").Alias(".userid")
|
cgb.CreateCommand(".uid").Alias(".userid")
|
||||||
.Description("Shows user id")
|
.Description("Shows user id.")
|
||||||
.Parameter("user", ParameterType.Optional)
|
.Parameter("user", ParameterType.Optional)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
var usr = e.User;
|
var usr = e.User;
|
||||||
@ -376,7 +376,7 @@ namespace NadekoBot.Modules {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".cid").Alias(".channelid")
|
cgb.CreateCommand(".cid").Alias(".channelid")
|
||||||
.Description("Shows current channel id")
|
.Description("Shows current channel id.")
|
||||||
.Do(async e => await e.Channel.SendMessage("This channel's id is " + e.Channel.Id));
|
.Do(async e => await e.Channel.SendMessage("This channel's id is " + e.Channel.Id));
|
||||||
|
|
||||||
cgb.CreateCommand(".sid").Alias(".serverid")
|
cgb.CreateCommand(".sid").Alias(".serverid")
|
||||||
@ -384,7 +384,7 @@ namespace NadekoBot.Modules {
|
|||||||
.Do(async e => await e.Channel.SendMessage("This server's id is " + e.Server.Id));
|
.Do(async e => await e.Channel.SendMessage("This server's id is " + e.Server.Id));
|
||||||
|
|
||||||
cgb.CreateCommand(".stats")
|
cgb.CreateCommand(".stats")
|
||||||
.Description("Shows some basic stats for nadeko")
|
.Description("Shows some basic stats for Nadeko.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
var t = Task.Run(() => {
|
var t = Task.Run(() => {
|
||||||
return NadekoStats.Instance.GetStats() + "`" + Music.GetMusicStats() + "`";
|
return NadekoStats.Instance.GetStats() + "`" + Music.GetMusicStats() + "`";
|
||||||
@ -431,7 +431,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
ConcurrentDictionary<Server, bool> clearDictionary = new ConcurrentDictionary<Server, bool>();
|
ConcurrentDictionary<Server, bool> clearDictionary = new ConcurrentDictionary<Server, bool>();
|
||||||
cgb.CreateCommand(".clr")
|
cgb.CreateCommand(".clr")
|
||||||
.Description("Clears some of nadeko's (or some other user's if supplied) messages from the current channel.\n**Usage**: .clr @X")
|
.Description("Clears some of Nadeko's (or some other user's if supplied) messages from the current channel.\n**Usage**: .clr @X")
|
||||||
.Parameter("user",ParameterType.Unparsed)
|
.Parameter("user",ParameterType.Unparsed)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
var usrId = NadekoBot.client.CurrentUser.Id;
|
var usrId = NadekoBot.client.CurrentUser.Id;
|
||||||
@ -645,7 +645,7 @@ namespace NadekoBot.Modules {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".videocall")
|
cgb.CreateCommand(".videocall")
|
||||||
.Description("Creates a private appear.in video call link for you and other mentioned people and sends it in private messages")
|
.Description("Creates a private appear.in video call link for you and other mentioned people. The link is sent to mentioned people via a private message.")
|
||||||
.Parameter("arg", ParameterType.Unparsed)
|
.Parameter("arg", ParameterType.Unparsed)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user