- removed unused attributes on commands

- Removed some commented out files
This commit is contained in:
Kwoth
2021-06-21 02:24:11 +02:00
parent 49f9b96755
commit 656db01aca
89 changed files with 569 additions and 2918 deletions

View File

@@ -25,7 +25,7 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[NadekoOptions(typeof(AcrophobiaGame.Options))]
public async Task Acrophobia(params string[] args)

View File

@@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Games
_db = db;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageMessages)]
public async Task Cleverbot()

View File

@@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Games
_httpFactory = factory;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
public async Task Choose([Leftover] string list = null)
{
if (string.IsNullOrWhiteSpace(list))
@@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Games
await ctx.Channel.SendConfirmAsync("🤔", listArr[rng.Next(0, listArr.Length)]).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
public async Task EightBall([Leftover] string question = null)
{
if (string.IsNullOrWhiteSpace(question))
@@ -54,7 +54,7 @@ namespace NadekoBot.Modules.Games
.AddField("🎱 " + GetText("8ball"), res, false));
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task RateGirl([Leftover] IGuildUser usr)
{
@@ -149,7 +149,7 @@ namespace NadekoBot.Modules.Games
return new GirlRating(_images, _httpFactory, crazy, hot, roll, advice);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
public async Task Linux(string guhnoo, string loonix)
{
await ctx.Channel.SendConfirmAsync(

View File

@@ -23,14 +23,14 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Hangmanlist()
{
await ctx.Channel.SendConfirmAsync(Format.Code(GetText("hangman_types", Prefix)) + "\n" + string.Join("\n", _service.TermPool.Data.Keys)).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Hangman([Leftover]string type = "random")
{
@@ -129,7 +129,7 @@ namespace NadekoBot.Modules.Games
footer: string.Join(" ", game.PreviousGuesses));
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task HangmanStop()
{

View File

@@ -21,7 +21,7 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Nunchi()
{

View File

@@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Games
this.logService = logService;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Pick(string pass = null)
{
@@ -52,7 +52,7 @@ namespace NadekoBot.Modules.Games
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Plant(int amount = 1, string pass = null)
{
@@ -78,7 +78,7 @@ namespace NadekoBot.Modules.Games
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageMessages)]
#if GLOBAL_NADEKO
@@ -97,7 +97,7 @@ namespace NadekoBot.Modules.Games
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageMessages)]
[OwnerOnly]

View File

@@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[UserPerm(GuildPerm.ManageMessages)]
[RequireContext(ContextType.Guild)]
public async Task Poll([Leftover] string arg)
@@ -56,7 +56,7 @@ namespace NadekoBot.Modules.Games
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[UserPerm(GuildPerm.ManageMessages)]
[RequireContext(ContextType.Guild)]
public async Task PollStats()
@@ -67,7 +67,7 @@ namespace NadekoBot.Modules.Games
await ctx.Channel.EmbedAsync(GetStats(pr.Poll, GetText("current_poll_results"))).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[UserPerm(GuildPerm.ManageMessages)]
[RequireContext(ContextType.Guild)]
public async Task Pollend()

View File

@@ -27,7 +27,7 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[NadekoOptionsAttribute(typeof(TypingGame.Options))]
public async Task TypeStart(params string[] args)
@@ -50,7 +50,7 @@ namespace NadekoBot.Modules.Games
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task TypeStop()
{
@@ -64,7 +64,7 @@ namespace NadekoBot.Modules.Games
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[OwnerOnly]
public async Task Typeadd([Leftover] string text)
@@ -78,7 +78,7 @@ namespace NadekoBot.Modules.Games
await channel.SendConfirmAsync("Added new article for typing game.").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Typelist(int page = 1)
{
@@ -99,7 +99,7 @@ namespace NadekoBot.Modules.Games
.ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[OwnerOnly]
public async Task Typedel(int index)

View File

@@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[NadekoOptions(typeof(TicTacToe.Options))]
public async Task TicTacToe(params string[] args)

View File

@@ -30,7 +30,7 @@ namespace NadekoBot.Modules.Games
_client = client;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[Priority(0)]
[NadekoOptionsAttribute(typeof(TriviaOptions))]
@@ -67,7 +67,7 @@ namespace NadekoBot.Modules.Games
.ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Tl()
{
@@ -82,7 +82,7 @@ namespace NadekoBot.Modules.Games
await ReplyErrorLocalizedAsync("trivia_none").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Tq()
{