Merge pull request #472 from blitz4694/dev
Added usages for everything and fixed others
This commit is contained in:
commit
3cd7283a57
@ -64,7 +64,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
commands.ForEach(cmd => cmd.Init(cgb));
|
commands.ForEach(cmd => cmd.Init(cgb));
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "delmsgoncmd")
|
cgb.CreateCommand(Prefix + "delmsgoncmd")
|
||||||
.Description("Toggles the automatic deletion of user's successful command message to prevent chat flood. Server Manager Only.")
|
.Description($"Toggles the automatic deletion of user's successful command message to prevent chat flood. Server Manager Only. | `{Prefix}delmsgoncmd`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -79,7 +79,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "restart")
|
cgb.CreateCommand(Prefix + "restart")
|
||||||
.Description("Restarts the bot. Might not work. **Bot Owner Only**")
|
.Description($"Restarts the bot. Might not work. **Bot Owner Only** | `{Prefix}restart`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -617,7 +617,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "heap")
|
cgb.CreateCommand(Prefix + "heap")
|
||||||
.Description("Shows allocated memory - **Bot Owner Only!**")
|
.Description($"Shows allocated memory - **Bot Owner Only!** | `{Prefix}heap`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -628,7 +628,8 @@ namespace NadekoBot.Modules.Administration
|
|||||||
cgb.CreateCommand(Prefix + "prune")
|
cgb.CreateCommand(Prefix + "prune")
|
||||||
.Alias(Prefix + "clr")
|
.Alias(Prefix + "clr")
|
||||||
.Description(
|
.Description(
|
||||||
"`.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. | `.prune` or `.prune 5` or `.prune @Someone` or `.prune @Someone X`")
|
"`.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. "+
|
||||||
|
$"| `{Prefix}prune` or `{Prefix}prune 5` or `{Prefix}prune @Someone` or `{Prefix}prune @Someone X`")
|
||||||
.Parameter("user_or_num", ParameterType.Optional)
|
.Parameter("user_or_num", ParameterType.Optional)
|
||||||
.Parameter("num", ParameterType.Optional)
|
.Parameter("num", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -674,7 +675,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "die")
|
cgb.CreateCommand(Prefix + "die")
|
||||||
.Description("Shuts the bot down and notifies users about the restart. **Bot Owner Only!**")
|
.Description($"Shuts the bot down and notifies users about the restart. **Bot Owner Only!** | `{Prefix}die`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -807,7 +808,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "unstuck")
|
cgb.CreateCommand(Prefix + "unstuck")
|
||||||
.Description("Clears the message queue. **Bot Owner Only!**")
|
.Description($"Clears the message queue. **Bot Owner Only!** | `{Prefix}unstuck`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(e =>
|
.Do(e =>
|
||||||
{
|
{
|
||||||
@ -829,7 +830,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "donadd")
|
cgb.CreateCommand(Prefix + "donadd")
|
||||||
.Description($"Add a donator to the database. | `.donadd Donate Amount`")
|
.Description($"Add a donator to the database. | `{Prefix}donadd Donate Amount`")
|
||||||
.Parameter("donator")
|
.Parameter("donator")
|
||||||
.Parameter("amount")
|
.Parameter("amount")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
|
@ -34,7 +34,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "autoassignrole")
|
cgb.CreateCommand(Module.Prefix + "autoassignrole")
|
||||||
.Alias(Module.Prefix + "aar")
|
.Alias(Module.Prefix + "aar")
|
||||||
.Description($"Automaticaly assigns a specified role to every user who joins the server. Type `.aar` to disable, `.aar Role Name` to enable")
|
.Description($"Automaticaly assigns a specified role to every user who joins the server. Type `{Prefix}aar` to disable, `{Prefix}aar Role Name` to enable")
|
||||||
.Parameter("role", ParameterType.Unparsed)
|
.Parameter("role", ParameterType.Unparsed)
|
||||||
.AddCheck(new SimpleCheckers.ManageRoles())
|
.AddCheck(new SimpleCheckers.ManageRoles())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -65,7 +65,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "scsc")
|
cgb.CreateCommand(Module.Prefix + "scsc")
|
||||||
.Description("Starts an instance of cross server channel. You will get a token as a DM " +
|
.Description("Starts an instance of cross server channel. You will get a token as a DM " +
|
||||||
"that other people will use to tune in to the same instance")
|
$"that other people will use to tune in to the same instance. | `{Prefix}scsc`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -79,7 +79,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "jcsc")
|
cgb.CreateCommand(Module.Prefix + "jcsc")
|
||||||
.Description("Joins current channel to an instance of cross server channel using the token.")
|
.Description($"Joins current channel to an instance of cross server channel using the token. | `{Prefix}jcsc`")
|
||||||
.Parameter("token")
|
.Parameter("token")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -95,7 +95,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "lcsc")
|
cgb.CreateCommand(Module.Prefix + "lcsc")
|
||||||
.Description("Leaves Cross server channel instance from this channel")
|
.Description($"Leaves Cross server channel instance from this channel. | `{Prefix}lcsc`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "addcustreact")
|
cgb.CreateCommand(Prefix + "addcustreact")
|
||||||
.Alias(Prefix + "acr")
|
.Alias(Prefix + "acr")
|
||||||
.Description($"Add a custom reaction. Guide here: <https://github.com/Kwoth/NadekoBot/wiki/Custom-Reactions> **Bot Owner Only!** | {Prefix}acr \"hello\" I love saying hello to %user%")
|
.Description($"Add a custom reaction. Guide here: <https://github.com/Kwoth/NadekoBot/wiki/Custom-Reactions> **Bot Owner Only!** | `{Prefix}acr \"hello\" I love saying hello to %user%`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Parameter("name", ParameterType.Required)
|
.Parameter("name", ParameterType.Required)
|
||||||
.Parameter("message", ParameterType.Unparsed)
|
.Parameter("message", ParameterType.Unparsed)
|
||||||
@ -47,7 +47,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "listcustreact")
|
cgb.CreateCommand(Prefix + "listcustreact")
|
||||||
.Alias(Prefix + "lcr")
|
.Alias(Prefix + "lcr")
|
||||||
.Description($"Lists custom reactions (paginated with 30 commands per page). Use 'all' instead of page number to get all custom reactions DM-ed to you. |{Prefix}lcr 1")
|
.Description($"Lists custom reactions (paginated with 30 commands per page). Use 'all' instead of page number to get all custom reactions DM-ed to you. |`{Prefix}lcr 1`")
|
||||||
.Parameter("num", ParameterType.Required)
|
.Parameter("num", ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "showcustreact")
|
cgb.CreateCommand(Prefix + "showcustreact")
|
||||||
.Alias(Prefix + "scr")
|
.Alias(Prefix + "scr")
|
||||||
.Description($"Shows all possible responses from a single custom reaction. |{Prefix}scr %mention% bb")
|
.Description($"Shows all possible responses from a single custom reaction. |`{Prefix}scr %mention% bb`")
|
||||||
.Parameter("name", ParameterType.Unparsed)
|
.Parameter("name", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "editcustreact")
|
cgb.CreateCommand(Prefix + "editcustreact")
|
||||||
.Alias(Prefix + "ecr")
|
.Alias(Prefix + "ecr")
|
||||||
.Description("Edits a custom reaction, arguments are custom reactions name, index to change, and a (multiword) message **Bot Owner Only** | `.ecr \"%mention% disguise\" 2 Test 123`")
|
.Description($"Edits a custom reaction, arguments are custom reactions name, index to change, and a (multiword) message **Bot Owner Only** | `{Prefix}ecr \"%mention% disguise\" 2 Test 123`")
|
||||||
.Parameter("name", ParameterType.Required)
|
.Parameter("name", ParameterType.Required)
|
||||||
.Parameter("index", ParameterType.Required)
|
.Parameter("index", ParameterType.Required)
|
||||||
.Parameter("message", ParameterType.Unparsed)
|
.Parameter("message", ParameterType.Unparsed)
|
||||||
@ -146,7 +146,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "delcustreact")
|
cgb.CreateCommand(Prefix + "delcustreact")
|
||||||
.Alias(Prefix + "dcr")
|
.Alias(Prefix + "dcr")
|
||||||
.Description("Deletes a custom reaction with given name (and index)")
|
.Description($"Deletes a custom reaction with given name (and index). | `{Prefix}dcr index`")
|
||||||
.Parameter("name", ParameterType.Required)
|
.Parameter("name", ParameterType.Required)
|
||||||
.Parameter("index", ParameterType.Optional)
|
.Parameter("index", ParameterType.Optional)
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
|
@ -14,7 +14,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "listincidents")
|
cgb.CreateCommand(Module.Prefix + "listincidents")
|
||||||
.Alias(Prefix + "lin")
|
.Alias(Prefix + "lin")
|
||||||
.Description("List all UNREAD incidents and flags them as read.")
|
.Description($"List all UNREAD incidents and flags them as read. | `{Prefix}lin`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "listallincidents")
|
cgb.CreateCommand(Module.Prefix + "listallincidents")
|
||||||
.Alias(Prefix + "lain")
|
.Alias(Prefix + "lain")
|
||||||
.Description("Sends you a file containing all incidents and flags them as read.")
|
.Description($"Sends you a file containing all incidents and flags them as read. | `{Prefix}lain`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -340,7 +340,7 @@ $@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}`
|
|||||||
{
|
{
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "spmom")
|
cgb.CreateCommand(Module.Prefix + "spmom")
|
||||||
.Description("Toggles whether mentions of other offline users on your server will send a pm to them.")
|
.Description($"Toggles whether mentions of other offline users on your server will send a pm to them. | `{Prefix}spmom`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -356,7 +356,7 @@ $@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}`
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "logserver")
|
cgb.CreateCommand(Module.Prefix + "logserver")
|
||||||
.Description("Toggles logging in this channel. Logs every message sent/deleted/edited on the server. **Bot Owner Only!**")
|
.Description($"Toggles logging in this channel. Logs every message sent/deleted/edited on the server. **Bot Owner Only!** | `{Prefix}logserver`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -378,7 +378,7 @@ $@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}`
|
|||||||
|
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "logignore")
|
cgb.CreateCommand(Prefix + "logignore")
|
||||||
.Description($"Toggles whether the {Prefix}logserver command ignores this channel. Useful if you have hidden admin channel and public log channel.")
|
.Description($"Toggles whether the {Prefix}logserver command ignores this channel. Useful if you have hidden admin channel and public log channel. | `{Prefix}logignore`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -396,7 +396,7 @@ $@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}`
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "userpresence")
|
cgb.CreateCommand(Module.Prefix + "userpresence")
|
||||||
.Description("Starts logging to this channel when someone from the server goes online/offline/idle.")
|
.Description($"Starts logging to this channel when someone from the server goes online/offline/idle. | `{Prefix}userpresence`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -412,7 +412,7 @@ $@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}`
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "voicepresence")
|
cgb.CreateCommand(Module.Prefix + "voicepresence")
|
||||||
.Description("Toggles logging to this channel whenever someone joins or leaves a voice channel you are in right now.")
|
.Description("Toggles logging to this channel whenever someone joins or leaves a voice channel you are in right now. | `{Prefix}voicerpresence`")
|
||||||
.Parameter("all", ParameterType.Optional)
|
.Parameter("all", ParameterType.Optional)
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -57,7 +57,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "repeatinvoke")
|
cgb.CreateCommand(Module.Prefix + "repeatinvoke")
|
||||||
.Alias(Module.Prefix + "repinv")
|
.Alias(Module.Prefix + "repinv")
|
||||||
.Description("Immediately shows the repeat message and restarts the timer.")
|
.Description("Immediately shows the repeat message and restarts the timer. | `{Prefix}repinv`")
|
||||||
.AddCheck(SimpleCheckers.ManageMessages())
|
.AddCheck(SimpleCheckers.ManageMessages())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "repeat")
|
cgb.CreateCommand(Module.Prefix + "repeat")
|
||||||
.Description("Repeat a message every X minutes. If no parameters are specified, " +
|
.Description("Repeat a message every X minutes. If no parameters are specified, " +
|
||||||
"repeat is disabled. Requires manage messages. |`.repeat 5 Hello there`")
|
$"repeat is disabled. Requires manage messages. |`{Prefix}repeat 5 Hello there`")
|
||||||
.Parameter("minutes", ParameterType.Optional)
|
.Parameter("minutes", ParameterType.Optional)
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.ManageMessages())
|
.AddCheck(SimpleCheckers.ManageMessages())
|
||||||
|
@ -96,14 +96,14 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "rotateplaying")
|
cgb.CreateCommand(Module.Prefix + "rotateplaying")
|
||||||
.Alias(Module.Prefix + "ropl")
|
.Alias(Module.Prefix + "ropl")
|
||||||
.Description("Toggles rotation of playing status of the dynamic strings you specified earlier.")
|
.Description($"Toggles rotation of playing status of the dynamic strings you specified earlier. | `{Prefix}ropl`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(DoFunc());
|
.Do(DoFunc());
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "addplaying")
|
cgb.CreateCommand(Module.Prefix + "addplaying")
|
||||||
.Alias(Module.Prefix + "adpl")
|
.Alias(Module.Prefix + "adpl")
|
||||||
.Description("Adds a specified string to the list of playing strings to rotate. " +
|
.Description("Adds a specified string to the list of playing strings to rotate. " +
|
||||||
"Supported placeholders: " + string.Join(", ", PlayingPlaceholders.Keys))
|
"Supported placeholders: " + string.Join(", ", PlayingPlaceholders.Keys)+ $" | `{Prefix}adpl`")
|
||||||
.Parameter("text", ParameterType.Unparsed)
|
.Parameter("text", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -126,7 +126,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "listplaying")
|
cgb.CreateCommand(Module.Prefix + "listplaying")
|
||||||
.Alias(Module.Prefix + "lipl")
|
.Alias(Module.Prefix + "lipl")
|
||||||
.Description("Lists all playing statuses with their corresponding number.")
|
.Description($"Lists all playing statuses with their corresponding number. | `{Prefix}lipl`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -143,7 +143,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "removeplaying")
|
cgb.CreateCommand(Module.Prefix + "removeplaying")
|
||||||
.Alias(Module.Prefix + "repl", Module.Prefix + "rmpl")
|
.Alias(Module.Prefix + "repl", Module.Prefix + "rmpl")
|
||||||
.Description("Removes a playing string on a given number.")
|
.Description($"Removes a playing string on a given number. | `{Prefix}rmpl`")
|
||||||
.Parameter("number", ParameterType.Required)
|
.Parameter("number", ParameterType.Required)
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "slowmode")
|
cgb.CreateCommand(Module.Prefix + "slowmode")
|
||||||
.Description("Toggles slow mode. When ON, users will be able to send only 1 message every 5 seconds.")
|
.Description($"Toggles slow mode. When ON, users will be able to send only 1 message every 5 seconds. | `{Prefix}slowmode`")
|
||||||
.AddCheck(SimpleCheckers.ManageMessages())
|
.AddCheck(SimpleCheckers.ManageMessages())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "asar")
|
cgb.CreateCommand(Module.Prefix + "asar")
|
||||||
.Description("Adds a role, or list of roles separated by whitespace" +
|
.Description("Adds a role, or list of roles separated by whitespace" +
|
||||||
"(use quotations for multiword roles) to the list of self-assignable roles. | .asar Gamer")
|
$"(use quotations for multiword roles) to the list of self-assignable roles. | {Prefix}asar Gamer")
|
||||||
.Parameter("roles", ParameterType.Multiple)
|
.Parameter("roles", ParameterType.Multiple)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -44,7 +44,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "rsar")
|
cgb.CreateCommand(Module.Prefix + "rsar")
|
||||||
.Description("Removes a specified role from the list of self-assignable roles.")
|
.Description($"Removes a specified role from the list of self-assignable roles. | `{Prefix}rsar`")
|
||||||
.Parameter("role", ParameterType.Unparsed)
|
.Parameter("role", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -69,7 +69,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "lsar")
|
cgb.CreateCommand(Module.Prefix + "lsar")
|
||||||
.Description("Lists all self-assignable roles.")
|
.Description($"Lists all self-assignable roles. | `{Prefix}lsar`")
|
||||||
.Parameter("roles", ParameterType.Multiple)
|
.Parameter("roles", ParameterType.Multiple)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -99,7 +99,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "togglexclsar").Alias(Module.Prefix + "tesar")
|
cgb.CreateCommand(Module.Prefix + "togglexclsar").Alias(Module.Prefix + "tesar")
|
||||||
.Description("toggle whether the self-assigned roles should be exclusive")
|
.Description($"toggle whether the self-assigned roles should be exclusive | `{Prefix}tesar`")
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -112,7 +112,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "iam")
|
cgb.CreateCommand(Module.Prefix + "iam")
|
||||||
.Description("Adds a role to you that you choose. " +
|
.Description("Adds a role to you that you choose. " +
|
||||||
"Role must be on a list of self-assignable roles." +
|
"Role must be on a list of self-assignable roles." +
|
||||||
" | .iam Gamer")
|
$" | {Prefix}iam Gamer")
|
||||||
.Parameter("role", ParameterType.Unparsed)
|
.Parameter("role", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -168,7 +168,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
.Alias(Module.Prefix + "iamn")
|
.Alias(Module.Prefix + "iamn")
|
||||||
.Description("Removes a role to you that you choose. " +
|
.Description("Removes a role to you that you choose. " +
|
||||||
"Role must be on a list of self-assignable roles." +
|
"Role must be on a list of self-assignable roles." +
|
||||||
" | .iamn Gamer")
|
$" | {Prefix}iamn Gamer")
|
||||||
.Parameter("role", ParameterType.Unparsed)
|
.Parameter("role", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "leave")
|
cgb.CreateCommand(Module.Prefix + "leave")
|
||||||
.Description("Makes Nadeko leave the server. Either name or id required. | `.leave 123123123331`")
|
.Description($"Makes Nadeko leave the server. Either name or id required. | `{Prefix}leave 123123123331`")
|
||||||
.Parameter("arg", ParameterType.Required)
|
.Parameter("arg", ParameterType.Required)
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -219,7 +219,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "grdel")
|
cgb.CreateCommand(Module.Prefix + "grdel")
|
||||||
.Description("Toggles automatic deletion of greet and bye messages.")
|
.Description($"Toggles automatic deletion of greet and bye messages. | `{Prefix}grdel`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageServer) return;
|
if (!e.User.ServerPermissions.ManageServer) return;
|
||||||
@ -232,7 +232,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "greet")
|
cgb.CreateCommand(Module.Prefix + "greet")
|
||||||
.Description("Toggles anouncements on the current channel when someone joins the server.")
|
.Description($"Toggles anouncements on the current channel when someone joins the server. | `{Prefix}greet`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageServer) return;
|
if (!e.User.ServerPermissions.ManageServer) return;
|
||||||
@ -245,7 +245,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "greetmsg")
|
cgb.CreateCommand(Module.Prefix + "greetmsg")
|
||||||
.Description("Sets a new join announcement message. Type %user% if you want to mention the new member. Using it with no message will show the current greet message. | .greetmsg Welcome to the server, %user%.")
|
.Description($"Sets a new join announcement message. Type %user% if you want to mention the new member. Using it with no message will show the current greet message. | `{Prefix}greetmsg Welcome to the server, %user%.`")
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -265,7 +265,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "bye")
|
cgb.CreateCommand(Module.Prefix + "bye")
|
||||||
.Description("Toggles anouncements on the current channel when someone leaves the server.")
|
.Description($"Toggles anouncements on the current channel when someone leaves the server. | `{Prefix}bye`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageServer) return;
|
if (!e.User.ServerPermissions.ManageServer) return;
|
||||||
@ -278,7 +278,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "byemsg")
|
cgb.CreateCommand(Module.Prefix + "byemsg")
|
||||||
.Description("Sets a new leave announcement message. Type %user% if you want to mention the new member. Using it with no message will show the current bye message. | .byemsg %user% has left the server.")
|
.Description($"Sets a new leave announcement message. Type %user% if you want to mention the new member. Using it with no message will show the current bye message. | `{Prefix}byemsg %user% has left the server.`")
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -297,7 +297,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "byepm")
|
cgb.CreateCommand(Module.Prefix + "byepm")
|
||||||
.Description("Toggles whether the good bye messages will be sent in a PM or in the text channel.")
|
.Description($"Toggles whether the good bye messages will be sent in a PM or in the text channel. | `{Prefix}byepm`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageServer) return;
|
if (!e.User.ServerPermissions.ManageServer) return;
|
||||||
@ -313,7 +313,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "greetpm")
|
cgb.CreateCommand(Module.Prefix + "greetpm")
|
||||||
.Description("Toggles whether the greet messages will be sent in a PM or in the text channel.")
|
.Description($"Toggles whether the greet messages will be sent in a PM or in the text channel. | `{Prefix}greetpm`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageServer) return;
|
if (!e.User.ServerPermissions.ManageServer) return;
|
||||||
|
@ -88,7 +88,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "cleanv+t")
|
cgb.CreateCommand(Module.Prefix + "cleanv+t")
|
||||||
.Alias(Module.Prefix + "cv+t")
|
.Alias(Module.Prefix + "cv+t")
|
||||||
.Description("Deletes all text channels ending in `-voice` for which voicechannels are not found. **Use at your own risk.**")
|
.Description($"Deletes all text channels ending in `-voice` for which voicechannels are not found. **Use at your own risk.** | `{Prefix}cleanv+t`")
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.AddCheck(SimpleCheckers.ManageChannels())
|
.AddCheck(SimpleCheckers.ManageChannels())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -120,7 +120,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "voice+text")
|
cgb.CreateCommand(Module.Prefix + "voice+text")
|
||||||
.Alias(Module.Prefix + "v+t")
|
.Alias(Module.Prefix + "v+t")
|
||||||
.Description("Creates a text channel for each voice channel only users in that voice channel can see." +
|
.Description("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.")
|
$"If you are server owner, keep in mind you will see them all the time regardless. | `{Prefix}voice+text`")
|
||||||
.AddCheck(SimpleCheckers.ManageChannels())
|
.AddCheck(SimpleCheckers.ManageChannels())
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -102,7 +102,7 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
commands.ForEach(cmd => cmd.Init(cgb));
|
commands.ForEach(cmd => cmd.Init(cgb));
|
||||||
|
|
||||||
cgb.CreateCommand("die")
|
cgb.CreateCommand("die")
|
||||||
.Description("Works only for the owner. Shuts the bot down.")
|
.Description("Works only for the owner. Shuts the bot down. | `@NadekoBot die`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (NadekoBot.IsOwner(e.User.Id))
|
if (NadekoBot.IsOwner(e.User.Id))
|
||||||
@ -119,7 +119,7 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
randServerSw.Start();
|
randServerSw.Start();
|
||||||
|
|
||||||
cgb.CreateCommand("do you love me")
|
cgb.CreateCommand("do you love me")
|
||||||
.Description("Replies with positive answer only to the bot owner.")
|
.Description("Replies with positive answer only to the bot owner. | `@NadekoBot do you love me`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (NadekoBot.IsOwner(e.User.Id))
|
if (NadekoBot.IsOwner(e.User.Id))
|
||||||
@ -130,7 +130,7 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
|
|
||||||
cgb.CreateCommand("how are you")
|
cgb.CreateCommand("how are you")
|
||||||
.Alias("how are you?")
|
.Alias("how are you?")
|
||||||
.Description("Replies positive only if bot owner is online.")
|
.Description("Replies positive only if bot owner is online. | `@NadekoBot how are you`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (NadekoBot.IsOwner(e.User.Id))
|
if (NadekoBot.IsOwner(e.User.Id))
|
||||||
@ -150,7 +150,7 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand("fire")
|
cgb.CreateCommand("fire")
|
||||||
.Description("Shows a unicode fire message. Optional parameter [x] tells her how many times to repeat the fire. | @NadekoBot fire [x]")
|
.Description("Shows a unicode fire message. Optional parameter [x] tells her how many times to repeat the fire. | `@NadekoBot fire [x]`")
|
||||||
.Parameter("times", ParameterType.Optional)
|
.Parameter("times", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -174,7 +174,7 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand("dump")
|
cgb.CreateCommand("dump")
|
||||||
.Description("Dumps all of the invites it can to dump.txt.** Owner Only.**")
|
.Description("Dumps all of the invites it can to dump.txt.** Owner Only.** | `@NadekoBot dump`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!NadekoBot.IsOwner(e.User.Id)) return;
|
if (!NadekoBot.IsOwner(e.User.Id)) return;
|
||||||
@ -201,7 +201,7 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand("ab")
|
cgb.CreateCommand("ab")
|
||||||
.Description("Try to get 'abalabahaha'")
|
.Description("Try to get 'abalabahaha'| `@NadekoBot ab`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
string[] strings = { "ba", "la", "ha" };
|
string[] strings = { "ba", "la", "ha" };
|
||||||
|
@ -23,7 +23,7 @@ namespace NadekoBot.Modules.Gambling.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Prefix + "race")
|
cgb.CreateCommand(Prefix + "race")
|
||||||
.Description("Starts a new animal race.")
|
.Description($"Starts a new animal race. | `{Prefix}race`")
|
||||||
.Do(e => {
|
.Do(e => {
|
||||||
var ar = new AnimalRace(e.Server.Id, e.Channel);
|
var ar = new AnimalRace(e.Server.Id, e.Channel);
|
||||||
if (ar.Fail)
|
if (ar.Fail)
|
||||||
@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Gambling.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "joinrace")
|
cgb.CreateCommand(Prefix + "joinrace")
|
||||||
.Alias(Prefix + "jr")
|
.Alias(Prefix + "jr")
|
||||||
.Description("Joins a new race. You can specify an amount of flowers for betting (optional). You will get YourBet*(participants-1) back if you win. | `$jr` or `$jr 5`")
|
.Description($"Joins a new race. You can specify an amount of flowers for betting (optional). You will get YourBet*(participants-1) back if you win. | `{Prefix}jr` or `{Prefix}jr 5`")
|
||||||
.Parameter("amount", ParameterType.Optional)
|
.Parameter("amount", ParameterType.Optional)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
|
|
||||||
|
@ -21,18 +21,18 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "roll")
|
cgb.CreateCommand(Module.Prefix + "roll")
|
||||||
.Description("Rolls 0-100. If you supply a number [x] it rolls up to 30 normal dice." +
|
.Description("Rolls 0-100. If you supply a number [x] it rolls up to 30 normal dice." +
|
||||||
" If you split 2 numbers with letter d (xdy) it will roll x dice from 1 to y. | $roll or $roll 7 or $roll 3d5")
|
$" If you split 2 numbers with letter d (xdy) it will roll x dice from 1 to y. | `{Prefix}roll` or `{Prefix}roll 7` or `{Prefix}roll 3d5`")
|
||||||
.Parameter("num", ParameterType.Optional)
|
.Parameter("num", ParameterType.Optional)
|
||||||
.Do(RollFunc());
|
.Do(RollFunc());
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "rolluo")
|
cgb.CreateCommand(Module.Prefix + "rolluo")
|
||||||
.Description("Rolls 0-100. If you supply a number [x] it rolls up to 30 normal dice (unordered)." +
|
.Description("Rolls 0-100. If you supply a number [x] it rolls up to 30 normal dice (unordered)." +
|
||||||
" If you split 2 numbers with letter d (xdy) it will roll x dice from 1 to y. | $roll or $roll 7 or $roll 3d5")
|
$" If you split 2 numbers with letter d (xdy) it will roll x dice from 1 to y. | `{Prefix}roll` or `{Prefix}roll` 7 or `{Prefix}roll 3d5`")
|
||||||
.Parameter("num", ParameterType.Optional)
|
.Parameter("num", ParameterType.Optional)
|
||||||
.Do(RollFunc(false));
|
.Do(RollFunc(false));
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "nroll")
|
cgb.CreateCommand(Module.Prefix + "nroll")
|
||||||
.Description("Rolls in a given range. | `$nroll 5` (rolls 0-5) or `$nroll 5-15`")
|
.Description($"Rolls in a given range. | `{Prefix}nroll 5` (rolls 0-5) or `{Prefix}nroll 5-15`")
|
||||||
.Parameter("range", ParameterType.Required)
|
.Parameter("range", ParameterType.Required)
|
||||||
.Do(NRollFunc());
|
.Do(NRollFunc());
|
||||||
}
|
}
|
||||||
|
@ -17,13 +17,13 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "draw")
|
cgb.CreateCommand(Module.Prefix + "draw")
|
||||||
.Description("Draws a card from the deck.If you supply number [x], she draws up to 5 cards from the deck. | $draw [x]")
|
.Description($"Draws a card from the deck.If you supply number [x], she draws up to 5 cards from the deck. | `{Prefix}draw [x]`")
|
||||||
.Parameter("count", ParameterType.Optional)
|
.Parameter("count", ParameterType.Optional)
|
||||||
.Do(DrawCardFunc());
|
.Do(DrawCardFunc());
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "shuffle")
|
cgb.CreateCommand(Module.Prefix + "shuffle")
|
||||||
.Alias(Module.Prefix + "sh")
|
.Alias(Module.Prefix + "sh")
|
||||||
.Description("Reshuffles all cards back into the deck.")
|
.Description($"Reshuffles all cards back into the deck.|`{Prefix}shuffle`")
|
||||||
.Do(ReshuffleTask());
|
.Do(ReshuffleTask());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "flip")
|
cgb.CreateCommand(Module.Prefix + "flip")
|
||||||
.Description("Flips coin(s) - heads or tails, and shows an image. | `$flip` or `$flip 3`")
|
.Description($"Flips coin(s) - heads or tails, and shows an image. | `{Prefix}flip` or `{Prefix}flip 3`")
|
||||||
.Parameter("count", ParameterType.Optional)
|
.Parameter("count", ParameterType.Optional)
|
||||||
.Do(FlipCoinFunc());
|
.Do(FlipCoinFunc());
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
commands.ForEach(com => com.Init(cgb));
|
commands.ForEach(com => com.Init(cgb));
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "raffle")
|
cgb.CreateCommand(Prefix + "raffle")
|
||||||
.Description($"Prints a name and ID of a random user from the online list from the (optional) role. | `{Prefix}raffle` or `{Prefix}raffle RoleName")
|
.Description($"Prints a name and ID of a random user from the online list from the (optional) role. | `{Prefix}raffle` or `{Prefix}raffle RoleName`")
|
||||||
.Parameter("role", ParameterType.Optional)
|
.Parameter("role", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "betroll")
|
cgb.CreateCommand(Prefix + "betroll")
|
||||||
.Alias(Prefix + "br")
|
.Alias(Prefix + "br")
|
||||||
.Description($"Bets a certain amount of {NadekoBot.Config.CurrencyName}s and rolls a dice. Rolling over 66 yields x2 flowers, over 90 - x3 and 100 x10. | {Prefix}br 5")
|
.Description($"Bets a certain amount of {NadekoBot.Config.CurrencyName}s and rolls a dice. Rolling over 66 yields x2 flowers, over 90 - x3 and 100 x10. | `{Prefix}br 5`")
|
||||||
.Parameter("amount",ParameterType.Required)
|
.Parameter("amount",ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -187,6 +187,7 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "leaderboard")
|
cgb.CreateCommand(Prefix + "leaderboard")
|
||||||
.Alias(Prefix + "lb")
|
.Alias(Prefix + "lb")
|
||||||
|
.Description($"Displays bot currency leaderboard | {Prefix}lb")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var richestTemp = DbHandler.Instance.GetTopRichest();
|
var richestTemp = DbHandler.Instance.GetTopRichest();
|
||||||
|
@ -20,7 +20,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "betray")
|
cgb.CreateCommand(Module.Prefix + "betray")
|
||||||
.Description("BETRAY GAME. Betray nadeko next turn." +
|
.Description("BETRAY GAME. Betray nadeko next turn." +
|
||||||
"If Nadeko cooperates - you get extra points, nadeko loses a LOT." +
|
"If Nadeko cooperates - you get extra points, nadeko loses a LOT." +
|
||||||
"If Nadeko betrays - you both lose some points.")
|
"If Nadeko betrays - you both lose some points. | `{Prefix}betray`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await ReceiveAnswer(e, Answers.Betray).ConfigureAwait(false);
|
await ReceiveAnswer(e, Answers.Betray).ConfigureAwait(false);
|
||||||
@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "cooperate")
|
cgb.CreateCommand(Module.Prefix + "cooperate")
|
||||||
.Description("BETRAY GAME. Cooperate with nadeko next turn." +
|
.Description("BETRAY GAME. Cooperate with nadeko next turn." +
|
||||||
"If Nadeko cooperates - you both get bonus points." +
|
"If Nadeko cooperates - you both get bonus points." +
|
||||||
"If Nadeko betrays - you lose A LOT, nadeko gets extra.")
|
"If Nadeko betrays - you lose A LOT, nadeko gets extra. | `{Prefix}cooperater`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "leet")
|
cgb.CreateCommand(Module.Prefix + "leet")
|
||||||
.Description($"Converts a text to leetspeak with 6 (1-6) severity levels | {Module.Prefix}leet 3 Hello")
|
.Description($"Converts a text to leetspeak with 6 (1-6) severity levels | `{Module.Prefix}leet 3 Hello`")
|
||||||
.Parameter("level", ParameterType.Required)
|
.Parameter("level", ParameterType.Required)
|
||||||
.Parameter("text", ParameterType.Unparsed)
|
.Parameter("text", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -65,7 +65,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "pick")
|
cgb.CreateCommand(Module.Prefix + "pick")
|
||||||
.Description("Picks a flower planted in this channel.")
|
.Description($"Picks a flower planted in this channel. | `{Prefix}pick`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
IEnumerable<Message> msgs;
|
IEnumerable<Message> msgs;
|
||||||
@ -91,7 +91,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "plant")
|
cgb.CreateCommand(Module.Prefix + "plant")
|
||||||
.Description("Spend a flower to plant it in this channel. (If bot is restarted or crashes, flower will be lost)")
|
.Description($"Spend a flower to plant it in this channel. (If bot is restarted or crashes, flower will be lost) | `{Prefix}plant`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await locker.WaitAsync().ConfigureAwait(false);
|
await locker.WaitAsync().ConfigureAwait(false);
|
||||||
@ -124,7 +124,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "gencurrency")
|
cgb.CreateCommand(Prefix + "gencurrency")
|
||||||
.Alias(Prefix + "gc")
|
.Alias(Prefix + "gc")
|
||||||
.Description($"Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a {NadekoBot.Config.CurrencyName}. Optional parameter cooldown time in minutes, 5 minutes by default. Requires Manage Messages permission. | `>gc` or `>gc 60`")
|
.Description($"Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a {NadekoBot.Config.CurrencyName}. Optional parameter cooldown time in minutes, 5 minutes by default. Requires Manage Messages permission. | `{Prefix}gc` or `{Prefix}gc 60`")
|
||||||
.AddCheck(SimpleCheckers.ManageMessages())
|
.AddCheck(SimpleCheckers.ManageMessages())
|
||||||
.Parameter("cd", ParameterType.Unparsed)
|
.Parameter("cd", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -18,7 +18,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "poll")
|
cgb.CreateCommand(Module.Prefix + "poll")
|
||||||
.Description("Creates a poll, only person who has manage server permission can do it. | >poll Question?;Answer1;Answ 2;A_3")
|
.Description($"Creates a poll, only person who has manage server permission can do it. | `{Prefix}poll Question?;Answer1;Answ 2;A_3`")
|
||||||
.Parameter("allargs", ParameterType.Unparsed)
|
.Parameter("allargs", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
cgb.CreateCommand(Module.Prefix + "pollend")
|
cgb.CreateCommand(Module.Prefix + "pollend")
|
||||||
.Description("Stops active poll on this server and prints the results in this channel.")
|
.Description($"Stops active poll on this server and prints the results in this channel. | `{Prefix}pollend`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageChannels)
|
if (!e.User.ServerPermissions.ManageChannels)
|
||||||
|
@ -168,15 +168,15 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "typestart")
|
cgb.CreateCommand(Module.Prefix + "typestart")
|
||||||
.Description("Starts a typing contest.")
|
.Description($"Starts a typing contest. | `{Prefix}typestart`")
|
||||||
.Do(DoFunc());
|
.Do(DoFunc());
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "typestop")
|
cgb.CreateCommand(Module.Prefix + "typestop")
|
||||||
.Description("Stops a typing contest on the current channel.")
|
.Description($"Stops a typing contest on the current channel. | `{Prefix}typestop`")
|
||||||
.Do(QuitFunc());
|
.Do(QuitFunc());
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "typeadd")
|
cgb.CreateCommand(Module.Prefix + "typeadd")
|
||||||
.Description("Adds a new article to the typing contest. Owner only.")
|
.Description($"Adds a new article to the typing contest. Owner only. | `{Prefix}typeadd wordswords`")
|
||||||
.Parameter("text", ParameterType.Unparsed)
|
.Parameter("text", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "tl")
|
cgb.CreateCommand(Module.Prefix + "tl")
|
||||||
.Description("Shows a current trivia leaderboard.")
|
.Description($"Shows a current trivia leaderboard. | `{Prefix}tl`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
TriviaGame trivia;
|
TriviaGame trivia;
|
||||||
@ -57,7 +57,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "tq")
|
cgb.CreateCommand(Module.Prefix + "tq")
|
||||||
.Description("Quits current trivia after current question.")
|
.Description($"Quits current trivia after current question. | `{Prefix}tq`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
TriviaGame trivia;
|
TriviaGame trivia;
|
||||||
|
@ -81,16 +81,16 @@ Version: `{NadekoStats.Instance.BotVersion}`";
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "h")
|
cgb.CreateCommand(Module.Prefix + "h")
|
||||||
.Alias(Module.Prefix + "help", NadekoBot.BotMention + " help", NadekoBot.BotMention + " h", "~h")
|
.Alias(Module.Prefix + "help", NadekoBot.BotMention + " help", NadekoBot.BotMention + " h", "~h")
|
||||||
.Description("Either shows a help for a single command, or PMs you help link if no arguments are specified. | '-h !m q' or just '-h' ")
|
.Description("Either shows a help for a single command, or PMs you help link if no arguments are specified. | `-h !m q` or just `-h` ")
|
||||||
.Parameter("command", ParameterType.Unparsed)
|
.Parameter("command", ParameterType.Unparsed)
|
||||||
.Do(HelpFunc());
|
.Do(HelpFunc());
|
||||||
cgb.CreateCommand(Module.Prefix + "hgit")
|
cgb.CreateCommand(Module.Prefix + "hgit")
|
||||||
.Description("Generates the commandlist.md file. **Bot Owner Only!**")
|
.Description($"Generates the commandlist.md file. **Bot Owner Only!** | `{Prefix}hgit`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(DoGitFunc());
|
.Do(DoGitFunc());
|
||||||
cgb.CreateCommand(Module.Prefix + "readme")
|
cgb.CreateCommand(Module.Prefix + "readme")
|
||||||
.Alias(Module.Prefix + "guide")
|
.Alias(Module.Prefix + "guide")
|
||||||
.Description("Sends a readme and a guide links to the channel.")
|
.Description($"Sends a readme and a guide links to the channel. | `{Prefix}readme` or `{Prefix}guide`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
await e.Channel.SendMessage(
|
await e.Channel.SendMessage(
|
||||||
@"**Wiki with all info**: <https://github.com/Kwoth/NadekoBot/wiki>
|
@"**Wiki with all info**: <https://github.com/Kwoth/NadekoBot/wiki>
|
||||||
@ -103,7 +103,7 @@ Version: `{NadekoStats.Instance.BotVersion}`";
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "donate")
|
cgb.CreateCommand(Module.Prefix + "donate")
|
||||||
.Alias("~donate")
|
.Alias("~donate")
|
||||||
.Description("Instructions for helping the project!")
|
.Description("Instructions for helping the project! | `{Prefix}donate` or `~donate`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage(
|
await e.Channel.SendMessage(
|
||||||
|
@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Help
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "modules")
|
cgb.CreateCommand(Prefix + "modules")
|
||||||
.Alias(".modules")
|
.Alias(".modules")
|
||||||
.Description("List all bot modules.")
|
.Description("List all bot modules. | `{Prefix}modules` or `.modules`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage("`List of modules:` \n• " + string.Join("\n• ", NadekoBot.Client.GetService<ModuleService>().Modules.Select(m => m.Name)) + $"\n`Type \"{Prefix}commands module_name\" to get a list of commands in that module.`")
|
await e.Channel.SendMessage("`List of modules:` \n• " + string.Join("\n• ", NadekoBot.Client.GetService<ModuleService>().Modules.Select(m => m.Name)) + $"\n`Type \"{Prefix}commands module_name\" to get a list of commands in that module.`")
|
||||||
@ -38,7 +38,7 @@ namespace NadekoBot.Modules.Help
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "commands")
|
cgb.CreateCommand(Prefix + "commands")
|
||||||
.Alias(".commands")
|
.Alias(".commands")
|
||||||
.Description("List all of the bot's commands from a certain module.")
|
.Description("List all of the bot's commands from a certain module. | `{Prefix}commands` or `.commands`")
|
||||||
.Parameter("module", ParameterType.Unparsed)
|
.Parameter("module", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -84,14 +84,14 @@ namespace NadekoBot.Modules.NSFW
|
|||||||
await e.Channel.SendMessage(await SearchHelper.GetE621ImageLink(tag).ConfigureAwait(false)).ConfigureAwait(false);
|
await e.Channel.SendMessage(await SearchHelper.GetE621ImageLink(tag).ConfigureAwait(false)).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
cgb.CreateCommand(Prefix + "cp")
|
cgb.CreateCommand(Prefix + "cp")
|
||||||
.Description("We all know where this will lead you to.")
|
.Description($"We all know where this will lead you to. | `{Prefix}cp`")
|
||||||
.Parameter("anything", ParameterType.Unparsed)
|
.Parameter("anything", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage("http://i.imgur.com/MZkY1md.jpg").ConfigureAwait(false);
|
await e.Channel.SendMessage("http://i.imgur.com/MZkY1md.jpg").ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
cgb.CreateCommand(Prefix + "boobs")
|
cgb.CreateCommand(Prefix + "boobs")
|
||||||
.Description("Real adult content.")
|
.Description($"Real adult content. | `{Prefix}boobs`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -106,7 +106,7 @@ namespace NadekoBot.Modules.NSFW
|
|||||||
});
|
});
|
||||||
cgb.CreateCommand(Prefix + "butts")
|
cgb.CreateCommand(Prefix + "butts")
|
||||||
.Alias(Prefix + "ass", Prefix + "butt")
|
.Alias(Prefix + "ass", Prefix + "butt")
|
||||||
.Description("Real adult content.")
|
.Description($"Real adult content. | `{Prefix}butts` or `{Prefix}ass`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -55,7 +55,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
.Alias(Module.Prefix + "cfi")
|
.Alias(Module.Prefix + "cfi")
|
||||||
.Description("Enables or disables automatic deleting of invites on the channel." +
|
.Description("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." +
|
"If no channel supplied, it will default to current one. Use ALL to apply to all existing channels at once." +
|
||||||
" | ;cfi enable #general-chat")
|
$" | {Prefix}cfi enable #general-chat")
|
||||||
.Parameter("bool")
|
.Parameter("bool")
|
||||||
.Parameter("channel", ParameterType.Optional)
|
.Parameter("channel", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -95,7 +95,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "srvrfilterinv")
|
cgb.CreateCommand(Module.Prefix + "srvrfilterinv")
|
||||||
.Alias(Module.Prefix + "sfi")
|
.Alias(Module.Prefix + "sfi")
|
||||||
.Description("Enables or disables automatic deleting of invites on the server. | ;sfi disable")
|
.Description($"Enables or disables automatic deleting of invites on the server. | {Prefix}sfi disable")
|
||||||
.Parameter("bool")
|
.Parameter("bool")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
.Alias(Module.Prefix + "cfw")
|
.Alias(Module.Prefix + "cfw")
|
||||||
.Description("Enables or disables automatic deleting of messages containing banned words on the channel." +
|
.Description("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." +
|
"If no channel supplied, it will default to current one. Use ALL to apply to all existing channels at once." +
|
||||||
" | ;cfw enable #general-chat")
|
$" | {Prefix}cfw enable #general-chat")
|
||||||
.Parameter("bool")
|
.Parameter("bool")
|
||||||
.Parameter("channel", ParameterType.Optional)
|
.Parameter("channel", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -89,7 +89,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "addfilterword")
|
cgb.CreateCommand(Module.Prefix + "addfilterword")
|
||||||
.Alias(Module.Prefix + "afw")
|
.Alias(Module.Prefix + "afw")
|
||||||
.Description("Adds a new word to the list of filtered words" +
|
.Description("Adds a new word to the list of filtered words" +
|
||||||
" | ;afw poop")
|
$" | {Prefix}afw poop")
|
||||||
.Parameter("word", ParameterType.Unparsed)
|
.Parameter("word", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -111,7 +111,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "rmvfilterword")
|
cgb.CreateCommand(Module.Prefix + "rmvfilterword")
|
||||||
.Alias(Module.Prefix + "rfw")
|
.Alias(Module.Prefix + "rfw")
|
||||||
.Description("Removes the word from the list of filtered words" +
|
.Description("Removes the word from the list of filtered words" +
|
||||||
" | ;rw poop")
|
$" | {Prefix}rw poop")
|
||||||
.Parameter("word", ParameterType.Unparsed)
|
.Parameter("word", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -133,7 +133,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "lstfilterwords")
|
cgb.CreateCommand(Module.Prefix + "lstfilterwords")
|
||||||
.Alias(Module.Prefix + "lfw")
|
.Alias(Module.Prefix + "lfw")
|
||||||
.Description("Shows a list of filtered words" +
|
.Description("Shows a list of filtered words" +
|
||||||
" | ;lfw")
|
$" | {Prefix}lfw")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -152,7 +152,7 @@ namespace NadekoBot.Modules.Permissions.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "srvrfilterwords")
|
cgb.CreateCommand(Module.Prefix + "srvrfilterwords")
|
||||||
.Alias(Module.Prefix + "sfw")
|
.Alias(Module.Prefix + "sfw")
|
||||||
.Description("Enables or disables automatic deleting of messages containing forbidden words on the server. | ;sfw disable")
|
.Description($"Enables or disables automatic deleting of messages containing forbidden words on the server. | {Prefix}sfw disable")
|
||||||
.Parameter("bool")
|
.Parameter("bool")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,7 @@ namespace NadekoBot.Modules.Permissions
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "permrole")
|
cgb.CreateCommand(Prefix + "permrole")
|
||||||
.Alias(Prefix + "pr")
|
.Alias(Prefix + "pr")
|
||||||
.Description("Sets a role which can change permissions. Or supply no parameters to find out the current one. Default one is 'Nadeko'.")
|
.Description($"Sets a role which can change permissions. Or supply no parameters to find out the current one. Default one is 'Nadeko'. | `{Prefix}pr role`")
|
||||||
.Parameter("role", ParameterType.Unparsed)
|
.Parameter("role", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ namespace NadekoBot.Modules.Permissions
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "srvrperms")
|
cgb.CreateCommand(Prefix + "srvrperms")
|
||||||
.Alias(Prefix + "sp")
|
.Alias(Prefix + "sp")
|
||||||
.Description("Shows banned permissions for this server.")
|
.Description($"Shows banned permissions for this server. | `{Prefix}sp`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var perms = PermissionsHandler.GetServerPermissions(e.Server);
|
var perms = PermissionsHandler.GetServerPermissions(e.Server);
|
||||||
|
@ -196,7 +196,7 @@ namespace NadekoBot.Modules.Pokemon
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "movelist")
|
cgb.CreateCommand(Prefix + "movelist")
|
||||||
.Alias(Prefix + "ml")
|
.Alias(Prefix + "ml")
|
||||||
.Description("Lists the moves you are able to use")
|
.Description($"Lists the moves you are able to use | `{Prefix}ml`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var userType = GetPokeType(e.User.Id);
|
var userType = GetPokeType(e.User.Id);
|
||||||
@ -210,7 +210,7 @@ namespace NadekoBot.Modules.Pokemon
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "heal")
|
cgb.CreateCommand(Prefix + "heal")
|
||||||
.Description($"Heals someone. Revives those who fainted. Costs a {NadekoBot.Config.CurrencyName} | {Prefix}heal @someone")
|
.Description($"Heals someone. Revives those who fainted. Costs a {NadekoBot.Config.CurrencyName} | `{Prefix}heal @someone`")
|
||||||
.Parameter("target", ParameterType.Unparsed)
|
.Parameter("target", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -263,7 +263,7 @@ namespace NadekoBot.Modules.Pokemon
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "type")
|
cgb.CreateCommand(Prefix + "type")
|
||||||
.Description($"Get the poketype of the target. | {Prefix}type @someone")
|
.Description($"Get the poketype of the target. | `{Prefix}type @someone`")
|
||||||
.Parameter("target", ParameterType.Unparsed)
|
.Parameter("target", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -282,7 +282,7 @@ namespace NadekoBot.Modules.Pokemon
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "settype")
|
cgb.CreateCommand(Prefix + "settype")
|
||||||
.Description($"Set your poketype. Costs a {NadekoBot.Config.CurrencyName}. | {Prefix}settype fire")
|
.Description($"Set your poketype. Costs a {NadekoBot.Config.CurrencyName}. | `{Prefix}settype fire`")
|
||||||
.Parameter("targetType", ParameterType.Unparsed)
|
.Parameter("targetType", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "convert")
|
cgb.CreateCommand(Module.Prefix + "convert")
|
||||||
.Description("Convert quantities from>to. Like `~convert m>km 1000`")
|
.Description($"Convert quantities from>to. | `{Prefix}convert m>km 1000`")
|
||||||
.Parameter("from-to", ParameterType.Required)
|
.Parameter("from-to", ParameterType.Required)
|
||||||
.Parameter("quantity", ParameterType.Optional)
|
.Parameter("quantity", ParameterType.Optional)
|
||||||
.Do(ConvertFunc());
|
.Do(ConvertFunc());
|
||||||
|
@ -17,7 +17,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "calculate")
|
cgb.CreateCommand(Module.Prefix + "calculate")
|
||||||
.Alias(Module.Prefix + "calc")
|
.Alias(Module.Prefix + "calc")
|
||||||
.Description("Evaluate a mathematical expression. | ~calc 1+1")
|
.Description($"Evaluate a mathematical expression. | {Prefix}calc 1+1")
|
||||||
.Parameter("expression", ParameterType.Unparsed)
|
.Parameter("expression", ParameterType.Unparsed)
|
||||||
.Do(EvalFunc());
|
.Do(EvalFunc());
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "lolchamp")
|
cgb.CreateCommand(Module.Prefix + "lolchamp")
|
||||||
.Description("Shows League Of Legends champion statistics. If there are spaces/apostrophes or in the name - omit them. Optional second parameter is a role. |~lolchamp Riven or ~lolchamp Annie sup")
|
.Description($"Shows League Of Legends champion statistics. If there are spaces/apostrophes or in the name - omit them. Optional second parameter is a role. |`{Prefix}lolchamp Riven` or `{Prefix}lolchamp Annie sup`")
|
||||||
.Parameter("champ", ParameterType.Required)
|
.Parameter("champ", ParameterType.Required)
|
||||||
.Parameter("position", ParameterType.Unparsed)
|
.Parameter("position", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -280,7 +280,7 @@ Assists: {general["assists"]} Ban: {general["banRate"]}%
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "lolban")
|
cgb.CreateCommand(Module.Prefix + "lolban")
|
||||||
.Description("Shows top 6 banned champions ordered by ban rate. Ban these champions and you will be Plat 5 in no time.")
|
.Description($"Shows top 6 banned champions ordered by ban rate. Ban these champions and you will be Plat 5 in no time. | `{Prefix}lolban`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Prefix + "memelist")
|
cgb.CreateCommand(Prefix + "memelist")
|
||||||
.Description("Pulls a list of memes you can use with `~memegen` from http://memegen.link/templates/")
|
.Description($"Pulls a list of memes you can use with `~memegen` from http://memegen.link/templates/ | `{Prefix}memelist`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -30,7 +30,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "memegen")
|
cgb.CreateCommand(Prefix + "memegen")
|
||||||
.Description("Generates a meme from memelist with top and bottom text. | `~memegen biw \"gets iced coffee\" \"in the winter\"`")
|
.Description($"Generates a meme from memelist with top and bottom text. | `{Prefix}memegen biw \"gets iced coffee\" \"in the winter\"`")
|
||||||
.Parameter("meme", ParameterType.Required)
|
.Parameter("meme", ParameterType.Required)
|
||||||
.Parameter("toptext", ParameterType.Required)
|
.Parameter("toptext", ParameterType.Required)
|
||||||
.Parameter("bottext", ParameterType.Required)
|
.Parameter("bottext", ParameterType.Required)
|
||||||
|
@ -17,7 +17,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "osu")
|
cgb.CreateCommand(Module.Prefix + "osu")
|
||||||
.Description("Shows osu stats for a player. | `~osu Name` or `~osu Name taiko`")
|
.Description($"Shows osu stats for a player. | `{Prefix}osu Name` or `{Prefix}osu Name taiko`")
|
||||||
.Parameter("usr", ParameterType.Required)
|
.Parameter("usr", ParameterType.Required)
|
||||||
.Parameter("mode", ParameterType.Unparsed)
|
.Parameter("mode", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -56,7 +56,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "osu b")
|
cgb.CreateCommand(Module.Prefix + "osu b")
|
||||||
.Description("Shows information about an osu beatmap. |~osu b https://osu.ppy.sh/s/127712")
|
.Description($"Shows information about an osu beatmap. |`{Prefix}osu b` https://osu.ppy.sh/s/127712`")
|
||||||
.Parameter("map", ParameterType.Unparsed)
|
.Parameter("map", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -88,7 +88,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "osu top5")
|
cgb.CreateCommand(Module.Prefix + "osu top5")
|
||||||
.Description("Displays a user's top 5 plays. |~osu top5 Name")
|
.Description($"Displays a user's top 5 plays. |{Prefix}osu top5 Name")
|
||||||
.Parameter("usr", ParameterType.Required)
|
.Parameter("usr", ParameterType.Required)
|
||||||
.Parameter("mode", ParameterType.Unparsed)
|
.Parameter("mode", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -22,7 +22,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Prefix + "pokemon")
|
cgb.CreateCommand(Prefix + "pokemon")
|
||||||
.Alias(Prefix + "poke")
|
.Alias(Prefix + "poke")
|
||||||
.Description("Searches for a pokemon.")
|
.Description($"Searches for a pokemon. | `{Prefix}poke Sylveon`")
|
||||||
.Parameter("pokemon", ParameterType.Unparsed)
|
.Parameter("pokemon", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "pokemonability")
|
cgb.CreateCommand(Prefix + "pokemonability")
|
||||||
.Alias(Prefix + "pokeab")
|
.Alias(Prefix + "pokeab")
|
||||||
.Description("Searches for a pokemon ability.")
|
.Description($"Searches for a pokemon ability. | `{Prefix}pokeab \"water gun\"`")
|
||||||
.Parameter("abil", ParameterType.Unparsed)
|
.Parameter("abil", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -122,7 +122,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "hitbox")
|
cgb.CreateCommand(Module.Prefix + "hitbox")
|
||||||
.Alias(Module.Prefix + "hb")
|
.Alias(Module.Prefix + "hb")
|
||||||
.Description("Notifies this channel when a certain user starts streaming." +
|
.Description("Notifies this channel when a certain user starts streaming." +
|
||||||
" | ~hitbox SomeStreamer")
|
$" | `{Prefix}hitbox SomeStreamer`")
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(TrackStream(StreamNotificationConfig.StreamType.Hitbox));
|
.Do(TrackStream(StreamNotificationConfig.StreamType.Hitbox));
|
||||||
@ -130,7 +130,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "twitch")
|
cgb.CreateCommand(Module.Prefix + "twitch")
|
||||||
.Alias(Module.Prefix + "tw")
|
.Alias(Module.Prefix + "tw")
|
||||||
.Description("Notifies this channel when a certain user starts streaming." +
|
.Description("Notifies this channel when a certain user starts streaming." +
|
||||||
" | ~twitch SomeStreamer")
|
$" | `{Prefix}twitch SomeStreamer`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.Do(TrackStream(StreamNotificationConfig.StreamType.Twitch));
|
.Do(TrackStream(StreamNotificationConfig.StreamType.Twitch));
|
||||||
@ -138,7 +138,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "beam")
|
cgb.CreateCommand(Module.Prefix + "beam")
|
||||||
.Alias(Module.Prefix + "bm")
|
.Alias(Module.Prefix + "bm")
|
||||||
.Description("Notifies this channel when a certain user starts streaming." +
|
.Description("Notifies this channel when a certain user starts streaming." +
|
||||||
" | ~beam SomeStreamer")
|
$" | `{Prefix}beam SomeStreamer`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.Do(TrackStream(StreamNotificationConfig.StreamType.Beam));
|
.Do(TrackStream(StreamNotificationConfig.StreamType.Beam));
|
||||||
@ -146,7 +146,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "checkhitbox")
|
cgb.CreateCommand(Module.Prefix + "checkhitbox")
|
||||||
.Alias(Module.Prefix + "chhb")
|
.Alias(Module.Prefix + "chhb")
|
||||||
.Description("Checks if a certain user is streaming on the hitbox platform." +
|
.Description("Checks if a certain user is streaming on the hitbox platform." +
|
||||||
" | ~chhb SomeStreamer")
|
$" | `{Prefix}chhb SomeStreamer`")
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -175,7 +175,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "checktwitch")
|
cgb.CreateCommand(Module.Prefix + "checktwitch")
|
||||||
.Alias(Module.Prefix + "chtw")
|
.Alias(Module.Prefix + "chtw")
|
||||||
.Description("Checks if a certain user is streaming on the twitch platform." +
|
.Description("Checks if a certain user is streaming on the twitch platform." +
|
||||||
" | ~chtw SomeStreamer")
|
$" | `{Prefix}chtw SomeStreamer`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -204,7 +204,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "checkbeam")
|
cgb.CreateCommand(Module.Prefix + "checkbeam")
|
||||||
.Alias(Module.Prefix + "chbm")
|
.Alias(Module.Prefix + "chbm")
|
||||||
.Description("Checks if a certain user is streaming on the beam platform." +
|
.Description("Checks if a certain user is streaming on the beam platform." +
|
||||||
" | ~chbm SomeStreamer")
|
$" | `{Prefix}chbm SomeStreamer`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -233,7 +233,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "removestream")
|
cgb.CreateCommand(Module.Prefix + "removestream")
|
||||||
.Alias(Module.Prefix + "rms")
|
.Alias(Module.Prefix + "rms")
|
||||||
.Description("Removes notifications of a certain streamer on this channel." +
|
.Description("Removes notifications of a certain streamer on this channel." +
|
||||||
" | ~rms SomeGuy")
|
$" | `{Prefix}rms SomeGuy`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Parameter("username", ParameterType.Unparsed)
|
.Parameter("username", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -261,7 +261,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "liststreams")
|
cgb.CreateCommand(Module.Prefix + "liststreams")
|
||||||
.Alias(Module.Prefix + "ls")
|
.Alias(Module.Prefix + "ls")
|
||||||
.Description("Lists all streams you are following on this server." +
|
.Description("Lists all streams you are following on this server." +
|
||||||
" | ~ls")
|
$" | `{Prefix}ls`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ namespace NadekoBot.Modules.Searches.Commands
|
|||||||
{
|
{
|
||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "wowjoke")
|
cgb.CreateCommand(Module.Prefix + "wowjoke")
|
||||||
.Description("Get one of Kwoth's penultimate WoW jokes.")
|
.Description($"Get one of Kwoth's penultimate WoW jokes. | `{Prefix}wowjoke`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!jokes.Any())
|
if (!jokes.Any())
|
||||||
|
@ -86,7 +86,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
cgb.CreateCommand(Prefix + "ani")
|
cgb.CreateCommand(Prefix + "ani")
|
||||||
.Alias(Prefix + "anime", Prefix + "aq")
|
.Alias(Prefix + "anime", Prefix + "aq")
|
||||||
.Parameter("query", ParameterType.Unparsed)
|
.Parameter("query", ParameterType.Unparsed)
|
||||||
.Description("Queries anilist for an anime and shows the first result.")
|
.Description($"Queries anilist for an anime and shows the first result. | `{Prefix}aq aquerion evol`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!(await SearchHelper.ValidateQuery(e.Channel, e.GetArg("query")).ConfigureAwait(false))) return;
|
if (!(await SearchHelper.ValidateQuery(e.Channel, e.GetArg("query")).ConfigureAwait(false))) return;
|
||||||
@ -341,7 +341,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "quote")
|
cgb.CreateCommand(Prefix + "quote")
|
||||||
.Description("Shows a random quote.")
|
.Description($"Shows a random quote. | `{Prefix}quote`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var quote = NadekoBot.Config.Quotes[rng.Next(0, NadekoBot.Config.Quotes.Count)].ToString();
|
var quote = NadekoBot.Config.Quotes[rng.Next(0, NadekoBot.Config.Quotes.Count)].ToString();
|
||||||
@ -349,7 +349,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "catfact")
|
cgb.CreateCommand(Prefix + "catfact")
|
||||||
.Description("Shows a random catfact from <http://catfacts-api.appspot.com/api/facts>")
|
.Description($"Shows a random catfact from <http://catfacts-api.appspot.com/api/facts> | `{Prefix}catfact`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var response = await SearchHelper.GetResponseStringAsync("http://catfacts-api.appspot.com/api/facts").ConfigureAwait(false);
|
var response = await SearchHelper.GetResponseStringAsync("http://catfacts-api.appspot.com/api/facts").ConfigureAwait(false);
|
||||||
@ -360,7 +360,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "yomama")
|
cgb.CreateCommand(Prefix + "yomama")
|
||||||
.Alias(Prefix + "ym")
|
.Alias(Prefix + "ym")
|
||||||
.Description("Shows a random joke from <http://api.yomomma.info/>")
|
.Description($"Shows a random joke from <http://api.yomomma.info/> | `{Prefix}ym`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var response = await SearchHelper.GetResponseStringAsync("http://api.yomomma.info/").ConfigureAwait(false);
|
var response = await SearchHelper.GetResponseStringAsync("http://api.yomomma.info/").ConfigureAwait(false);
|
||||||
@ -369,7 +369,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "randjoke")
|
cgb.CreateCommand(Prefix + "randjoke")
|
||||||
.Alias(Prefix + "rj")
|
.Alias(Prefix + "rj")
|
||||||
.Description("Shows a random joke from <http://tambal.azurewebsites.net/joke/random>")
|
.Description($"Shows a random joke from <http://tambal.azurewebsites.net/joke/random> | `{Prefix}rj`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var response = await SearchHelper.GetResponseStringAsync("http://tambal.azurewebsites.net/joke/random").ConfigureAwait(false);
|
var response = await SearchHelper.GetResponseStringAsync("http://tambal.azurewebsites.net/joke/random").ConfigureAwait(false);
|
||||||
@ -378,7 +378,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "chucknorris")
|
cgb.CreateCommand(Prefix + "chucknorris")
|
||||||
.Alias(Prefix + "cn")
|
.Alias(Prefix + "cn")
|
||||||
.Description("Shows a random chucknorris joke from <http://tambal.azurewebsites.net/joke/random>")
|
.Description($"Shows a random chucknorris joke from <http://tambal.azurewebsites.net/joke/random> | `{Prefix}cn`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var response = await SearchHelper.GetResponseStringAsync("http://api.icndb.com/jokes/random/").ConfigureAwait(false);
|
var response = await SearchHelper.GetResponseStringAsync("http://api.icndb.com/jokes/random/").ConfigureAwait(false);
|
||||||
@ -387,7 +387,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "magicitem")
|
cgb.CreateCommand(Prefix + "magicitem")
|
||||||
.Alias(Prefix + "mi")
|
.Alias(Prefix + "mi")
|
||||||
.Description("Shows a random magicitem from <https://1d4chan.org/wiki/List_of_/tg/%27s_magic_items>")
|
.Description($"Shows a random magicitem from <https://1d4chan.org/wiki/List_of_/tg/%27s_magic_items> | `{Prefix}mi`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var magicItems = JsonConvert.DeserializeObject<List<MagicItem>>(File.ReadAllText("data/magicitems.json"));
|
var magicItems = JsonConvert.DeserializeObject<List<MagicItem>>(File.ReadAllText("data/magicitems.json"));
|
||||||
@ -397,7 +397,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "revav")
|
cgb.CreateCommand(Prefix + "revav")
|
||||||
.Description($"Returns a google reverse image search for someone's avatar. | `{Prefix}revav \"@SomeGuy\"")
|
.Description($"Returns a google reverse image search for someone's avatar. | `{Prefix}revav \"@SomeGuy\"`")
|
||||||
.Parameter("user", ParameterType.Unparsed)
|
.Parameter("user", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ namespace NadekoBot.Modules.Translator
|
|||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "translangs")
|
cgb.CreateCommand(Module.Prefix + "translangs")
|
||||||
.Description("List the valid languages for translation.")
|
.Description("List the valid languages for translation. | `{Prefix}translangs` or `{Prefix}translangs language`")
|
||||||
.Parameter("search", ParameterType.Optional)
|
.Parameter("search", ParameterType.Optional)
|
||||||
.Do(ListLanguagesFunc());
|
.Do(ListLanguagesFunc());
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ namespace NadekoBot.Modules.Utility.Commands
|
|||||||
{
|
{
|
||||||
cgb.CreateCommand(Module.Prefix + "serverinfo")
|
cgb.CreateCommand(Module.Prefix + "serverinfo")
|
||||||
.Alias(Module.Prefix + "sinfo")
|
.Alias(Module.Prefix + "sinfo")
|
||||||
.Description($"Shows info about the server the bot is on. If no channel is supplied, it defaults to current one. |{Module.Prefix}sinfo Some Server")
|
.Description($"Shows info about the server the bot is on. If no channel is supplied, it defaults to current one. |`{Module.Prefix}sinfo Some Server`")
|
||||||
.Parameter("server", ParameterType.Optional)
|
.Parameter("server", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -49,7 +49,7 @@ namespace NadekoBot.Modules.Utility.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "channelinfo")
|
cgb.CreateCommand(Module.Prefix + "channelinfo")
|
||||||
.Alias(Module.Prefix + "cinfo")
|
.Alias(Module.Prefix + "cinfo")
|
||||||
.Description($"Shows info about the channel. If no channel is supplied, it defaults to current one. |{Module.Prefix}cinfo #some-channel")
|
.Description($"Shows info about the channel. If no channel is supplied, it defaults to current one. |`{Module.Prefix}cinfo #some-channel`")
|
||||||
.Parameter("channel", ParameterType.Optional)
|
.Parameter("channel", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ namespace NadekoBot.Modules.Utility.Commands
|
|||||||
|
|
||||||
cgb.CreateCommand(Module.Prefix + "userinfo")
|
cgb.CreateCommand(Module.Prefix + "userinfo")
|
||||||
.Alias(Module.Prefix + "uinfo")
|
.Alias(Module.Prefix + "uinfo")
|
||||||
.Description($"Shows info about the user. If no user is supplied, it defaults a user running the command. |{Module.Prefix}uinfo @SomeUser")
|
.Description($"Shows info about the user. If no user is supplied, it defaults a user running the command. |`{Module.Prefix}uinfo @SomeUser`")
|
||||||
.Parameter("user", ParameterType.Optional)
|
.Parameter("user", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -88,7 +88,7 @@ namespace NadekoBot.Modules.Utility.Commands
|
|||||||
.Description("Sends a message to you or a channel after certain amount of time. " +
|
.Description("Sends a message to you or a channel after certain amount of time. " +
|
||||||
"First argument is me/here/'channelname'. Second argument is time in a descending order (mo>w>d>h>m) example: 1w5d3h10m. " +
|
"First argument is me/here/'channelname'. Second argument is time in a descending order (mo>w>d>h>m) example: 1w5d3h10m. " +
|
||||||
"Third argument is a (multiword)message. " +
|
"Third argument is a (multiword)message. " +
|
||||||
" | `.remind me 1d5h Do something` or `.remind #general Start now!`")
|
$" | `{Prefix}remind me 1d5h Do something` or `{Prefix}remind #general Start now!`")
|
||||||
.Parameter("meorchannel", ParameterType.Required)
|
.Parameter("meorchannel", ParameterType.Required)
|
||||||
.Parameter("time", ParameterType.Required)
|
.Parameter("time", ParameterType.Required)
|
||||||
.Parameter("message", ParameterType.Unparsed)
|
.Parameter("message", ParameterType.Unparsed)
|
||||||
@ -180,7 +180,7 @@ namespace NadekoBot.Modules.Utility.Commands
|
|||||||
cgb.CreateCommand(Module.Prefix + "remindmsg")
|
cgb.CreateCommand(Module.Prefix + "remindmsg")
|
||||||
.Description("Sets message for when the remind is triggered. " +
|
.Description("Sets message for when the remind is triggered. " +
|
||||||
" Available placeholders are %user% - user who ran the command, %message% -" +
|
" Available placeholders are %user% - user who ran the command, %message% -" +
|
||||||
" Message specified in the remind, %target% - target channel of the remind. **Bot Owner Only!**")
|
$" Message specified in the remind, %target% - target channel of the remind. **Bot Owner Only!** | `{Prefix}remindmsg do something else`")
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -87,7 +87,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "checkmyperms")
|
cgb.CreateCommand(Prefix + "checkmyperms")
|
||||||
.Description("Checks your userspecific permissions on this channel.")
|
.Description($"Checks your userspecific permissions on this channel. | `{Prefix}checkmyperms`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var output = "```\n";
|
var output = "```\n";
|
||||||
@ -100,21 +100,21 @@ namespace NadekoBot.Modules.Utility
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "stats")
|
cgb.CreateCommand(Prefix + "stats")
|
||||||
.Description("Shows some basic stats for Nadeko.")
|
.Description($"Shows some basic stats for Nadeko. | `{Prefix}stats`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage(await NadekoStats.Instance.GetStats()).ConfigureAwait(false);
|
await e.Channel.SendMessage(await NadekoStats.Instance.GetStats()).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "dysyd")
|
cgb.CreateCommand(Prefix + "dysyd")
|
||||||
.Description("Shows some basic stats for Nadeko.")
|
.Description($"Shows some basic stats for Nadeko. | `{Prefix}dysyd`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage((await NadekoStats.Instance.GetStats()).Matrix().TrimTo(1990)).ConfigureAwait(false);
|
await e.Channel.SendMessage((await NadekoStats.Instance.GetStats()).Matrix().TrimTo(1990)).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "userid").Alias(Prefix + "uid")
|
cgb.CreateCommand(Prefix + "userid").Alias(Prefix + "uid")
|
||||||
.Description($"Shows user ID. | `{Prefix}uid` or `{Prefix}uid \"@SomeGuy\"")
|
.Description($"Shows user ID. | `{Prefix}uid` or `{Prefix}uid \"@SomeGuy\"`")
|
||||||
.Parameter("user", ParameterType.Unparsed)
|
.Parameter("user", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user