diff --git a/src/NadekoBot/Attributes/LocalizedAlias.cs b/src/NadekoBot/Attributes/LocalizedAlias.cs new file mode 100644 index 00000000..97f808aa --- /dev/null +++ b/src/NadekoBot/Attributes/LocalizedAlias.cs @@ -0,0 +1,18 @@ +using Discord.Commands; +using NadekoBot.Services; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Text; +using System.Threading.Tasks; + +namespace NadekoBot.Attributes +{ + public class LocalizedAliasAttribute : AliasAttribute + { + public LocalizedAliasAttribute([CallerMemberName] string memberName = "") : base(Localization.LoadCommandString(memberName.ToLowerInvariant() + "_text").Split(' ').Skip(1).ToArray()) + { + } + } +} diff --git a/src/NadekoBot/Attributes/LocalizedCommand.cs b/src/NadekoBot/Attributes/LocalizedCommand.cs index fb371a6e..dcb96537 100644 --- a/src/NadekoBot/Attributes/LocalizedCommand.cs +++ b/src/NadekoBot/Attributes/LocalizedCommand.cs @@ -1,12 +1,13 @@ using Discord.Commands; using NadekoBot.Services; +using System.Linq; using System.Runtime.CompilerServices; namespace NadekoBot.Attributes { public class LocalizedCommandAttribute : CommandAttribute { - public LocalizedCommandAttribute([CallerMemberName] string memberName="") : base(Localization.LoadCommandString(memberName.ToLowerInvariant() + "_text")) + public LocalizedCommandAttribute([CallerMemberName] string memberName="") : base(Localization.LoadCommandString(memberName.ToLowerInvariant() + "_text").Split(' ')[0]) { } diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index f0e8b7a5..77260348 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -48,7 +48,7 @@ namespace NadekoBot.Modules.Administration } ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Restart(IUserMessage umsg) //{ @@ -60,7 +60,7 @@ namespace NadekoBot.Modules.Administration // Environment.Exit(0); //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.Administrator)] public async Task Delmsgoncmd(IUserMessage umsg) @@ -80,7 +80,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("❗`Stopped automatic deletion of successfull command invokations.`"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task Setrole(IUserMessage umsg, IGuildUser usr, [Remainder] IRole role) @@ -98,7 +98,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task Removerole(IUserMessage umsg, IGuildUser usr, [Remainder] IRole role) @@ -115,7 +115,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task RenameRole(IUserMessage umsg, IRole roleToEdit, string newname) @@ -137,7 +137,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task RemoveAllRoles(IUserMessage umsg, [Remainder] IGuildUser user) @@ -155,7 +155,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task CreateRole(IUserMessage umsg, [Remainder] string roleName = null) @@ -176,7 +176,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task RoleColor(IUserMessage umsg, params string[] args) @@ -214,7 +214,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.BanMembers)] public async Task Ban(IUserMessage umsg, IGuildUser user) @@ -241,7 +241,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.BanMembers)] public async Task Softban(IUserMessage umsg, IGuildUser user, [Remainder] string msg = null) @@ -267,7 +267,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Kick(IUserMessage umsg, IGuildUser user, [Remainder] string msg = null) { @@ -295,7 +295,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.MuteMembers)] public async Task Mute(IUserMessage umsg, params IGuildUser[] users) @@ -318,7 +318,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.MuteMembers)] public async Task Unmute(IUserMessage umsg, params IGuildUser[] users) @@ -341,7 +341,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.DeafenMembers)] public async Task Deafen(IUserMessage umsg, params IGuildUser[] users) @@ -364,7 +364,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.DeafenMembers)] public async Task UnDeafen(IUserMessage umsg, params IGuildUser[] users) @@ -387,7 +387,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] public async Task DelVoiChanl(IUserMessage umsg, [Remainder] IVoiceChannel voiceChannel) @@ -396,7 +396,7 @@ namespace NadekoBot.Modules.Administration await umsg.Channel.SendMessageAsync($"Removed channel **{voiceChannel.Name}**.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] public async Task CreatVoiChanl(IUserMessage umsg, [Remainder] string channelName) @@ -406,7 +406,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync($"Created voice channel **{ch.Name}**, id `{ch.Id}`.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] public async Task DelTxtChanl(IUserMessage umsg, [Remainder] ITextChannel channel) @@ -415,7 +415,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync($"Removed text channel **{channel.Name}**, id `{channel.Id}`.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] public async Task CreaTxtChanl(IUserMessage umsg, [Remainder] string channelName) @@ -425,7 +425,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync($"Added text channel **{txtCh.Name}**, id `{txtCh.Id}`.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] public async Task SetTopic(IUserMessage umsg, [Remainder] string topic = null) @@ -436,7 +436,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync(":ok: **New channel topic set.**").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] public async Task SetChanlName(IUserMessage umsg, [Remainder] string name) @@ -449,7 +449,7 @@ namespace NadekoBot.Modules.Administration //delets her own messages, no perm required - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Prune(IUserMessage umsg) { @@ -462,7 +462,7 @@ namespace NadekoBot.Modules.Administration } // prune x - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(ChannelPermission.ManageMessages)] public async Task Prune(IUserMessage msg, int count) @@ -481,7 +481,7 @@ namespace NadekoBot.Modules.Administration } //prune @user [x] - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Prune(IUserMessage msg, IGuildUser user, int count = 100) { @@ -491,7 +491,7 @@ namespace NadekoBot.Modules.Administration await msg.Channel.DeleteMessagesAsync(enumerable); } ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Die(IUserMessage umsg) //{ @@ -503,7 +503,7 @@ namespace NadekoBot.Modules.Administration //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Setname(IUserMessage umsg, [Remainder] string newName = null) //{ @@ -512,7 +512,7 @@ namespace NadekoBot.Modules.Administration //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task NewAvatar(IUserMessage umsg, [Remainder] string img = null) //{ @@ -531,7 +531,7 @@ namespace NadekoBot.Modules.Administration //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task SetGame(IUserMessage umsg, [Remainder] string game = null) //{ @@ -543,7 +543,7 @@ namespace NadekoBot.Modules.Administration //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Send(IUserMessage umsg, string where, [Remainder] string msg = null) //{ @@ -588,7 +588,7 @@ namespace NadekoBot.Modules.Administration //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Announce(IUserMessage umsg, [Remainder] string message) //{ @@ -603,7 +603,7 @@ namespace NadekoBot.Modules.Administration //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task SaveChat(IUserMessage umsg, int cnt) //{ @@ -635,7 +635,7 @@ namespace NadekoBot.Modules.Administration //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.MentionEveryone)] public async Task MentionRole(IUserMessage umsg, params IRole[] roles) @@ -660,7 +660,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync(send).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Donators(IUserMessage umsg) { @@ -676,7 +676,7 @@ namespace NadekoBot.Modules.Administration } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Donadd(IUserMessage umsg, IUser donator, int amount) { diff --git a/src/NadekoBot/Modules/Administration/Commands/AutoAssignRoleCommands.cs b/src/NadekoBot/Modules/Administration/Commands/AutoAssignRoleCommands.cs index ff2342cd..cd74103a 100644 --- a/src/NadekoBot/Modules/Administration/Commands/AutoAssignRoleCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/AutoAssignRoleCommands.cs @@ -38,7 +38,7 @@ namespace NadekoBot.Modules.Administration }; } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task AutoAssignRole(IUserMessage umsg, [Remainder] IRole role = null) diff --git a/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs b/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs index f1be8e56..f5f2cfe9 100644 --- a/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs +++ b/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs @@ -57,7 +57,7 @@ namespace NadekoBot.Modules.Administration public static readonly ConcurrentDictionary> Subscribers = new ConcurrentDictionary>(); ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Scsc(IUserMessage msg) //{ @@ -71,7 +71,7 @@ namespace NadekoBot.Modules.Administration // } //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task Jcsc(IUserMessage imsg, int token) @@ -85,7 +85,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync(":ok:").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task Lcsc(IUserMessage imsg) diff --git a/src/NadekoBot/Modules/Administration/Commands/LogCommand - Copy.cs b/src/NadekoBot/Modules/Administration/Commands/LogCommand - Copy.cs new file mode 100644 index 00000000..220c1d51 --- /dev/null +++ b/src/NadekoBot/Modules/Administration/Commands/LogCommand - Copy.cs @@ -0,0 +1,33 @@ +using Discord; +using Discord.Commands; +using Discord.WebSocket; +using NadekoBot.Extensions; +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace NadekoBot.Modules.Administration +{ + public partial class Administration { + [Group] + public class LogCommands + { + private DiscordSocketClient _client; + + private string prettyCurrentTime => $"【{DateTime.Now:HH:mm:ss}】"; + + public LogCommands(DiscordSocketClient client) + { + _client = client; + _client.MessageReceived += _client_MessageReceived; + } + + private Task _client_MessageReceived(IMessage arg) + { + throw new NotImplementedException(); + } + } + } +} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs b/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs index dfefc505..57c5fe9a 100644 --- a/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs +++ b/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs @@ -73,7 +73,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageMessages)] public async Task RepeatInvoke(IUserMessage imsg) @@ -90,7 +90,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("🔄 " + rep.Repeater.Message).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Repeat(IUserMessage imsg) { @@ -110,7 +110,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("`No message is repeating.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Repeat(IUserMessage imsg, int minutes, [Remainder] string message) { diff --git a/src/NadekoBot/Modules/Administration/Commands/PlayingRotateCommands.cs b/src/NadekoBot/Modules/Administration/Commands/PlayingRotateCommands.cs index 34e36096..59baf3d4 100644 --- a/src/NadekoBot/Modules/Administration/Commands/PlayingRotateCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/PlayingRotateCommands.cs @@ -86,7 +86,7 @@ namespace NadekoBot.Modules.Administration {"%queued%", () => Music.Music.MusicPlayers.Sum(kvp => kvp.Value.Playlist.Count).ToString()} }; - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task RotatePlaying(IUserMessage umsg) { @@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("`Rotating playing status disabled.`"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task AddPlaying(IUserMessage umsg, [Remainder] string status) { @@ -122,7 +122,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("`Added.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ListPlaying(IUserMessage umsg) { @@ -144,7 +144,7 @@ namespace NadekoBot.Modules.Administration } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task RemovePlaying(IUserMessage umsg, int index) { diff --git a/src/NadekoBot/Modules/Administration/Commands/RatelimitCommand.cs b/src/NadekoBot/Modules/Administration/Commands/RatelimitCommand.cs index ec634158..c1460795 100644 --- a/src/NadekoBot/Modules/Administration/Commands/RatelimitCommand.cs +++ b/src/NadekoBot/Modules/Administration/Commands/RatelimitCommand.cs @@ -8,7 +8,6 @@ using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; -//todo rewrite namespace NadekoBot.Modules.Administration { public partial class Administration @@ -85,7 +84,7 @@ namespace NadekoBot.Modules.Administration }; } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Slowmode(IUserMessage umsg, int msg = 1, int perSec = 5) { diff --git a/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs b/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs index 291e065b..8a05ceea 100644 --- a/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs +++ b/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs @@ -19,7 +19,7 @@ namespace NadekoBot.Modules.Administration public class SelfAssignedRolesCommands { - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task Asar(IUserMessage umsg, [Remainder] IRole role) @@ -49,7 +49,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync(msg.ToString()).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task Rsar(IUserMessage umsg, [Remainder] IRole role) @@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync($":ok:**{role.Name}** has been removed from the list of self-assignable roles").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Lsar(IUserMessage umsg) { @@ -105,7 +105,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync(msg.ToString() + "\n\n" + removeMsg.ToString()).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] public async Task Tesar(IUserMessage umsg) @@ -124,7 +124,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Self assigned roles are now " + exl); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Iam(IUserMessage umsg, [Remainder] IRole role) { @@ -182,7 +182,7 @@ namespace NadekoBot.Modules.Administration } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Iamnot(IUserMessage umsg, [Remainder] IRole role) { diff --git a/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs b/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs index fc6052cf..ef6c11a6 100644 --- a/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/SelfCommands.cs @@ -20,7 +20,7 @@ // this._client = client; // } -// [LocalizedCommand, LocalizedDescription, LocalizedSummary] +// [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] // [RequireContext(ContextType.Guild)] // public async Task Leave(IUserMessage umsg, [Remainder] string guildStr) // { diff --git a/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs b/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs index 98867f8e..53a5abd5 100644 --- a/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs @@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Administration return Task.CompletedTask; } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task GreetDel(IUserMessage umsg) @@ -128,7 +128,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("`Automatic deletion of greet messages has been disabled.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task Greet(IUserMessage umsg) @@ -151,7 +151,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Greet announcements disabled.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task GreetMsg(IUserMessage umsg, [Remainder] string text) @@ -180,7 +180,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Enable greet messsages by typing `.greet`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task GreetDm(IUserMessage umsg) @@ -202,7 +202,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Greet announcements disabled.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task GreetDmMsg(IUserMessage umsg, [Remainder] string text) @@ -231,7 +231,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Enable DM greet messsages by typing `.greetdm`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task Bye(IUserMessage umsg) @@ -254,7 +254,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Bye announcements disabled.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task ByeMsg(IUserMessage umsg, [Remainder] string text) @@ -283,7 +283,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Enable bye messsages by typing `.bye`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] public async Task ByeDel(IUserMessage umsg) diff --git a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs index bafa59b3..a9d60515 100644 --- a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs @@ -97,11 +97,11 @@ namespace NadekoBot.Modules.Administration private string GetChannelName(string voiceName) => channelNameRegex.Replace(voiceName, "").Trim().Replace(" ", "-").TrimTo(90, true) + "-voice"; - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageRoles)] [RequirePermission(GuildPermission.ManageChannels)] - public async Task VPlusT(IUserMessage msg, [Remainder] string arg) + public async Task VoicePlusText(IUserMessage msg, [Remainder] string arg) { var channel = (ITextChannel)msg.Channel; var guild = channel.Guild; @@ -138,7 +138,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync(ex.ToString()).ConfigureAwait(false); } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageChannels)] [RequirePermission(GuildPermission.ManageRoles)] diff --git a/src/NadekoBot/Modules/ClashOfClans/ClashOfClans.cs b/src/NadekoBot/Modules/ClashOfClans/ClashOfClans.cs index d2aa77a1..9dc4ebf1 100644 --- a/src/NadekoBot/Modules/ClashOfClans/ClashOfClans.cs +++ b/src/NadekoBot/Modules/ClashOfClans/ClashOfClans.cs @@ -54,7 +54,7 @@ namespace NadekoBot.Modules.ClashOfClans } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task CreateWar(IUserMessage umsg, int size, [Remainder] string enemyClan = null) { @@ -87,7 +87,7 @@ namespace NadekoBot.Modules.ClashOfClans await channel.SendMessageAsync($"❗🔰**CREATED CLAN WAR AGAINST {cw.ShortPrint()}**").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task StartWar(IUserMessage umsg, [Remainder] string number = null) { @@ -115,7 +115,7 @@ namespace NadekoBot.Modules.ClashOfClans SaveWar(war); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ListWar(IUserMessage umsg, [Remainder] string number = null) { @@ -158,7 +158,7 @@ namespace NadekoBot.Modules.ClashOfClans await channel.SendMessageAsync(warsInfo.Item1[warsInfo.Item2].ToPrettyString()).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Claim(IUserMessage umsg, int number, int baseNumber, [Remainder] string other_name = null) { @@ -186,7 +186,7 @@ namespace NadekoBot.Modules.ClashOfClans } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ClaimFinish1(IUserMessage umsg, int number, int baseNumber, [Remainder] string other_name = null) { @@ -194,7 +194,7 @@ namespace NadekoBot.Modules.ClashOfClans await FinishClaim(umsg, number, baseNumber, other_name, 1); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ClaimFinish2(IUserMessage umsg, int number, int baseNumber, [Remainder] string other_name = null) { @@ -202,7 +202,7 @@ namespace NadekoBot.Modules.ClashOfClans await FinishClaim(umsg, number, baseNumber, other_name, 2); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ClaimFinish(IUserMessage umsg, int number, int baseNumber, [Remainder] string other_name = null) { @@ -210,7 +210,7 @@ namespace NadekoBot.Modules.ClashOfClans await FinishClaim(umsg, number, baseNumber, other_name); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task EndWar(IUserMessage umsg, int number) { @@ -231,7 +231,7 @@ namespace NadekoBot.Modules.ClashOfClans warsInfo.Item1.RemoveAt(warsInfo.Item2); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Unclaim(IUserMessage umsg, int number, [Remainder] string otherName = null) { diff --git a/src/NadekoBot/Modules/Gambling/Commands/AnimalRacing.cs b/src/NadekoBot/Modules/Gambling/Commands/AnimalRacing.cs index 2731627f..e7787e9e 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/AnimalRacing.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/AnimalRacing.cs @@ -20,7 +20,7 @@ namespace NadekoBot.Modules.Gambling { public static ConcurrentDictionary AnimalRaces = new ConcurrentDictionary(); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Race(IUserMessage umsg) { @@ -32,7 +32,7 @@ namespace NadekoBot.Modules.Gambling await channel.SendMessageAsync("🏁 `Failed starting a race. Another race is probably running.`"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task JoinRace(IUserMessage umsg, int amount = 0) { diff --git a/src/NadekoBot/Modules/Gambling/Commands/DiceRollCommand.cs b/src/NadekoBot/Modules/Gambling/Commands/DiceRollCommand.cs index e2654649..c9556d9d 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/DiceRollCommand.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/DiceRollCommand.cs @@ -14,12 +14,12 @@ namespace NadekoBot.Modules.Gambling { private Regex dndRegex { get; } = new Regex(@"(?\d+)d(?\d+)", RegexOptions.Compiled); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public Task Roll(IUserMessage umsg, [Remainder] string arg = null) => publicRoll(umsg, arg, true); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public Task Rolluo(IUserMessage umsg, [Remainder] string arg = null) => publicRoll(umsg, arg, false); @@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Gambling //} } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task NRoll(IUserMessage umsg, [Remainder] string range) { diff --git a/src/NadekoBot/Modules/Gambling/Commands/FlipCoinCommand.cs b/src/NadekoBot/Modules/Gambling/Commands/FlipCoinCommand.cs index 2afca817..cc20db4c 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/FlipCoinCommand.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/FlipCoinCommand.cs @@ -12,7 +12,7 @@ namespace NadekoBot.Modules.Gambling ////todo drawing - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Flip(IUserMessage imsg, int count = 0) //{ @@ -39,7 +39,7 @@ namespace NadekoBot.Modules.Gambling // await channel.SendMessageAsync("Invalid number").ConfigureAwait(false); //} - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Betflip(IUserMessage umsg, int amount, string guess) //{ diff --git a/src/NadekoBot/Modules/Gambling/Gambling.cs b/src/NadekoBot/Modules/Gambling/Gambling.cs index 73eacc19..2151fdf6 100644 --- a/src/NadekoBot/Modules/Gambling/Gambling.cs +++ b/src/NadekoBot/Modules/Gambling/Gambling.cs @@ -34,7 +34,7 @@ namespace NadekoBot.Modules.Gambling } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Raffle(IUserMessage umsg, [Remainder] IRole role = null) { @@ -48,7 +48,7 @@ namespace NadekoBot.Modules.Gambling await channel.SendMessageAsync($"**Raffled user:** {usr.Username} (id: {usr.Id})").ConfigureAwait(false); } - [LocalizedCommand("$$$"), LocalizedDescription("$$$"), LocalizedSummary("$$$")] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Cash(IUserMessage umsg, [Remainder] IUser user = null) { @@ -66,7 +66,7 @@ namespace NadekoBot.Modules.Gambling await channel.SendMessageAsync($"{user.Username} has {amount} {config.CurrencySign}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Give(IUserMessage umsg, long amount, [Remainder] IUser receiver) { @@ -92,12 +92,12 @@ namespace NadekoBot.Modules.Gambling } ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public Task Award(IUserMessage umsg, long amount, [Remainder] IGuildUser usr) => // Award(umsg, amount, usr.Id); - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Award(IUserMessage umsg, long amount, [Remainder] ulong usrId) //{ @@ -112,13 +112,13 @@ namespace NadekoBot.Modules.Gambling //} ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public Task Take(IUserMessage umsg, long amount, [Remainder] IGuildUser user) => // Take(umsg, amount, user.Id); //todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Take(IUserMessage umsg, long amount, [Remainder] ulong usrId) //{ @@ -131,7 +131,7 @@ namespace NadekoBot.Modules.Gambling // await channel.SendMessageAsync($"{umsg.Author.Mention} successfully took {amount} {Gambling.CurrencyName}s from <@{usrId}>!").ConfigureAwait(false); //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task BetRoll(IUserMessage umsg, long amount) { @@ -181,7 +181,7 @@ namespace NadekoBot.Modules.Gambling await channel.SendMessageAsync(str).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Leaderboard(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Games/Commands/LeetCommands.cs b/src/NadekoBot/Modules/Games/Commands/LeetCommands.cs index 26408cd2..c327e823 100644 --- a/src/NadekoBot/Modules/Games/Commands/LeetCommands.cs +++ b/src/NadekoBot/Modules/Games/Commands/LeetCommands.cs @@ -12,7 +12,7 @@ namespace NadekoBot.Modules.Games { public partial class GamesModule { - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Leet(IUserMessage umsg, int level, [Remainder] string text = null) { diff --git a/src/NadekoBot/Modules/Games/Commands/PollCommands.cs b/src/NadekoBot/Modules/Games/Commands/PollCommands.cs index e8b3711c..37cae486 100644 --- a/src/NadekoBot/Modules/Games/Commands/PollCommands.cs +++ b/src/NadekoBot/Modules/Games/Commands/PollCommands.cs @@ -14,7 +14,7 @@ namespace NadekoBot.Modules.Games { public static ConcurrentDictionary ActivePolls = new ConcurrentDictionary(); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Poll(IUserMessage umsg, [Remainder] string arg = null) { @@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Games } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Pollend(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs b/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs index efabc444..54ce8226 100644 --- a/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs +++ b/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs @@ -133,7 +133,7 @@ namespace NadekoBot.Modules.Games RunningContests = new ConcurrentDictionary(); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task TypeStart(IUserMessage msg) { @@ -154,7 +154,7 @@ namespace NadekoBot.Modules.Games } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task TypeStop(IUserMessage imsg) { @@ -169,7 +169,7 @@ namespace NadekoBot.Modules.Games } ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Typeadd(IUserMessage imsg, [Remainder] string text) //{ diff --git a/src/NadekoBot/Modules/Games/Commands/TriviaCommands.cs b/src/NadekoBot/Modules/Games/Commands/TriviaCommands.cs index 13c0adaf..e5de052e 100644 --- a/src/NadekoBot/Modules/Games/Commands/TriviaCommands.cs +++ b/src/NadekoBot/Modules/Games/Commands/TriviaCommands.cs @@ -17,7 +17,7 @@ namespace NadekoBot.Modules.Games { public static ConcurrentDictionary RunningTrivias = new ConcurrentDictionary(); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Trivia(IUserMessage umsg, string[] args) { @@ -44,7 +44,7 @@ namespace NadekoBot.Modules.Games await channel.SendMessageAsync("Trivia game is already running on this server.\n" + trivia.CurrentQuestion).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Tl(IUserMessage umsg) { @@ -57,7 +57,7 @@ namespace NadekoBot.Modules.Games await channel.SendMessageAsync("No trivia is running on this server.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Tq(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Games/Games.cs b/src/NadekoBot/Modules/Games/Games.cs index 071ec72c..7548f202 100644 --- a/src/NadekoBot/Modules/Games/Games.cs +++ b/src/NadekoBot/Modules/Games/Games.cs @@ -27,7 +27,7 @@ namespace NadekoBot.Modules.Games { } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Choose(IUserMessage umsg, [Remainder] string list = null) { @@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Games await channel.SendMessageAsync(listArr[rng.Next(0, listArr.Length)]).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task _8Ball(IUserMessage umsg, [Remainder] string question = null) { @@ -54,7 +54,7 @@ namespace NadekoBot.Modules.Games 🎱 `8Ball Answers` __**{_8BallResponses.Shuffle().FirstOrDefault()}**__").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Rps(IUserMessage umsg, string input) { @@ -104,7 +104,7 @@ namespace NadekoBot.Modules.Games await channel.SendMessageAsync(msg).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Linux(IUserMessage umsg, string guhnoo, string loonix) { diff --git a/src/NadekoBot/Modules/Help/Help.cs b/src/NadekoBot/Modules/Help/Help.cs index c62c39c4..0a0538fb 100644 --- a/src/NadekoBot/Modules/Help/Help.cs +++ b/src/NadekoBot/Modules/Help/Help.cs @@ -25,7 +25,7 @@ namespace NadekoBot.Modules.Help { } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Modules(IUserMessage umsg) { @@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Help .ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Commands(IUserMessage umsg, [Remainder] string module = null) { @@ -44,7 +44,7 @@ namespace NadekoBot.Modules.Help module = module?.Trim().ToUpperInvariant(); if (string.IsNullOrWhiteSpace(module)) return; - var cmds = _commands.Commands.Where(c => c.Module.Name.ToUpperInvariant() == module) + var cmds = _commands.Commands.Where(c => c.Module.Name.ToUpperInvariant().StartsWith(module)) .OrderBy(c => c.Text) .AsEnumerable(); var cmdsArray = cmds as Command[] ?? cmds.ToArray(); @@ -55,8 +55,7 @@ namespace NadekoBot.Modules.Help } if (module != "customreactions" && module != "conversations") { - //todo aliases - await channel.SendTableAsync("`List Of Commands:`\n", cmdsArray, el => $"{el.Text,-15}").ConfigureAwait(false); + await channel.SendTableAsync("`List Of Commands:`\n", cmdsArray, el => $"{el.Text,-15} {"["+el.Aliases.Skip(1).FirstOrDefault()+"]",-8}").ConfigureAwait(false); } else { @@ -65,7 +64,7 @@ namespace NadekoBot.Modules.Help await channel.SendMessageAsync($"`You can type \"-h command_name\" to see the help about that specific command.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task H(IUserMessage umsg, [Remainder] string comToFind = null) { @@ -79,14 +78,13 @@ namespace NadekoBot.Modules.Help } var com = _commands.Commands.FirstOrDefault(c => c.Text.ToLowerInvariant() == comToFind); - //todo aliases if (com != null) await channel.SendMessageAsync($@"**__Help for:__ `{com.Text}`** **Desc:** {com.Description} **Usage:** {com.Summary}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Hgit(IUserMessage umsg) { @@ -102,8 +100,7 @@ namespace NadekoBot.Modules.Help helpstr.AppendLine("----------------|--------------|-------"); lastModule = com.Module.Name; } - //todo aliases - helpstr.AppendLine($"`{com.Text}` | {com.Description} | {com.Summary}"); + helpstr.AppendLine($"`{com.Text}` {string.Join(" ", com.Aliases.Skip(1).Select(a=>"`"+a+"`"))} | {com.Description} | {com.Summary}"); } helpstr = helpstr.Replace((await NadekoBot.Client.GetCurrentUserAsync()).Username , "@BotName"); #if DEBUG @@ -113,7 +110,7 @@ namespace NadekoBot.Modules.Help #endif } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Guide(IUserMessage umsg) { @@ -124,7 +121,7 @@ namespace NadekoBot.Modules.Help **Hosting Guides and docs can be found here**: ").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Donate(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index d512535d..7cc9ac04 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Music _google = google; } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Next(IUserMessage umsg) { @@ -47,7 +47,7 @@ namespace NadekoBot.Modules.Music musicPlayer.Next(); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Stop(IUserMessage umsg) { @@ -62,7 +62,7 @@ namespace NadekoBot.Modules.Music } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Destroy(IUserMessage umsg) { @@ -74,7 +74,7 @@ namespace NadekoBot.Modules.Music musicPlayer.Destroy(); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Pause(IUserMessage umsg) { @@ -91,7 +91,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync("🎵`Music Player unpaused.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Queue(IUserMessage umsg, [Remainder] string query) { @@ -105,7 +105,7 @@ namespace NadekoBot.Modules.Music } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task SoundCloudQueue(IUserMessage umsg, [Remainder] string query) { @@ -119,7 +119,7 @@ namespace NadekoBot.Modules.Music } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ListQueue(IUserMessage umsg, int page = 1) { @@ -152,7 +152,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync(toSend + string.Join("\n", musicPlayer.Playlist.Skip(startAt).Take(15).Select(v => $"`{number++}.` {v.PrettyName}"))).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task NowPlaying(IUserMessage umsg) { @@ -167,7 +167,7 @@ namespace NadekoBot.Modules.Music $"{currentSong.PrettyCurrentTime()}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Volume(IUserMessage umsg, int val) { @@ -183,7 +183,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync($"🎵 `Volume set to {volume}%`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Defvol(IUserMessage umsg, [Remainder] int val) { @@ -202,7 +202,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync($"🎵 `Default volume set to {val}%`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Mute(IUserMessage umsg) { @@ -215,7 +215,7 @@ namespace NadekoBot.Modules.Music musicPlayer.SetVolume(0); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Max(IUserMessage umsg) { @@ -228,7 +228,7 @@ namespace NadekoBot.Modules.Music musicPlayer.SetVolume(100); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Shuffle(IUserMessage umsg) { @@ -248,7 +248,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync("🎵 `Songs shuffled.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Playlist(IUserMessage umsg, [Remainder] string playlist) { @@ -290,7 +290,7 @@ namespace NadekoBot.Modules.Music await msg.ModifyAsync(m => m.Content = "🎵 `Playlist queue complete.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task SoundCloudPl(IUserMessage umsg, [Remainder] string pl) { @@ -327,7 +327,7 @@ namespace NadekoBot.Modules.Music } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task LocalPl(IUserMessage umsg, [Remainder] string directory) { @@ -356,7 +356,7 @@ namespace NadekoBot.Modules.Music catch { } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Radio(IUserMessage umsg, string radio_link) { @@ -374,7 +374,7 @@ namespace NadekoBot.Modules.Music } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Local(IUserMessage umsg, [Remainder] string path) { @@ -386,7 +386,7 @@ namespace NadekoBot.Modules.Music } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Move(IUserMessage umsg) { @@ -398,7 +398,7 @@ namespace NadekoBot.Modules.Music musicPlayer.MoveToVoiceChannel(voiceChannel); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Remove(IUserMessage umsg, int num) { @@ -418,7 +418,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync($"🎵**Track {song.PrettyName} at position `#{num}` has been removed.**").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Remove(IUserMessage umsg, string all) { @@ -433,7 +433,7 @@ namespace NadekoBot.Modules.Music return; } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task MoveSong(IUserMessage umsg, [Remainder] string fromto) { @@ -469,7 +469,7 @@ namespace NadekoBot.Modules.Music } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task SetMaxQueue(IUserMessage umsg, uint size) { @@ -483,7 +483,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync($"🎵 `Max queue set to {(size == 0 ? ("unlimited") : size + " tracks")}`"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ReptCurSong(IUserMessage umsg) { @@ -501,7 +501,7 @@ namespace NadekoBot.Modules.Music .ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task RepeatPl(IUserMessage umsg) { @@ -514,7 +514,7 @@ namespace NadekoBot.Modules.Music } /// - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Save(IUserMessage umsg, [Remainder] string name) //{ @@ -522,7 +522,7 @@ namespace NadekoBot.Modules.Music //} - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Load(IUserMessage umsg, [Remainder] string name) //{ @@ -530,7 +530,7 @@ namespace NadekoBot.Modules.Music //} - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Playlists(IUserMessage umsg, [Remainder] string num) //{ @@ -538,7 +538,7 @@ namespace NadekoBot.Modules.Music //} - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task DeletePlaylist(IUserMessage umsg, [Remainder] string pl) //{ @@ -546,7 +546,7 @@ namespace NadekoBot.Modules.Music //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Goto(IUserMessage umsg, int time) { @@ -583,7 +583,7 @@ namespace NadekoBot.Modules.Music await channel.SendMessageAsync($"`Skipped to {minutes}:{seconds}`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task GetLink(IUserMessage umsg, int index = 0) { @@ -618,7 +618,7 @@ namespace NadekoBot.Modules.Music } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Autoplay(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/NSFW/NSFW.cs b/src/NadekoBot/Modules/NSFW/NSFW.cs index a8699ca4..377a2cd9 100644 --- a/src/NadekoBot/Modules/NSFW/NSFW.cs +++ b/src/NadekoBot/Modules/NSFW/NSFW.cs @@ -22,7 +22,7 @@ namespace NadekoBot.Modules.NSFW { } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Hentai(IUserMessage umsg, [Remainder] string tag = null) { @@ -41,7 +41,7 @@ namespace NadekoBot.Modules.NSFW await channel.SendMessageAsync(String.Join("\n\n", links)).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Danbooru(IUserMessage umsg, [Remainder] string tag = null) { @@ -55,7 +55,7 @@ namespace NadekoBot.Modules.NSFW await channel.SendMessageAsync(link).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Gelbooru(IUserMessage umsg, [Remainder] string tag = null) { @@ -69,7 +69,7 @@ namespace NadekoBot.Modules.NSFW await channel.SendMessageAsync(link).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Rule34(IUserMessage umsg, [Remainder] string tag = null) { @@ -83,7 +83,7 @@ namespace NadekoBot.Modules.NSFW await channel.SendMessageAsync(link).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task E621(IUserMessage umsg, [Remainder] string tag = null) { @@ -97,7 +97,7 @@ namespace NadekoBot.Modules.NSFW await channel.SendMessageAsync(link).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Cp(IUserMessage umsg) { @@ -106,7 +106,7 @@ namespace NadekoBot.Modules.NSFW await channel.SendMessageAsync("http://i.imgur.com/MZkY1md.jpg").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Boobs(IUserMessage umsg) { @@ -126,7 +126,7 @@ namespace NadekoBot.Modules.NSFW } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Butts(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Pokemon/Pokemon.cs b/src/NadekoBot/Modules/Pokemon/Pokemon.cs index 6418fcdf..31082944 100644 --- a/src/NadekoBot/Modules/Pokemon/Pokemon.cs +++ b/src/NadekoBot/Modules/Pokemon/Pokemon.cs @@ -15,7 +15,7 @@ namespace NadekoBot.Modules.Games } //todo Dragon should PR this in - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Poke(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs b/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs index 458d6552..dd96cf0e 100644 --- a/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs @@ -12,7 +12,6 @@ using System.Linq; using System.Net.Http; using System.Threading.Tasks; -// todo RestSharp namespace NadekoBot.Modules.Searches { public partial class Searches @@ -30,7 +29,7 @@ namespace NadekoBot.Modules.Searches _log = LogManager.GetCurrentClassLogger(); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Anime(IUserMessage umsg, [Remainder] string query) { @@ -44,7 +43,7 @@ namespace NadekoBot.Modules.Searches await channel.SendMessageAsync(result.ToString() ?? "`No anime found.`").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Manga(IUserMessage umsg, [Remainder] string query) { diff --git a/src/NadekoBot/Modules/Searches/Commands/CalcCommand.cs b/src/NadekoBot/Modules/Searches/Commands/CalcCommand.cs index dd2e7d35..1f9f00dc 100644 --- a/src/NadekoBot/Modules/Searches/Commands/CalcCommand.cs +++ b/src/NadekoBot/Modules/Searches/Commands/CalcCommand.cs @@ -14,7 +14,7 @@ namespace NadekoBot.Modules.Searches [Group] public partial class Searches { - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public static async Task Calculate(IUserMessage msg, [Remainder] string expression) { @@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task CalcOps(IUserMessage msg) { diff --git a/src/NadekoBot/Modules/Searches/Commands/JokeCommands.cs b/src/NadekoBot/Modules/Searches/Commands/JokeCommands.cs index bb24cee1..94347cc6 100644 --- a/src/NadekoBot/Modules/Searches/Commands/JokeCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/JokeCommands.cs @@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Searches _log.Warn("data/magicitems.json is missing. Magic items are not loaded."); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Yomama(IUserMessage umsg) { @@ -53,7 +53,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Randjoke(IUserMessage umsg) { @@ -65,7 +65,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ChuckNorris(IUserMessage umsg) { @@ -77,7 +77,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task WowJoke(IUserMessage umsg) { @@ -89,7 +89,7 @@ namespace NadekoBot.Modules.Searches await channel.SendMessageAsync(wowJokes[new Random().Next(0, wowJokes.Count)].ToString()); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task MagicItem(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Searches/Commands/LoLCommands.cs b/src/NadekoBot/Modules/Searches/Commands/LoLCommands.cs index 2aa4cdc3..27d6b611 100644 --- a/src/NadekoBot/Modules/Searches/Commands/LoLCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/LoLCommands.cs @@ -31,7 +31,7 @@ namespace NadekoBot.Modules.Searches "Doesn't matter what you ban really. Enemy will ban your main and you will lose." }; - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Lolban(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Searches/Commands/MemegenCommands.cs b/src/NadekoBot/Modules/Searches/Commands/MemegenCommands.cs index 16995259..43b6fbe4 100644 --- a/src/NadekoBot/Modules/Searches/Commands/MemegenCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/MemegenCommands.cs @@ -15,7 +15,7 @@ namespace NadekoBot.Modules.Searches { public partial class Searches { - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Memelist(IUserMessage umsg) { @@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Memegen(IUserMessage umsg, string meme, string topText, string botText) { diff --git a/src/NadekoBot/Modules/Searches/Commands/OsuCommands.cs b/src/NadekoBot/Modules/Searches/Commands/OsuCommands.cs index 6fd23a29..fffe02e2 100644 --- a/src/NadekoBot/Modules/Searches/Commands/OsuCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/OsuCommands.cs @@ -25,7 +25,7 @@ namespace NadekoBot.Modules.Searches { _log = LogManager.GetCurrentClassLogger(); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Osu(IUserMessage umsg, string usr, string mode) { @@ -58,7 +58,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Osub(IUserMessage umsg, [Remainder] string map) { @@ -95,7 +95,7 @@ namespace NadekoBot.Modules.Searches } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Osu5(IUserMessage umsg, string user, [Remainder] string mode) { diff --git a/src/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs b/src/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs index 6449ceb6..e090d09f 100644 --- a/src/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs @@ -38,7 +38,7 @@ namespace NadekoBot.Modules.Searches _log.Warn(PokemonAbilitiesFile + " is missing. Pokemon abilities not loaded."); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Pokemon(IUserMessage umsg, [Remainder] string pokemon = null) { @@ -59,7 +59,7 @@ namespace NadekoBot.Modules.Searches await channel.SendMessageAsync("`No pokemon found.`"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task PokemonAbility(IUserMessage umsg, [Remainder] string ability = null) { diff --git a/src/NadekoBot/Modules/Searches/Commands/StreamNotificationCommands.cs b/src/NadekoBot/Modules/Searches/Commands/StreamNotificationCommands.cs index f809bc52..b313bf63 100644 --- a/src/NadekoBot/Modules/Searches/Commands/StreamNotificationCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/StreamNotificationCommands.cs @@ -132,28 +132,28 @@ namespace NadekoBot.Modules.Searches return new Tuple(false, "0"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageMessages)] public async Task Hitbox(IUserMessage msg, [Remainder] string username) => await TrackStream((ITextChannel)msg.Channel, username, FollowedStream.FollowedStreamType.Hitbox) .ConfigureAwait(false); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageMessages)] public async Task Twitch(IUserMessage msg, [Remainder] string username) => await TrackStream((ITextChannel)msg.Channel, username, FollowedStream.FollowedStreamType.Twitch) .ConfigureAwait(false); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageMessages)] public async Task Beam(IUserMessage msg, [Remainder] string username) => await TrackStream((ITextChannel)msg.Channel, username, FollowedStream.FollowedStreamType.Beam) .ConfigureAwait(false); - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ListStreams(IUserMessage imsg) { @@ -179,7 +179,7 @@ namespace NadekoBot.Modules.Searches await channel.SendMessageAsync($"You are following **{streams.Count()}** streams on this server.\n\n" + text).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task RemoveStream(IUserMessage msg, [Remainder] string username) { @@ -207,7 +207,7 @@ namespace NadekoBot.Modules.Searches await channel.SendMessageAsync($":ok: Removed `{toRemove.Username}`'s stream ({toRemove.Type}) from notifications.").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task CheckStream(IUserMessage imsg, FollowedStream.FollowedStreamType platform, [Remainder] string username) { diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 59828814..9fb3a387 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -26,7 +26,7 @@ namespace NadekoBot.Modules.Searches _google = youtube; } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Weather(IUserMessage umsg, string city, string country) { @@ -47,7 +47,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 🌄 **Sunrise:** {obj["sunrise"]} 🌇 **Sunset:** {obj["sunset"]}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Youtube(IUserMessage umsg, [Remainder] string query = null) { @@ -62,7 +62,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 await channel.SendMessageAsync(result).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Imdb(IUserMessage umsg, [Remainder] string query = null) { @@ -86,7 +86,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 await channel.SendMessageAsync(result.ToString()).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task RandomCat(IUserMessage umsg) { @@ -99,7 +99,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task RandomDog(IUserMessage umsg) { @@ -110,7 +110,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task I(IUserMessage umsg, [Remainder] string query = null) { @@ -140,7 +140,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Ir(IUserMessage umsg, [Remainder] string query = null) { @@ -172,7 +172,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Lmgtfy(IUserMessage umsg, [Remainder] string ffs = null) { @@ -186,7 +186,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 .ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Google(IUserMessage umsg, [Remainder] string terms = null) { @@ -200,7 +200,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 .ConfigureAwait(false); } ////todo drawing - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Hearthstone(IUserMessage umsg, [Remainder] string name = null) //{ @@ -245,7 +245,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 // } //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Ud(IUserMessage umsg, [Remainder] string query = null) { @@ -279,7 +279,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Hashtag(IUserMessage umsg, [Remainder] string query = null) { @@ -314,7 +314,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Catfact(IUserMessage umsg) { @@ -328,7 +328,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Revav(IUserMessage umsg, [Remainder] string arg = null) { @@ -345,7 +345,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 await channel.SendMessageAsync($"https://images.google.com/searchbyimage?image_url={usr.AvatarUrl}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Revimg(IUserMessage umsg, [Remainder] string imageLink = null) { @@ -357,7 +357,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 await channel.SendMessageAsync($"https://images.google.com/searchbyimage?image_url={imageLink}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Safebooru(IUserMessage umsg, [Remainder] string tag = null) { @@ -371,7 +371,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 await channel.SendMessageAsync(link).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Wiki(IUserMessage umsg, [Remainder] string query = null) { @@ -392,7 +392,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } ////todo drawing - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task Clr(IUserMessage umsg, [Remainder] string color = null) //{ @@ -417,7 +417,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 // await channel.SendFileAsync("arg1.png", img.ToStream()); //} - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Videocall(IUserMessage umsg, [Remainder] string arg = null) { @@ -440,7 +440,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Avatar(IUserMessage umsg, [Remainder] string mention = null) { diff --git a/src/NadekoBot/Modules/Translator/Translator.cs b/src/NadekoBot/Modules/Translator/Translator.cs index 425d9b0c..c1cf0850 100644 --- a/src/NadekoBot/Modules/Translator/Translator.cs +++ b/src/NadekoBot/Modules/Translator/Translator.cs @@ -16,7 +16,7 @@ namespace NadekoBot.Modules.Translator { } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Translate(IUserMessage umsg, string langs, [Remainder] string text = null) { @@ -44,7 +44,7 @@ namespace NadekoBot.Modules.Translator } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Translangs(IUserMessage umsg) { diff --git a/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs b/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs index 62aab7b1..7b5a9ef1 100644 --- a/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs +++ b/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs @@ -12,7 +12,7 @@ namespace NadekoBot.Modules.Utility { partial class Utility : DiscordModule { - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ServerInfo(IUserMessage msg, string guild = null) { @@ -47,7 +47,7 @@ namespace NadekoBot.Modules.Utility await msg.Reply(sb.ToString()).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ChannelInfo(IUserMessage msg, ITextChannel channel = null) { @@ -63,7 +63,7 @@ namespace NadekoBot.Modules.Utility await msg.Reply(toReturn).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task UserInfo(IUserMessage msg, IGuildUser usr = null) { diff --git a/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs index d1206ee6..98f62442 100644 --- a/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs @@ -14,7 +14,7 @@ namespace NadekoBot.Modules.Utility { public partial class Utility { - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ShowQuote(IUserMessage umsg, string keyword) { @@ -37,7 +37,7 @@ namespace NadekoBot.Modules.Utility await channel.SendMessageAsync("📣 " + quote.Text); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task AddQuote(IUserMessage umsg, string keyword, [Remainder] string text) { @@ -63,7 +63,7 @@ namespace NadekoBot.Modules.Utility } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task DeleteQuote(IUserMessage umsg, string keyword) { @@ -90,7 +90,7 @@ namespace NadekoBot.Modules.Utility await channel.SendMessageAsync("`Deleted a random quote.`"); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task DelAllQuotes(IUserMessage umsg, string keyword) { diff --git a/src/NadekoBot/Modules/Utility/Commands/Remind.cs b/src/NadekoBot/Modules/Utility/Commands/Remind.cs index 8f273aa6..ba48f1e9 100644 --- a/src/NadekoBot/Modules/Utility/Commands/Remind.cs +++ b/src/NadekoBot/Modules/Utility/Commands/Remind.cs @@ -92,7 +92,7 @@ namespace NadekoBot.Modules.Utility } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Remind(IUserMessage umsg, string meorchannel, string timeStr, [Remainder] string message) { @@ -185,7 +185,7 @@ namespace NadekoBot.Modules.Utility } ////todo owner only - //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] //[RequireContext(ContextType.Guild)] //public async Task RemindTemplate(IUserMessage umsg, [Remainder] string arg) //{ diff --git a/src/NadekoBot/Modules/Utility/Utility.cs b/src/NadekoBot/Modules/Utility/Utility.cs index 07499f5a..a10441c7 100644 --- a/src/NadekoBot/Modules/Utility/Utility.cs +++ b/src/NadekoBot/Modules/Utility/Utility.cs @@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Utility } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task WhosPlaying(IUserMessage umsg, [Remainder] string game = null) { @@ -43,7 +43,7 @@ namespace NadekoBot.Modules.Utility await channel.SendMessageAsync("```xl\n" + string.Join("\n", arr.GroupBy(item => (i++) / 3).Select(ig => string.Concat(ig.Select(el => $"• {el,-35}")))) + "\n```").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task InRole(IUserMessage umsg, [Remainder] string roles = null) { @@ -76,7 +76,7 @@ namespace NadekoBot.Modules.Utility await channel.SendMessageAsync(send).ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task CheckMyPerms(IUserMessage msg) { @@ -93,7 +93,7 @@ namespace NadekoBot.Modules.Utility await msg.Reply(builder.ToString()); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task UserId(IUserMessage msg, IGuildUser target = null) { @@ -101,20 +101,20 @@ namespace NadekoBot.Modules.Utility await msg.Reply($"Id of the user { usr.Username } is { usr.Id })").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] public async Task ChannelId(IUserMessage msg) { await msg.Reply($"This Channel's ID is {msg.Channel.Id}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ServerId(IUserMessage msg) { await msg.Reply($"This server's ID is {(msg.Channel as ITextChannel).Guild.Id}").ConfigureAwait(false); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Roles(IUserMessage msg, IGuildUser target = null) { @@ -129,7 +129,7 @@ namespace NadekoBot.Modules.Utility } } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task ChannelTopic(IUserMessage umsg) { @@ -142,7 +142,7 @@ namespace NadekoBot.Modules.Utility await channel.SendMessageAsync("`Topic:` " + topic); } - [LocalizedCommand, LocalizedDescription, LocalizedSummary] + [LocalizedCommand, LocalizedDescription, LocalizedSummary, LocalizedAlias] [RequireContext(ContextType.Guild)] public async Task Stats(IUserMessage umsg) { diff --git a/src/NadekoBot/Resources/CommandStrings.Designer.cs b/src/NadekoBot/Resources/CommandStrings.Designer.cs index d8310229..0c172970 100644 --- a/src/NadekoBot/Resources/CommandStrings.Designer.cs +++ b/src/NadekoBot/Resources/CommandStrings.Designer.cs @@ -28,7 +28,7 @@ namespace NadekoBot.Resources { private static global::System.Globalization.CultureInfo resourceCulture; - public CommandStrings() { + internal CommandStrings() { } /// @@ -86,33 +86,6 @@ namespace NadekoBot.Resources { } } - /// - /// Looks up a localized string similar to Try to get 'abalabahaha'. - /// - public static string ab_desc { - get { - return ResourceManager.GetString("ab_desc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to `@NadekoBot ab`. - /// - public static string ab_summary { - get { - return ResourceManager.GetString("ab_summary", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ab. - /// - public static string ab_text { - get { - return ResourceManager.GetString("ab_text", resourceCulture); - } - } - /// /// Looks up a localized string similar to Add a custom reaction. Guide here: <https://github.com/Kwoth/NadekoBot/wiki/Custom-Reactions> **Bot Owner Only!**. /// @@ -132,7 +105,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to addcustreact. + /// Looks up a localized string similar to addcustreact acr. /// public static string addcustreact_text { get { @@ -159,7 +132,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to addfilterword. + /// Looks up a localized string similar to addfilterword afw. /// public static string addfilterword_text { get { @@ -186,7 +159,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to addplaying. + /// Looks up a localized string similar to addplaying adpl. /// public static string addplaying_text { get { @@ -240,7 +213,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to allchnlcmds. + /// Looks up a localized string similar to allchnlcmds acc. /// public static string allchnlcmds_text { get { @@ -267,7 +240,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to allchnlmdls. + /// Looks up a localized string similar to allchnlmdls acm. /// public static string allchnlmdls_text { get { @@ -321,7 +294,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to allrolecmds. + /// Looks up a localized string similar to allrolecmds acmdcds. /// public static string allrolecmds_text { get { @@ -348,7 +321,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to allrolemdls. + /// Looks up a localized string similar to allrolemdls arm. /// public static string allrolemdls_text { get { @@ -375,7 +348,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to allsrvrcmds. + /// Looks up a localized string similar to allsrvrcmds asc. /// public static string allsrvrcmds_text { get { @@ -402,7 +375,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to allsrvrmdls. + /// Looks up a localized string similar to allsrvrmdls asm. /// public static string allsrvrmdls_text { get { @@ -429,7 +402,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to ani. + /// Looks up a localized string similar to ani anime aq. /// public static string ani_text { get { @@ -537,7 +510,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to autoassignrole. + /// Looks up a localized string similar to autoassignrole aar. /// public static string autoassignrole_text { get { @@ -564,7 +537,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to autoplay. + /// Looks up a localized string similar to autoplay ap. /// public static string autoplay_text { get { @@ -591,7 +564,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to av. + /// Looks up a localized string similar to av avatar. /// public static string avatar_text { get { @@ -645,7 +618,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to ban. + /// Looks up a localized string similar to ban b. /// public static string ban_text { get { @@ -672,7 +645,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to beam. + /// Looks up a localized string similar to beam bm. /// public static string beam_text { get { @@ -699,7 +672,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to betflip. + /// Looks up a localized string similar to betflip bf. /// public static string betflip_text { get { @@ -726,7 +699,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to betroll. + /// Looks up a localized string similar to betroll br. /// public static string betroll_text { get { @@ -807,7 +780,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to butts. + /// Looks up a localized string similar to butts ass butt. /// public static string butts_text { get { @@ -942,7 +915,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to calculate. + /// Looks up a localized string similar to calculate calc. /// public static string calculate_text { get { @@ -977,6 +950,33 @@ namespace NadekoBot.Resources { } } + /// + /// Looks up a localized string similar to Check how much NadekoFlowers a person has. (Defaults to yourself). + /// + public static string cash_desc { + get { + return ResourceManager.GetString("cash_desc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to `$$$` or `$$$ @SomeGuy`. + /// + public static string cash_summary { + get { + return ResourceManager.GetString("cash_summary", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to $$$. + /// + public static string cash_text { + get { + return ResourceManager.GetString("cash_text", resourceCulture); + } + } + /// /// Looks up a localized string similar to Shows a random catfact from <http://catfacts-api.appspot.com/api/facts>. /// @@ -1077,7 +1077,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to channelinfo. + /// Looks up a localized string similar to channelinfo cinfo. /// public static string channelinfo_text { get { @@ -1104,7 +1104,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to channeltopic. + /// Looks up a localized string similar to channeltopic ct. /// public static string channeltopic_text { get { @@ -1131,7 +1131,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to checkbeam. + /// Looks up a localized string similar to checkbeam chbm. /// public static string checkbeam_text { get { @@ -1158,7 +1158,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to checkhitbox. + /// Looks up a localized string similar to checkhitbox chhb. /// public static string checkhitbox_text { get { @@ -1212,7 +1212,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to checktwitch. + /// Looks up a localized string similar to checktwitch chtw. /// public static string checktwitch_text { get { @@ -1239,7 +1239,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chnlcmd. + /// Looks up a localized string similar to chnlcmd cc. /// public static string chnlcmd_text { get { @@ -1266,7 +1266,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chnlfilterinv. + /// Looks up a localized string similar to chnlfilterinv cfi. /// public static string chnlfilterinv_text { get { @@ -1293,7 +1293,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chnlfilterwords. + /// Looks up a localized string similar to chnlfilterwords cfw. /// public static string chnlfilterwords_text { get { @@ -1320,7 +1320,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chnlmdl. + /// Looks up a localized string similar to chnlmdl cm. /// public static string chnlmdl_text { get { @@ -1347,7 +1347,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chnlperms. + /// Looks up a localized string similar to chnlperms cp. /// public static string chnlperms_text { get { @@ -1374,7 +1374,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chnlpermscopy. + /// Looks up a localized string similar to chnlpermscopy cpc. /// public static string chnlpermscopy_text { get { @@ -1428,7 +1428,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to chucknorris. + /// Looks up a localized string similar to chucknorris cn. /// public static string chucknorris_text { get { @@ -1455,7 +1455,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to claim. + /// Looks up a localized string similar to claim call c. /// public static string claim_text { get { @@ -1482,7 +1482,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to claimfinish. + /// Looks up a localized string similar to claimfinish cf cf3 claimfinish3. /// public static string claimfinish_text { get { @@ -1509,7 +1509,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to claimfinish1. + /// Looks up a localized string similar to claimfinish1 cf1. /// public static string claimfinish1_text { get { @@ -1536,7 +1536,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to claimfinish2. + /// Looks up a localized string similar to claimfinish2 cf2. /// public static string claimfinish2_text { get { @@ -1590,7 +1590,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to cleanvplust. + /// Looks up a localized string similar to cleanvplust cv+t. /// public static string cleanvplust_text { get { @@ -1617,7 +1617,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to clr. + /// Looks up a localized string similar to clr prune. /// public static string clr_text { get { @@ -1644,7 +1644,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to cmdcooldown. + /// Looks up a localized string similar to cmdcooldown cmdcd. /// public static string cmdcooldown_text { get { @@ -1779,7 +1779,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to createrole. + /// Looks up a localized string similar to createrole cr. /// public static string createrole_text { get { @@ -1806,7 +1806,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to createwar. + /// Looks up a localized string similar to createwar cw. /// public static string createwar_text { get { @@ -1833,7 +1833,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to creatvoichanl. + /// Looks up a localized string similar to creatvoichanl cvch. /// public static string creatvoichanl_text { get { @@ -1860,7 +1860,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to creatxtchanl. + /// Looks up a localized string similar to creatxtchanl ctch. /// public static string creatxtchanl_text { get { @@ -1941,7 +1941,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to deafen. + /// Looks up a localized string similar to deafen deaf. /// public static string deafen_text { get { @@ -1968,7 +1968,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to defvol. + /// Looks up a localized string similar to defvol dv. /// public static string defvol_text { get { @@ -1995,7 +1995,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to delallq. + /// Looks up a localized string similar to delallq daq. /// public static string delallquotes_text { get { @@ -2022,7 +2022,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to delcustreact. + /// Looks up a localized string similar to delcustreact dcr. /// public static string delcustreact_text { get { @@ -2049,7 +2049,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to deleteplaylist. + /// Looks up a localized string similar to deleteplaylist delpls. /// public static string deleteplaylist_text { get { @@ -2076,7 +2076,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to deletequote. + /// Looks up a localized string similar to deletequote delq. /// public static string deletequote_text { get { @@ -2130,7 +2130,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to deltxtchanl. + /// Looks up a localized string similar to deltxtchanl dtch. /// public static string deltxtchanl_text { get { @@ -2157,7 +2157,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to delvoichanl. + /// Looks up a localized string similar to delvoichanl dvch. /// public static string delvoichanl_text { get { @@ -2184,7 +2184,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to destroy. + /// Looks up a localized string similar to destroy d. /// public static string destroy_text { get { @@ -2454,7 +2454,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to editcustreact. + /// Looks up a localized string similar to editcustreact ecr. /// public static string editcustreact_text { get { @@ -2481,7 +2481,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to endwar. + /// Looks up a localized string similar to endwar ew. /// public static string endwar_text { get { @@ -2589,7 +2589,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to gencurrency. + /// Looks up a localized string similar to gencurrency gc. /// public static string gencurrency_text { get { @@ -2616,7 +2616,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to getlink. + /// Looks up a localized string similar to getlink gl. /// public static string getlink_text { get { @@ -2670,7 +2670,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to google. + /// Looks up a localized string similar to google g. /// public static string google_text { get { @@ -2859,7 +2859,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to readme. + /// Looks up a localized string similar to readme guide. /// public static string guide_text { get { @@ -2886,7 +2886,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to h. + /// Looks up a localized string similar to h help. /// public static string h_text { get { @@ -3075,7 +3075,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to hitbox. + /// Looks up a localized string similar to hitbox hb. /// public static string hitbox_text { get { @@ -3156,7 +3156,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to i. + /// Looks up a localized string similar to img i. /// public static string i_text { get { @@ -3210,7 +3210,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to iamnot. + /// Looks up a localized string similar to iamnot iamn. /// public static string iamnot_text { get { @@ -3345,7 +3345,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to joinrace. + /// Looks up a localized string similar to joinrace jr. /// public static string joinrace_text { get { @@ -3372,7 +3372,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to kick. + /// Looks up a localized string similar to kick k. /// public static string kick_text { get { @@ -3426,7 +3426,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to leaderboard. + /// Looks up a localized string similar to leaderboard lb. /// public static string leaderboard_text { get { @@ -3534,7 +3534,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to listallincidents. + /// Looks up a localized string similar to listallincidents lain. /// public static string listallincidents_text { get { @@ -3561,7 +3561,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to listcustreact. + /// Looks up a localized string similar to listcustreact lcr. /// public static string listcustreact_text { get { @@ -3588,7 +3588,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to listincidents. + /// Looks up a localized string similar to listincidents lin. /// public static string listincidents_text { get { @@ -3615,7 +3615,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to listplaying. + /// Looks up a localized string similar to listplaying lipl. /// public static string listplaying_text { get { @@ -3642,7 +3642,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to listqueue. + /// Looks up a localized string similar to listqueue lq. /// public static string listqueue_text { get { @@ -3669,7 +3669,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to lists. + /// Looks up a localized string similar to lists list. /// public static string lists_text { get { @@ -3696,7 +3696,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to liststreams. + /// Looks up a localized string similar to liststreams ls. /// public static string liststreams_text { get { @@ -3723,7 +3723,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to listwar. + /// Looks up a localized string similar to listwar lw. /// public static string listwar_text { get { @@ -3804,7 +3804,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to local. + /// Looks up a localized string similar to local lo. /// public static string local_text { get { @@ -3831,7 +3831,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to localplaylst. + /// Looks up a localized string similar to localplaylst lopl. /// public static string localpl_text { get { @@ -3993,7 +3993,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to lstfilterwords. + /// Looks up a localized string similar to lstfilterwords lfw. /// public static string lstfilterwords_text { get { @@ -4020,7 +4020,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to magicitem. + /// Looks up a localized string similar to magicitem mi. /// public static string magicitem_text { get { @@ -4031,27 +4031,27 @@ namespace NadekoBot.Resources { /// /// Looks up a localized string similar to Queries anilist for a manga and shows the first result.. /// - public static string mang_desc { + public static string manga_desc { get { - return ResourceManager.GetString("mang_desc", resourceCulture); + return ResourceManager.GetString("manga_desc", resourceCulture); } } /// /// Looks up a localized string similar to `~mq Shingeki no kyojin`. /// - public static string mang_summary { + public static string manga_summary { get { - return ResourceManager.GetString("mang_summary", resourceCulture); + return ResourceManager.GetString("manga_summary", resourceCulture); } } /// - /// Looks up a localized string similar to mang. + /// Looks up a localized string similar to manga mang mq. /// - public static string mang_text { + public static string manga_text { get { - return ResourceManager.GetString("mang_text", resourceCulture); + return ResourceManager.GetString("manga_text", resourceCulture); } } @@ -4155,7 +4155,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to mentionrole. + /// Looks up a localized string similar to mentionrole menro. /// public static string mentionrole_text { get { @@ -4209,7 +4209,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to move. + /// Looks up a localized string similar to move mv. /// public static string move_text { get { @@ -4236,7 +4236,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to movelist. + /// Looks up a localized string similar to movelist ml. /// public static string movelist_text { get { @@ -4263,7 +4263,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to movesong. + /// Looks up a localized string similar to movesong ms. /// public static string movesong_text { get { @@ -4290,7 +4290,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to mute. + /// Looks up a localized string similar to mute min. /// public static string mute_text { get { @@ -4317,7 +4317,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to newavatar. + /// Looks up a localized string similar to newavatar setavatar. /// public static string newavatar_text { get { @@ -4344,7 +4344,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to next. + /// Looks up a localized string similar to next n. /// public static string next_text { get { @@ -4371,7 +4371,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to nowplaying. + /// Looks up a localized string similar to nowplaying np. /// public static string nowplaying_text { get { @@ -4506,7 +4506,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to pause. + /// Looks up a localized string similar to pause p. /// public static string pause_text { get { @@ -4533,7 +4533,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to permrole. + /// Looks up a localized string similar to permrole pr. /// public static string permrole_text { get { @@ -4614,7 +4614,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to playlist. + /// Looks up a localized string similar to playlist pl. /// public static string playlist_text { get { @@ -4641,7 +4641,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to playlists. + /// Looks up a localized string similar to playlists pls. /// public static string playlists_text { get { @@ -4668,7 +4668,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to pokemon. + /// Looks up a localized string similar to pokemon poke. /// public static string pokemon_text { get { @@ -4695,7 +4695,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to pokemonability. + /// Looks up a localized string similar to pokemonability pokeab. /// public static string pokemonability_text { get { @@ -4776,7 +4776,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to prune. + /// Looks up a localized string similar to prune clr. /// public static string prune_text { get { @@ -4803,7 +4803,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to queue. + /// Looks up a localized string similar to queue q yq. /// public static string queue_text { get { @@ -4857,7 +4857,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to radio. + /// Looks up a localized string similar to radio ra. /// public static string radio_text { get { @@ -4911,7 +4911,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to randjoke. + /// Looks up a localized string similar to randjoke rj. /// public static string randjoke_text { get { @@ -4938,7 +4938,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to randomcat. + /// Looks up a localized string similar to randomcat meow. /// public static string randomcat_text { get { @@ -4965,7 +4965,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to randomdog. + /// Looks up a localized string similar to randomdog woof. /// public static string randomdog_text { get { @@ -5046,7 +5046,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to remove. + /// Looks up a localized string similar to remove rm. /// public static string remove_text { get { @@ -5073,7 +5073,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to removeallroles. + /// Looks up a localized string similar to removeallroles rar. /// public static string removeallroles_text { get { @@ -5100,7 +5100,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to removeplaying. + /// Looks up a localized string similar to removeplaying rmlp repl. /// public static string removeplaying_text { get { @@ -5127,7 +5127,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to removerole. + /// Looks up a localized string similar to removerole rr. /// public static string removerole_text { get { @@ -5154,7 +5154,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to removestream. + /// Looks up a localized string similar to removestream rms. /// public static string removestream_text { get { @@ -5181,7 +5181,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to renamerole. + /// Looks up a localized string similar to renamerole renr. /// public static string renamerole_text { get { @@ -5235,7 +5235,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to repeatinvoke. + /// Looks up a localized string similar to repeatinvoke repinv. /// public static string repeatinvoke_text { get { @@ -5262,7 +5262,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rpeatplaylst. + /// Looks up a localized string similar to rpeatplaylst rpl. /// public static string repeatpl_text { get { @@ -5289,7 +5289,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to reptcursong. + /// Looks up a localized string similar to reptcursong rcs. /// public static string reptcursong_text { get { @@ -5361,7 +5361,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to `~revav Image link`. + /// Looks up a localized string similar to `~revimg Image link`. /// public static string revimg_summary { get { @@ -5424,7 +5424,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rmvfilterword. + /// Looks up a localized string similar to rmvfilterword rw. /// public static string rmvfilterword_text { get { @@ -5451,7 +5451,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rolecmd. + /// Looks up a localized string similar to rolecmd rc. /// public static string rolecmd_text { get { @@ -5478,7 +5478,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rolecolor. + /// Looks up a localized string similar to rolecolor rc. /// public static string rolecolor_text { get { @@ -5505,7 +5505,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rolemdl. + /// Looks up a localized string similar to rolemdl rm. /// public static string rolemdl_text { get { @@ -5532,7 +5532,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to roleperms. + /// Looks up a localized string similar to roleperms rp. /// public static string roleperms_text { get { @@ -5559,7 +5559,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rolepermscopy. + /// Looks up a localized string similar to rolepermscopy rpc. /// public static string rolepermscopy_text { get { @@ -5667,7 +5667,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to rotateplaying. + /// Looks up a localized string similar to rotateplaying ropl. /// public static string rotateplaying_text { get { @@ -5937,7 +5937,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to serverid. + /// Looks up a localized string similar to serverid sid. /// public static string serverid_text { get { @@ -5964,7 +5964,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to serverinfo. + /// Looks up a localized string similar to serverinfo sinfo. /// public static string serverinfo_text { get { @@ -5991,7 +5991,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to setchanlname. + /// Looks up a localized string similar to setchanlname schn. /// public static string setchanlname_text { get { @@ -6045,7 +6045,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to setmaxqueue. + /// Looks up a localized string similar to setmaxqueue smq. /// public static string setmaxqueue_text { get { @@ -6072,7 +6072,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to setname. + /// Looks up a localized string similar to setname newnm. /// public static string setname_text { get { @@ -6099,7 +6099,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to setrole. + /// Looks up a localized string similar to setrole sr. /// public static string setrole_text { get { @@ -6126,7 +6126,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to settopic. + /// Looks up a localized string similar to settopic st. /// public static string settopic_text { get { @@ -6180,7 +6180,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to showcustreact. + /// Looks up a localized string similar to showcustreact scr. /// public static string showcustreact_text { get { @@ -6234,7 +6234,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to shuffle. + /// Looks up a localized string similar to shuffle sh. /// public static string shuffle_text { get { @@ -6288,7 +6288,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to softban. + /// Looks up a localized string similar to softban sb. /// public static string softban_text { get { @@ -6315,7 +6315,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to soundcloudpl. + /// Looks up a localized string similar to soundcloudpl scpl. /// public static string soundcloudpl_text { get { @@ -6342,7 +6342,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to soundcloudqueue. + /// Looks up a localized string similar to soundcloudqueue sq. /// public static string soundcloudqueue_text { get { @@ -6396,7 +6396,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to srvrcmd. + /// Looks up a localized string similar to srvrcmd sc. /// public static string srvrcmd_text { get { @@ -6423,7 +6423,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to srvrfilterinv. + /// Looks up a localized string similar to srvrfilterinv sfi. /// public static string srvrfilterinv_text { get { @@ -6450,7 +6450,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to srvrfilterwords. + /// Looks up a localized string similar to srvrfilterwords sfw. /// public static string srvrfilterwords_text { get { @@ -6477,7 +6477,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to srvrmdl. + /// Looks up a localized string similar to srvrmdl sm. /// public static string srvrmdl_text { get { @@ -6504,7 +6504,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to srvrperms. + /// Looks up a localized string similar to srvrperms sp. /// public static string srvrperms_text { get { @@ -6531,7 +6531,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to startwar. + /// Looks up a localized string similar to startwar sw. /// public static string startwar_text { get { @@ -6585,7 +6585,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to stop. + /// Looks up a localized string similar to stop s. /// public static string stop_text { get { @@ -6612,7 +6612,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to t. + /// Looks up a localized string similar to trivia t. /// public static string t_text { get { @@ -6666,7 +6666,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to tesar. + /// Looks up a localized string similar to togglexclsar tesar. /// public static string tesar_text { get { @@ -6774,7 +6774,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to translate. + /// Looks up a localized string similar to translate trans. /// public static string translate_text { get { @@ -6801,7 +6801,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to twitch. + /// Looks up a localized string similar to twitch tw. /// public static string twitch_text { get { @@ -6944,33 +6944,6 @@ namespace NadekoBot.Resources { } } - /// - /// Looks up a localized string similar to Searches Urban Dictionary for a word.. - /// - public static string ud_desc { - get { - return ResourceManager.GetString("ud_desc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to `~ud Pineapple`. - /// - public static string ud_summary { - get { - return ResourceManager.GetString("ud_summary", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ud. - /// - public static string ud_text { - get { - return ResourceManager.GetString("ud_text", resourceCulture); - } - } - /// /// Looks up a localized string similar to Unbinds a bot from the channel and board. **Bot Owner Only!**. /// @@ -7017,7 +6990,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to unclaim. + /// Looks up a localized string similar to unclaim ucall uc. /// public static string unclaim_text { get { @@ -7044,7 +7017,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to undeafen. + /// Looks up a localized string similar to undeafen undef. /// public static string undeafen_text { get { @@ -7106,6 +7079,33 @@ namespace NadekoBot.Resources { } } + /// + /// Looks up a localized string similar to Searches Urban Dictionary for a word.. + /// + public static string urbandict_desc { + get { + return ResourceManager.GetString("urbandict_desc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to `~ud Pineapple`. + /// + public static string urbandict_summary { + get { + return ResourceManager.GetString("urbandict_summary", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to urbandict ud. + /// + public static string urbandict_text { + get { + return ResourceManager.GetString("urbandict_text", resourceCulture); + } + } + /// /// Looks up a localized string similar to Shows user ID.. /// @@ -7125,7 +7125,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to userid. + /// Looks up a localized string similar to userid uid. /// public static string userid_text { get { @@ -7152,7 +7152,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to userinfo. + /// Looks up a localized string similar to userinfo uinfo. /// public static string userinfo_text { get { @@ -7179,7 +7179,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to userperms. + /// Looks up a localized string similar to userperms up. /// public static string userperms_text { get { @@ -7233,7 +7233,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to usrcmd. + /// Looks up a localized string similar to usrcmd uc. /// public static string usrcmd_text { get { @@ -7260,7 +7260,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to usrmdl. + /// Looks up a localized string similar to usrmdl um. /// public static string usrmdl_text { get { @@ -7287,7 +7287,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to usrpermscopy. + /// Looks up a localized string similar to usrpermscopy upc. /// public static string usrpermscopy_text { get { @@ -7341,7 +7341,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to verbose. + /// Looks up a localized string similar to verbose v. /// public static string verbose_text { get { @@ -7395,7 +7395,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to voiceplustext. + /// Looks up a localized string similar to voice+text v+t. /// public static string voiceplustext_text { get { @@ -7449,7 +7449,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to volume. + /// Looks up a localized string similar to volume vol. /// public static string volume_text { get { @@ -7476,7 +7476,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to we. + /// Looks up a localized string similar to weather we. /// public static string weather_text { get { @@ -7530,7 +7530,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to wiki. + /// Looks up a localized string similar to wikipedia wiki. /// public static string wiki_text { get { @@ -7584,7 +7584,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to yomama. + /// Looks up a localized string similar to yomama ym. /// public static string yomama_text { get { @@ -7611,7 +7611,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to yt. + /// Looks up a localized string similar to youtube yt. /// public static string youtube_text { get { diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx index d18d35b8..0a629b84 100644 --- a/src/NadekoBot/Resources/CommandStrings.resx +++ b/src/NadekoBot/Resources/CommandStrings.resx @@ -118,7 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - h + h help Either shows a help for a single command, or PMs you help link if no arguments are specified. @@ -271,7 +271,7 @@ `.voicerpresence` - repeatinvoke + repeatinvoke repinv Immediately shows the repeat message and restarts the timer. **Needs Manage Messages Permissions.** @@ -289,7 +289,7 @@ `.repeat 5 Hello there` - rotateplaying + rotateplaying ropl Toggles rotation of playing status of the dynamic strings you specified earlier. **Bot Owner Only!** @@ -298,7 +298,7 @@ `.ropl` - addplaying + addplaying adpl Adds a specified string to the list of playing strings to rotate. Supported placeholders: %servers%, %users%, %playing%, %queued%, %trivia% **Bot Owner Only!** @@ -307,7 +307,7 @@ `.adpl` - listplaying + listplaying lipl Lists all playing statuses with their corresponding number. **Bot Owner Only!** @@ -316,7 +316,7 @@ `.lipl` - removeplaying + removeplaying rmlp repl Removes a playing string on a given number. **Bot Owner Only!** @@ -334,7 +334,7 @@ `.slowmode` - cleanvplust + cleanvplust cv+t Deletes all text channels ending in `-voice` for which voicechannels are not found. **Use at your own risk. Needs Manage Roles and Manage Channels Permissions.** @@ -343,7 +343,7 @@ `.cleanv+t` - voiceplustext + voice+text v+t Creates a text channel for each voice channel only users in that voice channel can see.If you are server owner, keep in mind you will see them all the time regardless. **Needs Manage Roles and Manage Channels Permissions.** @@ -406,7 +406,7 @@ `.lsar` - tesar + togglexclsar tesar toggle whether the self-assigned roles should be exclusive @@ -424,7 +424,7 @@ `.iam Gamer` - iamnot + iamnot iamn Removes a role to you that you choose. Role must be on a list of self-assignable roles. @@ -433,7 +433,7 @@ `.iamn Gamer` - addcustreact + addcustreact acr Add a custom reaction. Guide here: <https://github.com/Kwoth/NadekoBot/wiki/Custom-Reactions> **Bot Owner Only!** @@ -442,7 +442,7 @@ `.acr "hello" Hi there %user%` - listcustreact + listcustreact lcr Lists custom reactions (paginated with 30 commands per page). Use 'all' instead of page number to get all custom reactions DM-ed to you. @@ -451,7 +451,7 @@ `.lcr 1` - showcustreact + showcustreact scr Shows all possible responses from a single custom reaction. @@ -460,7 +460,7 @@ `.scr %mention% bb` - editcustreact + editcustreact ecr Edits a custom reaction, arguments are custom reactions name, index to change, and a (multiword) message **Bot Owner Only** @@ -469,7 +469,7 @@ `.ecr "%mention% disguise" 2 Test 123` - delcustreact + delcustreact dcr Deletes a custom reaction with given name (and index). **Bot Owner Only.** @@ -478,7 +478,7 @@ `.dcr index` - autoassignrole + autoassignrole aar Automaticaly assigns a specified role to every user who joins the server. **Needs Manage Roles Permissions.** @@ -496,7 +496,7 @@ `.leave 123123123331` - listincidents + listincidents lin List all UNREAD incidents and flags them as read. **Needs Manage Server Permissions.** @@ -505,7 +505,7 @@ `.lin` - listallincidents + listallincidents lain Sends you a file containing all incidents and flags them as read. **Needs Manage Server Permissions.** @@ -532,7 +532,7 @@ `.restart` - setrole + setrole sr Sets a role for a given user. **Needs Manage Roles Permissions.** @@ -541,7 +541,7 @@ `.sr @User Guest` - removerole + removerole rr Removes a role from a given user. **Needs Manage Roles Permissions.** @@ -550,7 +550,7 @@ `.rr @User Admin` - renamerole + renamerole renr Renames a role. Roles you are renaming must be lower than bot's highest role. **Manage Roles Permissions.** @@ -559,7 +559,7 @@ `.renr "First role" SecondRole` - removeallroles + removeallroles rar Removes all roles from a mentioned user. **Needs Manage Roles Permissions.** @@ -568,7 +568,7 @@ `.rar @User` - createrole + createrole cr Creates a role with a given name. **Needs Manage Roles Permissions.** @@ -577,7 +577,7 @@ `.cr Awesome Role` - rolecolor + rolecolor rc Set a role's color to the hex or 0-255 rgb color value provided. **Needs Manage Roles Permissions.** @@ -586,7 +586,7 @@ `.rc Admin 255 200 100` or `.rc Admin ffba55` - ban + ban b Bans a user by id or name with an optional message. **Needs Ban Permissions.** @@ -595,7 +595,7 @@ `.b "@some Guy" Your behaviour is toxic.` - softban + softban sb Bans and then unbans a user by id or name with an optional message. **Needs Ban Permissions.** @@ -604,7 +604,7 @@ `.sb "@some Guy" Your behaviour is toxic.` - kick + kick k Kicks a mentioned user. **Needs Kick Permissions.** @@ -613,7 +613,7 @@ `.k "@some Guy" Your behaviour is toxic.` - mute + mute min Sets the music volume to 0% @@ -631,7 +631,7 @@ `.unmute "@Someguy"` or `.unmute "@Someguy" "@Someguy"` - deafen + deafen deaf Deafens mentioned user or users. **Needs Deafen Permissions.** @@ -640,7 +640,7 @@ `.deaf "@Someguy"` or `.deaf "@Someguy" "@Someguy"` - undeafen + undeafen undef Undeafens mentioned user or users. **Needs Deafen Permissions.** @@ -649,7 +649,7 @@ `.undef "@Someguy"` or `.undef "@Someguy" "@Someguy"` - delvoichanl + delvoichanl dvch Deletes a voice channel with a given name. **Needs Manage Channel Permissions.** @@ -658,7 +658,7 @@ `.dvch VoiceChannelName` - creatvoichanl + creatvoichanl cvch Creates a new voice channel with a given name. **Needs Manage Channel Permissions.** @@ -667,7 +667,7 @@ `.cvch VoiceChannelName` - deltxtchanl + deltxtchanl dtch Deletes a text channel with a given name. **Needs Manage Channel Permissions.** @@ -676,7 +676,7 @@ `.dtch TextChannelName` - creatxtchanl + creatxtchanl ctch Creates a new text channel with a given name. **Needs Manage Channel Permissions.** @@ -685,7 +685,7 @@ `.ctch TextChannelName` - settopic + settopic st Sets a topic on the current channel. **Needs Manage Channel Permissions.** @@ -694,7 +694,7 @@ `.st My new topic` - setchanlname + setchanlname schn Changed the name of the current channel. **Needs Manage Channel Permissions.** @@ -712,7 +712,7 @@ `.heap` - prune + prune clr `.prune` removes all nadeko's messages in the last 100 messages.`.prune X` removes last X messages from the channel (up to 100)`.prune @Someone` removes all Someone's messages in the last 100 messages.`.prune @Someone X` removes last X 'Someone's' messages in the channel. **Needs Manage Messages Permissions** @@ -730,7 +730,7 @@ `@NadekoBot die` - setname + setname newnm Give the bot a new name. **Bot Owner Only!** @@ -739,7 +739,7 @@ `.newnm BotName` - newavatar + newavatar setavatar Sets a new avatar image for the NadekoBot. Argument is a direct link to an image. **Bot Owner Only!** @@ -766,7 +766,7 @@ `.send sid - mentionrole + mentionrole menro Mentions every person from the provided role or roles (separated by a ',') on this server. Requires you to have mention everyone permission. @@ -838,7 +838,7 @@ `.remindmsg do something else` - serverinfo + serverinfo sinfo Shows info about the server the bot is on. If no channel is supplied, it defaults to current one. @@ -847,7 +847,7 @@ `.sinfo Some Server` - channelinfo + channelinfo cinfo Shows info about the channel. If no channel is supplied, it defaults to current one. @@ -856,7 +856,7 @@ `.cinfo #some-channel` - userinfo + userinfo uinfo Shows info about the user. If no user is supplied, it defaults a user running the command. @@ -910,7 +910,7 @@ `.dysyd` - userid + userid uid Shows user ID. @@ -928,7 +928,7 @@ `.cid` - serverid + serverid sid Shows current server ID. @@ -946,7 +946,7 @@ `.roles` - channeltopic + channeltopic ct Sends current channel's topic as a message. @@ -955,7 +955,7 @@ `.ct` - chnlfilterinv + chnlfilterinv cfi Enables or disables automatic deleting of invites on the channel.If no channel supplied, it will default to current one. Use ALL to apply to all existing channels at once. @@ -964,7 +964,7 @@ `;cfi enable #general-chat` - srvrfilterinv + srvrfilterinv sfi Enables or disables automatic deleting of invites on the server. @@ -973,7 +973,7 @@ `;sfi disable` - chnlfilterwords + chnlfilterwords cfw Enables or disables automatic deleting of messages containing banned words on the channel.If no channel supplied, it will default to current one. Use ALL to apply to all existing channels at once. @@ -982,7 +982,7 @@ `;cfw enable #general-chat` - addfilterword + addfilterword afw Adds a new word to the list of filtered words @@ -991,7 +991,7 @@ `;afw poop` - rmvfilterword + rmvfilterword rw Removes the word from the list of filtered words @@ -1000,7 +1000,7 @@ `;rw poop` - lstfilterwords + lstfilterwords lfw Shows a list of filtered words @@ -1009,7 +1009,7 @@ `;lfw` - srvrfilterwords + srvrfilterwords sfw Enables or disables automatic deleting of messages containing forbidden words on the server. @@ -1018,7 +1018,7 @@ `;sfw disable` - permrole + permrole pr Sets a role which can change permissions. Or supply no parameters to find out the current one. Default one is 'Nadeko'. @@ -1027,7 +1027,7 @@ `;pr role` - rolepermscopy + rolepermscopy rpc Copies BOT PERMISSIONS (not discord permissions) from one role to another. @@ -1036,7 +1036,7 @@ `;rpc Some Role ~ Some other role` - chnlpermscopy + chnlpermscopy cpc Copies BOT PERMISSIONS (not discord permissions) from one channel to another. @@ -1045,7 +1045,7 @@ `;cpc Some Channel ~ Some other channel` - usrpermscopy + usrpermscopy upc Copies BOT PERMISSIONS (not discord permissions) from one role to another. @@ -1054,7 +1054,7 @@ `;upc @SomeUser ~ @SomeOtherUser` - verbose + verbose v Sets whether to show when a command/module is blocked. @@ -1063,7 +1063,7 @@ `;verbose true` - srvrperms + srvrperms sp Shows banned permissions for this server. @@ -1072,7 +1072,7 @@ `;sp` - roleperms + roleperms rp Shows banned permissions for a certain role. No argument means for everyone. @@ -1081,7 +1081,7 @@ `;rp AwesomeRole` - chnlperms + chnlperms cp Shows banned permissions for a certain channel. No argument means for this channel. @@ -1090,7 +1090,7 @@ `;cp #dev` - userperms + userperms up Shows banned permissions for a certain user. No argument means for yourself. @@ -1099,7 +1099,7 @@ `;up Kwoth` - srvrmdl + srvrmdl sm Sets a module's permission at the server level. @@ -1108,7 +1108,7 @@ `;sm "module name" enable` - srvrcmd + srvrcmd sc Sets a command's permission at the server level. @@ -1117,7 +1117,7 @@ `;sc "command name" disable` - rolemdl + rolemdl rm Sets a module's permission at the role level. @@ -1126,7 +1126,7 @@ `;rm "module name" enable MyRole` - rolecmd + rolecmd rc Sets a command's permission at the role level. @@ -1135,7 +1135,7 @@ `;rc "command name" disable MyRole` - chnlmdl + chnlmdl cm Sets a module's permission at the channel level. @@ -1144,7 +1144,7 @@ `;cm "module name" enable SomeChannel` - chnlcmd + chnlcmd cc Sets a command's permission at the channel level. @@ -1153,7 +1153,7 @@ `;cc "command name" enable SomeChannel` - usrmdl + usrmdl um Sets a module's permission at the user level. @@ -1162,7 +1162,7 @@ `;um "module name" enable SomeUsername` - usrcmd + usrcmd uc Sets a command's permission at the user level. @@ -1171,7 +1171,7 @@ `;uc "command name" enable SomeUsername` - allsrvrmdls + allsrvrmdls asm Sets permissions for all modules at the server level. @@ -1180,7 +1180,7 @@ `;asm [enable/disable]` - allsrvrcmds + allsrvrcmds asc Sets permissions for all commands from a certain module at the server level. @@ -1189,7 +1189,7 @@ `;asc "module name" [enable/disable]` - allchnlmdls + allchnlmdls acm Sets permissions for all modules at the channel level. @@ -1198,7 +1198,7 @@ `;acm [enable/disable] SomeChannel` - allchnlcmds + allchnlcmds acc Sets permissions for all commands from a certain module at the channel level. @@ -1207,7 +1207,7 @@ `;acc "module name" [enable/disable] SomeChannel` - allrolemdls + allrolemdls arm Sets permissions for all modules at the role level. @@ -1216,7 +1216,7 @@ `;arm [enable/disable] MyRole` - allrolecmds + allrolecmds acmdcds Sets permissions for all commands from a certain module at the role level. @@ -1270,7 +1270,7 @@ `;sbl [servername/serverid]` - cmdcooldown + cmdcooldown cmdcd Sets a cooldown per user for a command. Set 0 to clear. **Needs Manager Messages Permissions** @@ -1306,7 +1306,7 @@ `... abc` - deletequote + deletequote delq Deletes all quotes with the specified keyword. You have to either be bot owner or the creator of the quote to delete it. @@ -1359,15 +1359,6 @@ `@NadekoBot dump` - - ab - - - Try to get 'abalabahaha' - - - `@NadekoBot ab` - draw @@ -1378,7 +1369,7 @@ `$draw [x]` - shuffle + shuffle sh Shuffles the current playlist. @@ -1396,7 +1387,7 @@ `$flip` or `$flip 3` - betflip + betflip bf Bet to guess will the result be heads or tails. Guessing award you double flowers you've bet. @@ -1441,7 +1432,7 @@ `$race` - joinrace + joinrace jr Joins a new race. You can specify an amount of flowers for betting (optional). You will get YourBet*(participants-1) back if you win. @@ -1486,7 +1477,7 @@ `$take 1 "@someguy"` - betroll + betroll br Bets a certain amount of NadekoFlowers and rolls a dice. Rolling over 66 yields x2 flowers, over 90 - x3 and 100 x10. @@ -1495,7 +1486,7 @@ `$br 5` - leaderboard + leaderboard lb Displays bot currency leaderboard @@ -1504,7 +1495,7 @@ `$lb` - t + trivia t Starts a game of trivia. You can add nohint to prevent hints.First player to get to 10 points wins by default. You can specify a different number. 30 seconds per question. @@ -1594,7 +1585,7 @@ `>plant` - gencurrency + gencurrency gc Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a NadekoFlower. Optional parameter cooldown time in minutes, 5 minutes by default. Requires Manage Messages permission. @@ -1648,7 +1639,7 @@ `>linux Spyware Windows` - next + next n Goes to the next song in the queue. You have to be in the same voice channel as the bot. @@ -1657,7 +1648,7 @@ `!!n` - stop + stop s Stops the music and clears the playlist. Stays in the channel. @@ -1666,7 +1657,7 @@ `!!s` - destroy + destroy d Completely stops the music and unbinds the bot from the channel. (may cause weird behaviour) @@ -1675,7 +1666,7 @@ `!!d` - pause + pause p Pauses or Unpauses the song. @@ -1684,7 +1675,7 @@ `!!p` - queue + queue q yq Queue a song using keywords or a link. Bot will join your voice channel.**You must be in a voice channel**. @@ -1693,7 +1684,7 @@ `!!q Dream Of Venice` - soundcloudqueue + soundcloudqueue sq Queue a soundcloud song using keywords. Bot will join your voice channel.**You must be in a voice channel**. @@ -1702,7 +1693,7 @@ `!!sq Dream Of Venice` - listqueue + listqueue lq Lists 15 currently queued songs per page. Default page is 1. @@ -1711,7 +1702,7 @@ `!!lq` or `!!lq 2` - nowplaying + nowplaying np Shows the song currently playing. @@ -1720,7 +1711,7 @@ `!!np` - volume + volume vol Sets the music volume 0-100% @@ -1729,7 +1720,7 @@ `!!vol 50` - defvol + defvol dv Sets the default music volume when music playback is started (0-100). Persists through restarts. @@ -1756,7 +1747,7 @@ `!!half` - playlist + playlist pl Queues up to 500 songs from a youtube playlist specified by a link, or keywords. @@ -1765,7 +1756,7 @@ `!!pl playlist link or name` - soundcloudpl + soundcloudpl scpl Queue a soundcloud playlist using a link. @@ -1774,7 +1765,7 @@ `!!scpl soundcloudseturl` - localplaylst + localplaylst lopl Queues all songs from a directory. **Bot Owner Only!** @@ -1783,7 +1774,7 @@ `!!lopl C:/music/classical` - radio + radio ra Queues a radio stream from a link. It can be a direct mp3 radio stream, .m3u, .pls .asx or .xspf (Usage Video: <https://streamable.com/al54>) @@ -1792,7 +1783,7 @@ `!!ra radio link here` - local + local lo Queues a local file by specifying a full path. **Bot Owner Only!** @@ -1801,7 +1792,7 @@ `!!lo C:/music/mysong.mp3` - move + move mv Moves the bot to your voice channel. (works only if music is already playing) @@ -1810,7 +1801,7 @@ `!!mv` - remove + remove rm Remove a song by its # in the queue, or 'all' to remove whole queue. @@ -1819,7 +1810,7 @@ `!!rm 5` - movesong + movesong ms Moves a song from one position to another. @@ -1828,7 +1819,7 @@ `!! ms 5>3` - setmaxqueue + setmaxqueue smq Sets a maximum queue size. Supply 0 or no argument to have no limit. @@ -1846,7 +1837,7 @@ `!!cleanup` - reptcursong + reptcursong rcs Toggles repeat of current song. @@ -1855,7 +1846,7 @@ `!!rcs` - rpeatplaylst + rpeatplaylst rpl Toggles repeat of all songs in the queue (every song that finishes is added to the end of the queue). @@ -1882,7 +1873,7 @@ `!!load classical-1` - playlists + playlists pls Lists all playlists. Paginated. 20 per page. Default page is 0. @@ -1891,7 +1882,7 @@ `!!pls 1` - deleteplaylist + deleteplaylist delpls Deletes a saved playlist. Only if you made it or if you are the bot owner. @@ -1909,7 +1900,7 @@ `!!goto 30` - getlink + getlink gl Shows a link to the song in the queue by index, or the currently playing song by default. @@ -1918,7 +1909,7 @@ `!!gl` - autoplay + autoplay ap Toggles autoplay - When the song is finished, automatically queue a related youtube song. (Works only for youtube songs and when queue is empty) @@ -1945,7 +1936,7 @@ `~lolban` - hitbox + hitbox hb Notifies this channel when a certain user starts streaming. @@ -1954,7 +1945,7 @@ `~hitbox SomeStreamer` - twitch + twitch tw Notifies this channel when a certain user starts streaming. @@ -1963,7 +1954,7 @@ `~twitch SomeStreamer` - beam + beam bm Notifies this channel when a certain user starts streaming. @@ -1972,7 +1963,7 @@ `~beam SomeStreamer` - checkhitbox + checkhitbox chhb Checks if a certain user is streaming on the hitbox platform. @@ -1981,7 +1972,7 @@ `~chhb SomeStreamer` - checktwitch + checktwitch chtw Checks if a certain user is streaming on the twitch platform. @@ -1990,7 +1981,7 @@ `~chtw SomeStreamer` - checkbeam + checkbeam chbm Checks if a certain user is streaming on the beam platform. @@ -1999,7 +1990,7 @@ `~chbm SomeStreamer` - removestream + removestream rms Removes notifications of a certain streamer on this channel. @@ -2008,7 +1999,7 @@ `~rms SomeGuy` - liststreams + liststreams ls Lists all streams you are following on this server. @@ -2044,7 +2035,7 @@ `~wowjoke` - calculate + calculate calc Evaluate a mathematical expression. @@ -2080,7 +2071,7 @@ `~osu top5 Name` - pokemon + pokemon poke Searches for a pokemon. @@ -2089,7 +2080,7 @@ `~poke Sylveon` - pokemonability + pokemonability pokeab Searches for a pokemon ability. @@ -2116,7 +2107,7 @@ `~memegen biw "gets iced coffee" "in the winter"` - we + weather we Shows weather data for a specified city and a country. BOTH ARE REQUIRED. Use country abbrevations. @@ -2125,7 +2116,7 @@ `~we Moscow RF` - yt + youtube yt Searches youtubes and shows the first result @@ -2134,7 +2125,7 @@ `~yt query` - ani + ani anime aq Queries anilist for an anime and shows the first result. @@ -2151,17 +2142,17 @@ `~imdb Batman vs Superman` - - mang + + manga mang mq - + Queries anilist for a manga and shows the first result. - + `~mq Shingeki no kyojin` - randomcat + randomcat meow Shows a random cat image. @@ -2170,7 +2161,7 @@ `~meow` - randomdog + randomdog woof Shows a random dog image. @@ -2179,7 +2170,7 @@ `~woof` - i + img i Pulls the first image found using a search parameter. Use ~ir for different results. @@ -2206,7 +2197,7 @@ `~lmgtfy query` - google + google g Get a google search link for some terms. @@ -2223,13 +2214,13 @@ `~hs Ysera` - - ud + + urbandict ud - + Searches Urban Dictionary for a word. - + `~ud Pineapple` @@ -2251,7 +2242,7 @@ `~catfact` - yomama + yomama ym Shows a random joke from <http://api.yomomma.info/> @@ -2260,7 +2251,7 @@ `~ym` - randjoke + randjoke rj Shows a random joke from <http://tambal.azurewebsites.net/joke/random> @@ -2269,7 +2260,7 @@ `~rj` - chucknorris + chucknorris cn Shows a random chucknorris joke from <http://tambal.azurewebsites.net/joke/random> @@ -2278,7 +2269,7 @@ `~cn` - magicitem + magicitem mi Shows a random magicitem from <https://1d4chan.org/wiki/List_of_/tg/%27s_magic_items> @@ -2302,7 +2293,7 @@ Returns a google reverse image search for an image from a link. - `~revav Image link` + `~revimg Image link` safebooru @@ -2314,7 +2305,7 @@ `~safebooru yuri+kissing` - wiki + wikipedia wiki Gives you back a wikipedia link @@ -2323,7 +2314,7 @@ `~wiki query` - clr + clr prune Shows you what color corresponds to that hex. @@ -2341,7 +2332,7 @@ `~videocall "@SomeGuy"` - av + av avatar Shows a mentioned person's avatar. @@ -2413,7 +2404,7 @@ `~boobs` - butts + butts ass butt Real adult content. @@ -2422,7 +2413,7 @@ `~butts` or `~ass` - createwar + createwar cw Creates a new war by specifying a size (>10 and multiple of 5) and enemy clan name. @@ -2431,7 +2422,7 @@ `,cw 15 The Enemy Clan` - startwar + startwar sw Starts a war with a given number. @@ -2440,7 +2431,7 @@ `,sw 15` - listwar + listwar lw Shows the active war claims by a number. Shows all wars in a short way if no number is specified. @@ -2449,7 +2440,7 @@ `,lw [war_number] or ,lw` - claim + claim call c Claims a certain base from a certain war. You can supply a name in the third optional argument to claim in someone else's place. @@ -2458,7 +2449,7 @@ `,call [war_number] [base_number] [optional_other_name]` - claimfinish + claimfinish cf cf3 claimfinish3 Finish your claim with 3 stars if you destroyed a base. Optional second argument finishes for someone else. @@ -2467,7 +2458,7 @@ `,cf [war_number] [optional_other_name]` - claimfinish2 + claimfinish2 cf2 Finish your claim with 2 stars if you destroyed a base. Optional second argument finishes for someone else. @@ -2476,7 +2467,7 @@ `,cf [war_number] [optional_other_name]` - claimfinish1 + claimfinish1 cf1 Finish your claim with 1 stars if you destroyed a base. Optional second argument finishes for someone else. @@ -2485,7 +2476,7 @@ `,cf [war_number] [optional_other_name]` - unclaim + unclaim ucall uc Removes your claim from a certain war. Optional second argument denotes a person in whose place to unclaim @@ -2494,7 +2485,7 @@ `,uc [war_number] [optional_other_name]` - endwar + endwar ew Ends the war with a given index. @@ -2512,7 +2503,7 @@ `>attack "vine whip" @someguy` - movelist + movelist ml Lists the moves you are able to use @@ -2548,7 +2539,7 @@ `>settype fire` - translate + translate trans Translates from>to text. From the given language to the destiation language. @@ -2584,7 +2575,7 @@ `trello unbind` - lists + lists list Lists all lists, yo ;) **Bot Owner Only!** @@ -2608,7 +2599,7 @@ `-readme` or `-guide` - readme + readme guide Shows all available operations in .calc command @@ -2626,7 +2617,7 @@ `.delallq` - delallq + delallq daq greetdmmsg @@ -2637,4 +2628,13 @@ Sets a new join announcement message which will be sent to the user who joined. Type %user% if you want to mention the new member. Using it with no message will show the current DM greet message. **Needs Manage Server Permissions.** + + Check how much NadekoFlowers a person has. (Defaults to yourself) + + + `$$$` or `$$$ @SomeGuy` + + + $$$ + \ No newline at end of file