Got bored so i thought i'd add stuff
This commit is contained in:
parent
5964725190
commit
b5e0e257d8
@ -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. | `{Prefix}delmsgoncmd`")
|
.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 =>
|
||||||
{
|
{
|
||||||
@ -90,7 +90,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "setrole").Alias(Prefix + "sr")
|
cgb.CreateCommand(Prefix + "setrole").Alias(Prefix + "sr")
|
||||||
.Description($"Sets a role for a given user. | `{Prefix}sr @User Guest`")
|
.Description($"Sets a role for a given user. **Needs Manage Roles Permissions.**| `{Prefix}sr @User Guest`")
|
||||||
.Parameter("user_name", ParameterType.Required)
|
.Parameter("user_name", ParameterType.Required)
|
||||||
.Parameter("role_name", ParameterType.Unparsed)
|
.Parameter("role_name", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
@ -133,7 +133,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "removerole").Alias(Prefix + "rr")
|
cgb.CreateCommand(Prefix + "removerole").Alias(Prefix + "rr")
|
||||||
.Description($"Removes a role from a given user. | `{Prefix}rr @User Admin`")
|
.Description($"Removes a role from a given user. **Needs Manage Roles Permissions.**| `{Prefix}rr @User Admin`")
|
||||||
.Parameter("user_name", ParameterType.Required)
|
.Parameter("user_name", ParameterType.Required)
|
||||||
.Parameter("role_name", ParameterType.Unparsed)
|
.Parameter("role_name", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
@ -171,7 +171,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "renamerole")
|
cgb.CreateCommand(Prefix + "renamerole")
|
||||||
.Alias(Prefix + "renr")
|
.Alias(Prefix + "renr")
|
||||||
.Description($"Renames a role. Role you are renaming must be lower than bot's highest role. | `{Prefix}renr \"First role\" SecondRole`")
|
.Description($"Renames a role. Roles you are renaming must be lower than bot's highest role. **Manage Roles Permissions.** | `{Prefix}renr \"First role\" SecondRole`")
|
||||||
.Parameter("r1", ParameterType.Required)
|
.Parameter("r1", ParameterType.Required)
|
||||||
.Parameter("r2", ParameterType.Required)
|
.Parameter("r2", ParameterType.Required)
|
||||||
.AddCheck(new SimpleCheckers.ManageRoles())
|
.AddCheck(new SimpleCheckers.ManageRoles())
|
||||||
@ -204,7 +204,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "removeallroles").Alias(Prefix + "rar")
|
cgb.CreateCommand(Prefix + "removeallroles").Alias(Prefix + "rar")
|
||||||
.Description($"Removes all roles from a mentioned user. | `{Prefix}rar @User`")
|
.Description($"Removes all roles from a mentioned user. **Needs Manage Roles Permissions.**| `{Prefix}rar @User`")
|
||||||
.Parameter("user_name", ParameterType.Unparsed)
|
.Parameter("user_name", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -230,7 +230,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "createrole").Alias(Prefix + "cr")
|
cgb.CreateCommand(Prefix + "createrole").Alias(Prefix + "cr")
|
||||||
.Description($"Creates a role with a given name. | `{Prefix}cr Awesome Role`")
|
.Description($"Creates a role with a given name. **Needs Manage Roles Permissions.**| `{Prefix}cr Awesome Role`")
|
||||||
.Parameter("role_name", ParameterType.Unparsed)
|
.Parameter("role_name", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -253,7 +253,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
.Parameter("r", ParameterType.Optional)
|
.Parameter("r", ParameterType.Optional)
|
||||||
.Parameter("g", ParameterType.Optional)
|
.Parameter("g", ParameterType.Optional)
|
||||||
.Parameter("b", ParameterType.Optional)
|
.Parameter("b", ParameterType.Optional)
|
||||||
.Description($"Set a role's color to the hex or 0-255 rgb color value provided. | `{Prefix}rc Admin 255 200 100` or `{Prefix}rc Admin ffba55`")
|
.Description($"Set a role's color to the hex or 0-255 rgb color value provided. **Needs Manage Roles Permissions.** | `{Prefix}rc Admin 255 200 100` or `{Prefix}rc Admin ffba55`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!e.User.ServerPermissions.ManageRoles)
|
if (!e.User.ServerPermissions.ManageRoles)
|
||||||
@ -298,7 +298,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
cgb.CreateCommand(Prefix + "ban").Alias(Prefix + "b")
|
cgb.CreateCommand(Prefix + "ban").Alias(Prefix + "b")
|
||||||
.Parameter("user", ParameterType.Required)
|
.Parameter("user", ParameterType.Required)
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.Description($"Bans a user by id or name with an optional message. | `{Prefix}b \"@some Guy\" Your behaviour is toxic.`")
|
.Description($"Bans a user by id or name with an optional message. **Needs Ban Permissions.**| `{Prefix}b \"@some Guy\" Your behaviour is toxic.`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var msg = e.GetArg("msg");
|
var msg = e.GetArg("msg");
|
||||||
@ -333,7 +333,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
cgb.CreateCommand(Prefix + "softban").Alias(Prefix + "sb")
|
cgb.CreateCommand(Prefix + "softban").Alias(Prefix + "sb")
|
||||||
.Parameter("user", ParameterType.Required)
|
.Parameter("user", ParameterType.Required)
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.Description($"Bans and then unbans a user by id or name with an optional message. | `{Prefix}sb \"@some Guy\" Your behaviour is toxic.`")
|
.Description($"Bans and then unbans a user by id or name with an optional message. **Needs Ban Permissions.**| `{Prefix}sb \"@some Guy\" Your behaviour is toxic.`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var msg = e.GetArg("msg");
|
var msg = e.GetArg("msg");
|
||||||
@ -369,7 +369,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
cgb.CreateCommand(Prefix + "kick").Alias(Prefix + "k")
|
cgb.CreateCommand(Prefix + "kick").Alias(Prefix + "k")
|
||||||
.Parameter("user")
|
.Parameter("user")
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.Description($"Kicks a mentioned user. | `{Prefix}k \"@some Guy\" Your behaviour is toxic.`")
|
.Description($"Kicks a mentioned user. **Needs Kick Permissions.**| `{Prefix}k \"@some Guy\" Your behaviour is toxic.`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var msg = e.GetArg("msg");
|
var msg = e.GetArg("msg");
|
||||||
@ -400,7 +400,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
cgb.CreateCommand(Prefix + "mute")
|
cgb.CreateCommand(Prefix + "mute")
|
||||||
.Description($"Mutes mentioned user or users. | `{Prefix}mute \"@Someguy\"` or `{Prefix}mute \"@Someguy\" \"@Someguy\"`")
|
.Description($"Mutes mentioned user or users. **Needs Mute Permissions.**| `{Prefix}mute \"@Someguy\"` or `{Prefix}mute \"@Someguy\" \"@Someguy\"`")
|
||||||
.Parameter("throwaway", ParameterType.Unparsed)
|
.Parameter("throwaway", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -426,7 +426,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "unmute")
|
cgb.CreateCommand(Prefix + "unmute")
|
||||||
.Description($"Unmutes mentioned user or users. | `{Prefix}unmute \"@Someguy\"` or `{Prefix}unmute \"@Someguy\" \"@Someguy\"`")
|
.Description($"Unmutes mentioned user or users. **Needs Mute Permissions.**| `{Prefix}unmute \"@Someguy\"` or `{Prefix}unmute \"@Someguy\" \"@Someguy\"`")
|
||||||
.Parameter("throwaway", ParameterType.Unparsed)
|
.Parameter("throwaway", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -453,7 +453,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "deafen")
|
cgb.CreateCommand(Prefix + "deafen")
|
||||||
.Alias(Prefix + "deaf")
|
.Alias(Prefix + "deaf")
|
||||||
.Description($"Deafens mentioned user or users | `{Prefix}deaf \"@Someguy\"` or `{Prefix}deaf \"@Someguy\" \"@Someguy\"`")
|
.Description($"Deafens mentioned user or users. **Needs Deafen Permissions.**| `{Prefix}deaf \"@Someguy\"` or `{Prefix}deaf \"@Someguy\" \"@Someguy\"`")
|
||||||
.Parameter("throwaway", ParameterType.Unparsed)
|
.Parameter("throwaway", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -480,7 +480,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "undeafen")
|
cgb.CreateCommand(Prefix + "undeafen")
|
||||||
.Alias(Prefix + "undef")
|
.Alias(Prefix + "undef")
|
||||||
.Description($"Undeafens mentioned user or users | `{Prefix}undef \"@Someguy\"` or `{Prefix}undef \"@Someguy\" \"@Someguy\"`")
|
.Description($"Undeafens mentioned user or users. **Needs Deafen Permissions.** | `{Prefix}undef \"@Someguy\"` or `{Prefix}undef \"@Someguy\" \"@Someguy\"`")
|
||||||
.Parameter("throwaway", ParameterType.Unparsed)
|
.Parameter("throwaway", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -507,7 +507,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "delvoichanl")
|
cgb.CreateCommand(Prefix + "delvoichanl")
|
||||||
.Alias(Prefix + "dvch")
|
.Alias(Prefix + "dvch")
|
||||||
.Description($"Deletes a voice channel with a given name. | `{Prefix}dvch VoiceChannelName`")
|
.Description($"Deletes a voice channel with a given name. **Needs Manage Channel Permissions.**| `{Prefix}dvch VoiceChannelName`")
|
||||||
.Parameter("channel_name", ParameterType.Required)
|
.Parameter("channel_name", ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -530,7 +530,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "creatvoichanl")
|
cgb.CreateCommand(Prefix + "creatvoichanl")
|
||||||
.Alias(Prefix + "cvch")
|
.Alias(Prefix + "cvch")
|
||||||
.Description($"Creates a new voice channel with a given name. | `{Prefix}cvch VoiceChannelName`")
|
.Description($"Creates a new voice channel with a given name. **Needs Manage Channel Permissions.** | `{Prefix}cvch VoiceChannelName`")
|
||||||
.Parameter("channel_name", ParameterType.Required)
|
.Parameter("channel_name", ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -550,7 +550,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "deltxtchanl")
|
cgb.CreateCommand(Prefix + "deltxtchanl")
|
||||||
.Alias(Prefix + "dtch")
|
.Alias(Prefix + "dtch")
|
||||||
.Description($"Deletes a text channel with a given name. | `{Prefix}dtch TextChannelName`")
|
.Description($"Deletes a text channel with a given name. **Needs Manage Channel Permissions.** | `{Prefix}dtch TextChannelName`")
|
||||||
.Parameter("channel_name", ParameterType.Required)
|
.Parameter("channel_name", ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -572,7 +572,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "creatxtchanl")
|
cgb.CreateCommand(Prefix + "creatxtchanl")
|
||||||
.Alias(Prefix + "ctch")
|
.Alias(Prefix + "ctch")
|
||||||
.Description($"Creates a new text channel with a given name. | `{Prefix}ctch TextChannelName`")
|
.Description($"Creates a new text channel with a given name. **Needs Manage Channel Permissions.** | `{Prefix}ctch TextChannelName`")
|
||||||
.Parameter("channel_name", ParameterType.Required)
|
.Parameter("channel_name", ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -592,7 +592,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "settopic")
|
cgb.CreateCommand(Prefix + "settopic")
|
||||||
.Alias(Prefix + "st")
|
.Alias(Prefix + "st")
|
||||||
.Description($"Sets a topic on the current channel. | `{Prefix}st My new topic`")
|
.Description($"Sets a topic on the current channel. **Needs Manage Channel Permissions.** | `{Prefix}st My new topic`")
|
||||||
.AddCheck(SimpleCheckers.ManageChannels())
|
.AddCheck(SimpleCheckers.ManageChannels())
|
||||||
.Parameter("topic", ParameterType.Unparsed)
|
.Parameter("topic", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -604,7 +604,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "setchanlname")
|
cgb.CreateCommand(Prefix + "setchanlname")
|
||||||
.Alias(Prefix + "schn")
|
.Alias(Prefix + "schn")
|
||||||
.Description($"Changed the name of the current channel.| `{Prefix}schn NewName`")
|
.Description($"Changed the name of the current channel. **Needs Manage Channel Permissions.**| `{Prefix}schn NewName`")
|
||||||
.AddCheck(SimpleCheckers.ManageChannels())
|
.AddCheck(SimpleCheckers.ManageChannels())
|
||||||
.Parameter("name", ParameterType.Unparsed)
|
.Parameter("name", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -815,7 +815,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "donators")
|
cgb.CreateCommand(Prefix + "donators")
|
||||||
.Description("List of lovely people who donated to keep this project alive. | `{Prefix}donators`")
|
.Description($"List of lovely people who donated to keep this project alive. | `{Prefix}donators`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await Task.Run(async () =>
|
await Task.Run(async () =>
|
||||||
@ -829,7 +829,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "donadd")
|
cgb.CreateCommand(Prefix + "donadd")
|
||||||
.Description($"Add a donator to the database. | `{Prefix}donadd Donate Amount`")
|
.Description($"Add a donator to the database. **Kwoth Only** | `{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. |`{Prefix}aar` to disable, `{Prefix}aar Role Name` to enable")
|
.Description($"Automaticaly assigns a specified role to every user who joins the server. **Needs Manage Roles Permissions.** |`{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. | `{Prefix}scsc`")
|
$"that other people will use to tune in to the same instance. **Bot Owner Only.** | `{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. | `{Prefix}jcsc`")
|
.Description($"Joins current channel to an instance of cross server channel using the token. **Needs Manage Server Permissions.**| `{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. | `{Prefix}lcsc`")
|
.Description($"Leaves Cross server channel instance from this channel. **Needs Manage Server Permissions.**| `{Prefix}lcsc`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -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). | `{Prefix}dcr index`")
|
.Description($"Deletes a custom reaction with given name (and index). **Bot Owner Only.**| `{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. | `{Prefix}lin`")
|
.Description($"List all UNREAD incidents and flags them as read. **Needs Manage Server Permissions.**| `{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. | `{Prefix}lain`")
|
.Description($"Sends you a file containing all incidents and flags them as read. **Needs Manage Server Permissions.**| `{Prefix}lain`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
@ -375,7 +375,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
{
|
{
|
||||||
|
|
||||||
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. | `{Prefix}spmom`")
|
.Description($"Toggles whether mentions of other offline users on your server will send a pm to them. **Needs Manage Server Permissions.**| `{Prefix}spmom`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -413,7 +413,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
|
|
||||||
|
|
||||||
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. | `{Prefix}logignore`")
|
.Description($"Toggles whether the {Prefix}logserver command ignores this channel. Useful if you have hidden admin channel and public log channel. **Bot Owner Only!**| `{Prefix}logignore`")
|
||||||
.AddCheck(SimpleCheckers.OwnerOnly())
|
.AddCheck(SimpleCheckers.OwnerOnly())
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -431,7 +431,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
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. | `{Prefix}userpresence`")
|
.Description($"Starts logging to this channel when someone from the server goes online/offline/idle. **Needs Manage Server Permissions.**| `{Prefix}userpresence`")
|
||||||
.AddCheck(SimpleCheckers.ManageServer())
|
.AddCheck(SimpleCheckers.ManageServer())
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -447,7 +447,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
});
|
});
|
||||||
|
|
||||||
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. | `{Prefix}voicerpresence`")
|
.Description($"Toggles logging to this channel whenever someone joins or leaves a voice channel you are in right now. **Needs Manage Server Permissions.**| `{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. | `{Prefix}repinv`")
|
.Description($"Immediately shows the repeat message and restarts the timer. **Needs Manage Messages Permissions.**| `{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. |`{Prefix}repeat 5 Hello there`")
|
$"repeat is disabled. **Needs Manage Messages Permissions.** |`{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. | `{Prefix}ropl`")
|
.Description($"Toggles rotation of playing status of the dynamic strings you specified earlier. **Bot Owner Only!** | `{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)+ $" | `{Prefix}adpl`")
|
"Supported placeholders: " + string.Join(", ", PlayingPlaceholders.Keys)+ $" **Bot Owner Only!**| `{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. | `{Prefix}lipl`")
|
.Description($"Lists all playing statuses with their corresponding number. **Bot Owner Only!**| `{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. | `{Prefix}rmpl`")
|
.Description($"Removes a playing string on a given number. **Bot Owner Only!**| `{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. | `{Prefix}slowmode`")
|
.Description($"Toggles slow mode. When ON, users will be able to send only 1 message every 5 seconds. **Needs Manage Messages Permissions.**| `{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. | `{Prefix}asar Gamer`")
|
$"(use quotations for multiword roles) to the list of self-assignable roles. **Needs Manage Roles Permissions.**| `{Prefix}asar Gamer`")
|
||||||
.Parameter("roles", ParameterType.Multiple)
|
.Parameter("roles", ParameterType.Multiple)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.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. | `{Prefix}leave 123123123331`")
|
.Description($"Makes Nadeko leave the server. Either name or id required. **Bot Owner Only!**| `{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. | `{Prefix}grdel`")
|
.Description($"Toggles automatic deletion of greet and bye messages. **Needs Manage Server Permissions.**| `{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. | `{Prefix}greet`")
|
.Description($"Toggles anouncements on the current channel when someone joins the server. **Needs Manage Server Permissions.**| `{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. | `{Prefix}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. **Needs Manage Server Permissions.**| `{Prefix}greetmsg Welcome to the server, %user%.`")
|
||||||
.Parameter("msg", ParameterType.Unparsed)
|
.Parameter("msg", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -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. | `{Prefix}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. **Needs Manage Server Permissions.**| `{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. | `{Prefix}byepm`")
|
.Description($"Toggles whether the good bye messages will be sent in a PM or in the text channel. **Needs Manage Server Permissions.**| `{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. | `{Prefix}greetpm`")
|
.Description($"Toggles whether the greet messages will be sent in a PM or in the text channel. **Needs Manage Server Permissions.**| `{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.** | `{Prefix}cleanv+t`")
|
.Description($"Deletes all text channels ending in `-voice` for which voicechannels are not found. **Use at your own risk.\nNeeds Manage Roles and Manage Channels Permissions.** | `{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. | `{Prefix}voice+text`")
|
$"If you are server owner, keep in mind you will see them all the time regardless. **Needs Manage Roles and Manage Channels Permissions.**| `{Prefix}voice+text`")
|
||||||
.AddCheck(SimpleCheckers.ManageChannels())
|
.AddCheck(SimpleCheckers.ManageChannels())
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
|
@ -756,7 +756,7 @@ namespace NadekoBot.Modules.Music
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "getlink")
|
cgb.CreateCommand(Prefix + "getlink")
|
||||||
.Alias(Prefix + "gl")
|
.Alias(Prefix + "gl")
|
||||||
.Description("Shows a link to the song in the queue by index, or the currently playing song by default. | `{Prefix}gl`")
|
.Description($"Shows a link to the song in the queue by index, or the currently playing song by default. | `{Prefix}gl`")
|
||||||
.Parameter("index", ParameterType.Optional)
|
.Parameter("index", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -791,7 +791,7 @@ namespace NadekoBot.Modules.Music
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "autoplay")
|
cgb.CreateCommand(Prefix + "autoplay")
|
||||||
.Alias(Prefix + "ap")
|
.Alias(Prefix + "ap")
|
||||||
.Description("Toggles autoplay - When the song is finished, automatically queue a related youtube song. (Works only for youtube songs and when queue is empty) | `{Prefix}ap`")
|
.Description($"Toggles autoplay - When the song is finished, automatically queue a related youtube song. (Works only for youtube songs and when queue is empty) | `{Prefix}ap`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -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. | {Prefix}calc 1+1")
|
.Description($"Evaluate a mathematical expression. | `{Prefix}calc 1+1`")
|
||||||
.Parameter("expression", ParameterType.Unparsed)
|
.Parameter("expression", ParameterType.Unparsed)
|
||||||
.Do(EvalFunc());
|
.Do(EvalFunc());
|
||||||
}
|
}
|
||||||
|
@ -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. |{Prefix}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 =>
|
||||||
|
@ -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. | `{Prefix}aq aquerion evol`")
|
.Description($"Queries anilist for an anime and shows the first result. | `{Prefix}aq aquarion 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;
|
||||||
@ -106,7 +106,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "imdb")
|
cgb.CreateCommand(Prefix + "imdb")
|
||||||
.Parameter("query", ParameterType.Unparsed)
|
.Parameter("query", ParameterType.Unparsed)
|
||||||
.Description($"Queries imdb for movies or series, show first result. | `{Prefix}imdb query`")
|
.Description($"Queries imdb for movies or series, show first result. | `{Prefix}imdb Batman vs Superman`")
|
||||||
.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;
|
||||||
@ -130,7 +130,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
cgb.CreateCommand(Prefix + "mang")
|
cgb.CreateCommand(Prefix + "mang")
|
||||||
.Alias(Prefix + "manga").Alias(Prefix + "mq")
|
.Alias(Prefix + "manga").Alias(Prefix + "mq")
|
||||||
.Parameter("query", ParameterType.Unparsed)
|
.Parameter("query", ParameterType.Unparsed)
|
||||||
.Description($"Queries anilist for a manga and shows the first result. | `{Prefix}mq query`")
|
.Description($"Queries anilist for a manga and shows the first result. | `{Prefix}mq Shingeki no kyojin`")
|
||||||
.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;
|
||||||
@ -149,7 +149,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "randomcat")
|
cgb.CreateCommand(Prefix + "randomcat")
|
||||||
.Alias(Prefix + "meow")
|
.Alias(Prefix + "meow")
|
||||||
.Description("Shows a random cat image. | `{Prefix}meow`")
|
.Description($"Shows a random cat image. | `{Prefix}meow`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage(JObject.Parse(
|
await e.Channel.SendMessage(JObject.Parse(
|
||||||
@ -159,7 +159,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "randomdog")
|
cgb.CreateCommand(Prefix + "randomdog")
|
||||||
.Alias(Prefix + "woof")
|
.Alias(Prefix + "woof")
|
||||||
.Description("Shows a random dog image. | `{Prefix}woof`")
|
.Description($"Shows a random dog image. | `{Prefix}woof`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage("http://random.dog/" + await SearchHelper.GetResponseStringAsync("http://random.dog/woof").ConfigureAwait(false)).ConfigureAwait(false);
|
await e.Channel.SendMessage("http://random.dog/" + await SearchHelper.GetResponseStringAsync("http://random.dog/woof").ConfigureAwait(false)).ConfigureAwait(false);
|
||||||
@ -502,7 +502,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
cgb.CreateCommand(Prefix + "av")
|
cgb.CreateCommand(Prefix + "av")
|
||||||
.Alias(Prefix + "avatar")
|
.Alias(Prefix + "avatar")
|
||||||
.Parameter("mention", ParameterType.Required)
|
.Parameter("mention", ParameterType.Required)
|
||||||
.Description($"Shows a mentioned person's avatar. | `{Prefix}av @X`")
|
.Description($"Shows a mentioned person's avatar. | `{Prefix}av \"@SomeGuy\"`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var usr = e.Channel.FindUsers(e.GetArg("mention")).FirstOrDefault();
|
var usr = e.Channel.FindUsers(e.GetArg("mention")).FirstOrDefault();
|
||||||
|
@ -71,7 +71,7 @@ namespace NadekoBot.Modules.Trello
|
|||||||
cgb.CreateCommand(Prefix + "bind")
|
cgb.CreateCommand(Prefix + "bind")
|
||||||
.Description("Bind a trello bot to a single channel. " +
|
.Description("Bind a trello bot to a single channel. " +
|
||||||
"You will receive notifications from your board when something is added or edited." +
|
"You will receive notifications from your board when something is added or edited." +
|
||||||
$" | `{Prefix}bind [board_id]`")
|
$" **Bot Owner Only!**| `{Prefix}bind [board_id]`")
|
||||||
.Parameter("board_id", Discord.Commands.ParameterType.Required)
|
.Parameter("board_id", Discord.Commands.ParameterType.Required)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@ namespace NadekoBot.Modules.Trello
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "unbind")
|
cgb.CreateCommand(Prefix + "unbind")
|
||||||
.Description($"Unbinds a bot from the channel and board. | `{Prefix}unbind`")
|
.Description($"Unbinds a bot from the channel and board. **Bot Owner Only!**| `{Prefix}unbind`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!NadekoBot.IsOwner(e.User.Id)) return;
|
if (!NadekoBot.IsOwner(e.User.Id)) return;
|
||||||
@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Trello
|
|||||||
|
|
||||||
cgb.CreateCommand(Prefix + "lists")
|
cgb.CreateCommand(Prefix + "lists")
|
||||||
.Alias(Prefix + "list")
|
.Alias(Prefix + "list")
|
||||||
.Description($"Lists all lists, yo ;) | `{Prefix}list`")
|
.Description($"Lists all lists, yo ;) **Bot Owner Only!**| `{Prefix}list`")
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
if (!NadekoBot.IsOwner(e.User.Id)) return;
|
if (!NadekoBot.IsOwner(e.User.Id)) return;
|
||||||
@ -116,7 +116,7 @@ namespace NadekoBot.Modules.Trello
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(Prefix + "cards")
|
cgb.CreateCommand(Prefix + "cards")
|
||||||
.Description($"Lists all cards from the supplied list. You can supply either a name or an index. | `{Prefix}cards index`")
|
.Description($"Lists all cards from the supplied list. You can supply either a name or an index. **Bot Owner Only!**| `{Prefix}cards index`")
|
||||||
.Parameter("list_name", Discord.Commands.ParameterType.Unparsed)
|
.Parameter("list_name", Discord.Commands.ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user