Remove command categories
This commit is contained in:
parent
3fa4115502
commit
37ac7f56a8
40 changed files with 1 additions and 87 deletions
|
@ -30,7 +30,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("welcome", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Set a Welcome Message (use '$user' to mention the new joined user).")]
|
||||
public async Task SetWelcomeMessage([Remainder] [Summary("message")] string welcomeMessage)
|
||||
{
|
||||
|
@ -40,7 +39,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("modchannel", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Set a channel for moderation purposes")]
|
||||
public async Task SelectModChannel([Summary("#Channel")] ISocketMessageChannel channel)
|
||||
{
|
||||
|
@ -61,7 +59,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("showleave", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Notify modchannel when someone leaves")]
|
||||
public async Task ShowLeave([Summary("true/false")] bool enabled)
|
||||
{
|
||||
|
@ -88,7 +85,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("showdel", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Notify modchannel when someone deletes a message")]
|
||||
public async Task ShowDelete([Summary("true/false")] bool enabled)
|
||||
{
|
||||
|
@ -117,7 +113,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("setlang", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Change the bots language")]
|
||||
public async Task SetLanguage([Summary("language")] string languageRaw)
|
||||
{
|
||||
|
@ -142,7 +137,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("wiki", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Change the wikipedia instance (use lang code in xx.wikipedia.org)")]
|
||||
public async Task SetWikiLanguage([Summary("language")] string languageRaw)
|
||||
{
|
||||
|
@ -160,7 +154,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("lang", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Change the bots language")]
|
||||
public async Task GetLanguage()
|
||||
{
|
||||
|
@ -176,7 +169,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("ping", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Enable the ping reply.")]
|
||||
public async Task TogglePing()
|
||||
{
|
||||
|
|
|
@ -32,7 +32,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("namehistory", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("See past usernames of an user")]
|
||||
public async Task UsernameHistory([Summary("@user")] IUser user)
|
||||
{
|
||||
|
@ -52,7 +51,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("kick", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Ban a user")]
|
||||
public async Task Kick([Summary("@user")] IUser userNormal,
|
||||
[Summary("reason")] [Remainder] string reason = "none")
|
||||
|
|
|
@ -52,7 +52,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("youtubekey", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Set the youtube api key")]
|
||||
public async Task SetYoutubeKey([Summary("API Key")] string key)
|
||||
{
|
||||
|
@ -61,7 +60,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("game", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Set the game that the bot is playing")]
|
||||
public async Task SetGame([Remainder] [Summary("Game")] string key)
|
||||
{
|
||||
|
@ -72,7 +70,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("popuserrepo", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Populate user cache")]
|
||||
public async Task PopUserRepoCommand()
|
||||
{
|
||||
|
@ -104,7 +101,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command("error", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Throw an error un purpose")]
|
||||
public void PurposefulError()
|
||||
{
|
||||
|
|
|
@ -27,7 +27,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command(RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Get a list of all available roles.")]
|
||||
public async Task GetAllRoles()
|
||||
{
|
||||
|
@ -53,7 +52,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[Command(RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Get a role by mentioning it.")]
|
||||
public async Task GiveRole([Summary("roleNickname")] string roleNameRaw)
|
||||
{
|
||||
|
@ -97,7 +95,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
|
||||
[RequireUserPermission(GuildPermission.ManageRoles)]
|
||||
[Command("add", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Add a role to the whitelist.")]
|
||||
public async Task AddRole([Summary("@role")] IRole role, [Summary("alias")] string roleName)
|
||||
{
|
||||
|
@ -132,7 +129,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
|
||||
[RequireUserPermission(GuildPermission.ManageRoles)]
|
||||
[Command("remove", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Remove a role from the whitelist.")]
|
||||
public async Task RemoveRole([Summary("roleNickname")] string roleName)
|
||||
{
|
||||
|
@ -156,7 +152,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
}
|
||||
|
||||
[RequireUserPermission(GuildPermission.ManageRoles)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Give a role by clicking on an emoji")]
|
||||
[Command("listen", RunMode = RunMode.Async)]
|
||||
public async Task AddListener([Summary("messageID")] string messageId, [Summary("Emoji")] string emoji, [Summary("@role")] IRole role)
|
||||
|
|
|
@ -18,7 +18,6 @@ namespace Geekbot.net.Commands.Admin
|
|||
|
||||
[RequireUserPermission(GuildPermission.Administrator)]
|
||||
[Command("say", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Admin)]
|
||||
[Summary("Say Something.")]
|
||||
public async Task Echo([Remainder] [Summary("What?")] string echo)
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Games
|
|||
}
|
||||
|
||||
[Command("pokedex", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("A Pokedex Tool")]
|
||||
public async Task GetPokemon([Summary("pokemonName")] string pokemonName)
|
||||
{
|
||||
|
|
|
@ -22,7 +22,6 @@ namespace Geekbot.net.Commands.Games
|
|||
}
|
||||
|
||||
[Command("roll", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Fun)]
|
||||
[Summary("Guess which number the bot will roll (1-100")]
|
||||
public async Task RollCommand([Remainder] [Summary("guess")] string stuff = "noGuess")
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace Geekbot.net.Commands.Integrations.Google
|
|||
}
|
||||
|
||||
[Command("google", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Google Something.")]
|
||||
public async Task AskGoogle([Remainder, Summary("SearchText")] string searchText)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace Geekbot.net.Commands.Integrations
|
|||
}
|
||||
|
||||
[Command("mtg", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Games)]
|
||||
[Summary("Find a Magic The Gathering Card.")]
|
||||
public async Task GetCard([Remainder] [Summary("name")] string cardName)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace Geekbot.net.Commands.Integrations
|
|||
}
|
||||
|
||||
[Command("anime", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Show Info about an Anime.")]
|
||||
public async Task SearchAnime([Remainder] [Summary("AnimeName")] string animeName)
|
||||
{
|
||||
|
@ -70,7 +69,6 @@ namespace Geekbot.net.Commands.Integrations
|
|||
}
|
||||
|
||||
[Command("manga", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Show Info about a Manga.")]
|
||||
public async Task SearchManga([Remainder] [Summary("MangaName")] string mangaName)
|
||||
{
|
||||
|
|
|
@ -20,7 +20,6 @@ namespace Geekbot.net.Commands.Integrations.UbranDictionary
|
|||
}
|
||||
|
||||
[Command("urban", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Lookup something on urban dictionary")]
|
||||
public async Task UrbanDefine([Remainder] [Summary("word")] string word)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,6 @@ namespace Geekbot.net.Commands.Integrations
|
|||
}
|
||||
|
||||
[Command("wiki", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Get an article from wikipedia.")]
|
||||
public async Task GetPreview([Remainder] [Summary("Article")] string articleName)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace Geekbot.net.Commands.Integrations
|
|||
}
|
||||
|
||||
[Command("yt", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Search for something on youtube.")]
|
||||
public async Task Yt([Remainder] [Summary("Title")] string searchQuery)
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Randomness.Cat
|
|||
}
|
||||
|
||||
[Command("cat", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Return a random image of a cat.")]
|
||||
public async Task Say()
|
||||
{
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("checkem", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Check for dubs")]
|
||||
public async Task MuhDubs()
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Randomness.Chuck
|
|||
}
|
||||
|
||||
[Command("chuck", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("A random chuck norris joke")]
|
||||
public async Task Say()
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Randomness.Dad
|
|||
}
|
||||
|
||||
[Command("dad", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("A random dad joke")]
|
||||
public async Task Say()
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Randomness.Dog
|
|||
}
|
||||
|
||||
[Command("dog", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Return a random image of a dog.")]
|
||||
public async Task Say()
|
||||
{
|
||||
|
|
|
@ -17,7 +17,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("8ball", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Ask 8Ball a Question.")]
|
||||
public async Task Ball([Remainder] [Summary("Question")] string echo)
|
||||
{
|
||||
|
|
|
@ -15,7 +15,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("fortune", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random fortune")]
|
||||
public async Task GetAFortune()
|
||||
{
|
||||
|
|
|
@ -17,7 +17,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("gdq", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Games)]
|
||||
[Summary("Get a quote from the GDQ donation generator.")]
|
||||
public async Task GetQuote()
|
||||
{
|
||||
|
|
|
@ -16,7 +16,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("panda", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random panda image")]
|
||||
public async Task Panda()
|
||||
{
|
||||
|
@ -25,7 +24,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
|
||||
[Command("croissant", RunMode = RunMode.Async)]
|
||||
[Alias("gipfeli")]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random croissant image")]
|
||||
public async Task Croissant()
|
||||
{
|
||||
|
@ -33,7 +31,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("pumpkin", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random pumpkin image")]
|
||||
public async Task Pumpkin()
|
||||
{
|
||||
|
@ -41,7 +38,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("squirrel", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random squirrel image")]
|
||||
public async Task Squirrel()
|
||||
{
|
||||
|
@ -49,7 +45,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("turtle", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random turtle image")]
|
||||
public async Task Turtle()
|
||||
{
|
||||
|
@ -58,7 +53,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
|
||||
[Command("pinguin", RunMode = RunMode.Async)]
|
||||
[Alias("pingu")]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random pinguin image")]
|
||||
public async Task Pinguin()
|
||||
{
|
||||
|
@ -66,7 +60,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("fox", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random fox image")]
|
||||
public async Task Fox()
|
||||
{
|
||||
|
|
|
@ -20,7 +20,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("Ship", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Fun)]
|
||||
[Summary("Ask the Shipping meter")]
|
||||
public async Task Command([Summary("@User1")] IUser user1, [Summary("@User2")] IUser user2)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace Geekbot.net.Commands.Randomness
|
|||
}
|
||||
|
||||
[Command("slap", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Fun)]
|
||||
[Summary("slap someone")]
|
||||
public async Task Slapper([Summary("@user")] IUser user)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,6 @@ namespace Geekbot.net.Commands.User
|
|||
}
|
||||
|
||||
[Command("serverstats", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Statistics)]
|
||||
[Summary("Show some info about the bot.")]
|
||||
public async Task GetInfo()
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@ namespace Geekbot.net.Commands.User
|
|||
}
|
||||
|
||||
[Command("good", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Karma)]
|
||||
[Summary("Increase Someones Karma")]
|
||||
public async Task Good([Summary("@someone")] IUser user)
|
||||
{
|
||||
|
@ -74,7 +73,6 @@ namespace Geekbot.net.Commands.User
|
|||
}
|
||||
|
||||
[Command("bad", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Karma)]
|
||||
[Summary("Decrease Someones Karma")]
|
||||
public async Task Bad([Summary("@someone")] IUser user)
|
||||
{
|
||||
|
|
|
@ -36,7 +36,6 @@ namespace Geekbot.net.Commands.User.Ranking
|
|||
}
|
||||
|
||||
[Command("rank", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Statistics)]
|
||||
[Summary("get user top 10 in messages or karma")]
|
||||
public async Task RankCmd([Summary("type")] string typeUnformated = "messages", [Summary("amount")] int amount = 10)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace Geekbot.net.Commands.User
|
|||
}
|
||||
|
||||
[Command("stats", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Statistics)]
|
||||
[Summary("Get information about this user")]
|
||||
public async Task User([Summary("@someone")] IUser user = null)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
}
|
||||
|
||||
[Command("avatar", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Get someones avatar")]
|
||||
public async Task GetAvatar([Remainder] [Summary("user")] IUser user = null)
|
||||
{
|
||||
|
|
|
@ -25,9 +25,7 @@ namespace Geekbot.net.Commands.Utils.Changelog
|
|||
}
|
||||
|
||||
[Command("changelog", RunMode = RunMode.Async)]
|
||||
[Alias("updates")]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Show the latest 5 updates")]
|
||||
[Summary("Show the latest 10 updates")]
|
||||
public async Task GetChangelog()
|
||||
{
|
||||
try
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
}
|
||||
|
||||
[Command("choose", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Let the bot choose for you, seperate options with a semicolon.")]
|
||||
public async Task Command([Remainder] [Summary("option1;option2")]
|
||||
string choices)
|
||||
|
|
|
@ -11,7 +11,6 @@ namespace Geekbot.net.Commands.Utils.Dice
|
|||
public class Dice : ModuleBase
|
||||
{
|
||||
[Command("dice", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Roll a dice.")]
|
||||
public async Task RollCommand([Remainder] [Summary("diceType")] string diceType = "1d20")
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
}
|
||||
|
||||
[Command("emojify", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Emojify text")]
|
||||
public async Task Dflt([Remainder] [Summary("text")] string text)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
}
|
||||
|
||||
[Command("help", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("List all Commands")]
|
||||
public async Task GetHelp()
|
||||
{
|
||||
|
|
|
@ -27,7 +27,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
}
|
||||
|
||||
[Command("info", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Get Information about the bot")]
|
||||
public async Task BotInfo()
|
||||
{
|
||||
|
@ -59,7 +58,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
}
|
||||
|
||||
[Command("uptime", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Get the Bot Uptime")]
|
||||
public async Task BotUptime()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,6 @@ namespace Geekbot.net.Commands.Utils
|
|||
{
|
||||
[Command("👀", RunMode = RunMode.Async)]
|
||||
[Summary("Look at the bot.")]
|
||||
[Remarks(CommandCategories.Fun)]
|
||||
public async Task Eyes()
|
||||
{
|
||||
await ReplyAsync("S... Stop looking at me... baka!");
|
||||
|
|
|
@ -32,7 +32,6 @@ namespace Geekbot.net.Commands.Utils.Poll
|
|||
}
|
||||
|
||||
[Command(RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Check status of the current poll")]
|
||||
public async Task Dflt()
|
||||
{
|
||||
|
@ -55,7 +54,6 @@ namespace Geekbot.net.Commands.Utils.Poll
|
|||
}
|
||||
|
||||
[Command("create", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("Create a poll")]
|
||||
public async Task Create([Remainder] [Summary("question;option1;option2")]
|
||||
string rawPollString)
|
||||
|
@ -113,7 +111,6 @@ namespace Geekbot.net.Commands.Utils.Poll
|
|||
}
|
||||
|
||||
[Command("end", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Helpers)]
|
||||
[Summary("End the current poll")]
|
||||
public async Task End()
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@ namespace Geekbot.net.Commands.Utils.Quote
|
|||
}
|
||||
|
||||
[Command]
|
||||
[Remarks(CommandCategories.Quotes)]
|
||||
[Summary("Return a random quoute from the database")]
|
||||
public async Task GetRandomQuote()
|
||||
{
|
||||
|
@ -53,7 +52,6 @@ namespace Geekbot.net.Commands.Utils.Quote
|
|||
}
|
||||
|
||||
[Command("save")]
|
||||
[Remarks(CommandCategories.Quotes)]
|
||||
[Summary("Save a quote from the last sent message by @user")]
|
||||
public async Task SaveQuote([Summary("@user")] IUser user)
|
||||
{
|
||||
|
@ -89,7 +87,6 @@ namespace Geekbot.net.Commands.Utils.Quote
|
|||
}
|
||||
|
||||
[Command("save")]
|
||||
[Remarks(CommandCategories.Quotes)]
|
||||
[Summary("Save a quote from a message id")]
|
||||
public async Task SaveQuote([Summary("messageId")] ulong messageId)
|
||||
{
|
||||
|
@ -123,7 +120,6 @@ namespace Geekbot.net.Commands.Utils.Quote
|
|||
}
|
||||
|
||||
[Command("make")]
|
||||
[Remarks(CommandCategories.Quotes)]
|
||||
[Summary("Create a quote from the last sent message by @user")]
|
||||
public async Task ReturnSpecifiedQuote([Summary("@user")] IUser user)
|
||||
{
|
||||
|
@ -143,7 +139,6 @@ namespace Geekbot.net.Commands.Utils.Quote
|
|||
}
|
||||
|
||||
[Command("make")]
|
||||
[Remarks(CommandCategories.Quotes)]
|
||||
[Summary("Create a quote from a message id")]
|
||||
public async Task ReturnSpecifiedQuote([Summary("messageId")] ulong messageId)
|
||||
{
|
||||
|
@ -165,7 +160,6 @@ namespace Geekbot.net.Commands.Utils.Quote
|
|||
[RequireUserPermission(GuildPermission.KickMembers)]
|
||||
[RequireUserPermission(GuildPermission.ManageMessages)]
|
||||
[RequireUserPermission(GuildPermission.ManageRoles)]
|
||||
[Remarks(CommandCategories.Quotes)]
|
||||
[Summary("Remove a quote (required mod permissions)")]
|
||||
public async Task RemoveQuote([Summary("quoteId")] int id)
|
||||
{
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
namespace Geekbot.net.Lib
|
||||
{
|
||||
public static class CommandCategories
|
||||
{
|
||||
public const string Randomness = "Randomness";
|
||||
public const string Karma = "Karma";
|
||||
public const string Quotes = "Quotes";
|
||||
public const string Fun = "Fun";
|
||||
public const string Statistics = "Statistics";
|
||||
public const string Helpers = "Helpers";
|
||||
public const string Games = "Games";
|
||||
public const string Admin = "Admin";
|
||||
public const string Uncategorized = "Uncategorized";
|
||||
}
|
||||
}
|
|
@ -28,7 +28,6 @@ namespace Geekbot.net.WebApi.Help
|
|||
{
|
||||
Name = cmd.Name,
|
||||
Summary = cmd.Summary,
|
||||
Category = cmd.Remarks ?? CommandCategories.Uncategorized,
|
||||
IsAdminCommand = (param.Contains("admin")),
|
||||
Aliases = cmd.Aliases.ToArray(),
|
||||
Params = cmdParamsObj
|
||||
|
|
Loading…
Reference in a new issue