diff --git a/pluginlist.json b/pluginlist.json index 57ae9f6..f088536 100644 --- a/pluginlist.json +++ b/pluginlist.json @@ -1,67 +1,35 @@ [ { - "description" : "\n\n This plugin checks if a channel is the specified type\n", - "hash" : "a3f95ec62e1480b8c3318443cc8184c0", - "name" : "channelType", - "author" : [ "@Benzo-Fury [<@762918086349029386>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/channelType.ts", - "example" : "\n\n ```ts\n import { channelType } from \"../plugins/channelType\";\n import { ChannelType } from \"discord.js\"\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ channelType([ChannelType.GuildText], 'This cannot be used here') ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "description" : "\n\n Checks if a command is available in a specific server.\n", + "hash" : "cdacf2da513618f7676784c852b34cce", + "name" : "serverOnly", + "author" : [ "@Peter-MJ-Parker [<@371759410009341952>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/serverOnly.ts", + "example" : "\n\n ```ts\n import { commandModule, CommandType } from \"@sern/handler\";\n import { serverOnly } from \"../plugins/serverOnly\";\n export default commandModule({\n type: CommandType.Both,\n plugins: [serverOnly([\"guildId\"], failMessage)], // fail message is the message you will see when the command is ran in the wrong server.\n description: \"command description\",\n execute: async (ctx, args) => {\n // your code here\n },\n });\n ```", "version" : "1.0.0" -}, { - "description" : "\n\n This is perm check, it allows users to parse the permission you want and let the plugin do the rest. (check bot or user for that perm).\n", - "hash" : "53a69e2b4f74b0635f51222b74921edd", - "name" : "requirePermission", - "author" : [ "@Benzo-Fury [<@762918086349029386>]", "@needhamgary [<@342314924804014081>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/requirePermission.ts", - "example" : "\n\n ```ts\n import { requirePermission } from \"../plugins/myPermCheck\";\n import { commandModule, CommandType } from \"@sern/handler\";\n export default commandModule({\n plugins: [ requirePermission('target', 'permission', 'No response (optional)') ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", - "version" : "1.2.0" -}, { - "description" : "\n\n [DEPRECATED] It allows you to publish your application commands using the discord.js library with ease.\n", - "hash" : "66ef98cb1b934c774c7a1d987db1486d", - "name" : "publish", - "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/publish.ts", - "example" : "\n\n ```ts\n import { publish } from \"../plugins/publish\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ publish() ], // put an object containing permissions, ids for guild commands, boolean for dmPermission\n // plugins: [ publish({ guildIds: ['guildId'], defaultMemberPermissions: 'Administrator'})]\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", - "version" : "2.0.0" -}, { - "description" : "\n\n Disables a command entirely, for whatever reasons you may need.\n", - "hash" : "44a7ac3d807a24297d95c717056ed8ee", - "name" : "disable", - "author" : [ "@jacoobes [<@182326315813306368>]", "@Peter-MJ-Parker [<@371759410009341952>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/disable.ts", - "example" : "\n\n ```ts\n import { disable } from \"../plugins/disable\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ disable() ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", - "version" : "2.1.0" -}, { - "description" : "\n\n This is OwnerOnly plugin, it allows only bot owners to run the command, like eval.\n", - "hash" : "31adb9ef134cddda53e47e505620c905", - "name" : "ownerOnly", - "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/ownerOnly.ts", - "example" : "\n\n ```ts\n import { ownerOnly } from \"../plugins/ownerOnly\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ ownerOnly() ], // can also pass array of IDs to override default owner IDs\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", - "version" : "1.2.0" }, { "description" : "\n\n Inspired by the plugin \"requirePermission\" created by Benzo-Fury & needhamgary, this plugin will set permissions for specific subcommands without manually writing it into the code.\n", - "hash" : "0f2adb85f99056db6f172358bf917b2f", + "hash" : "fad4de0d7576f9e5db9be5da5e5cf531", "name" : "subcommandPermCheck", "author" : [ "@Peter-MJ-Parker [<@371759410009341952>]", "@MaxiIsSlayy [<@237210568791031809>]" ], "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/subcommandPermCheck.ts", "example" : "\n\n ```ts\n import { subcommandPermCheck } from \"../plugins/subcommandPerms.js\";\n import { commandModule, CommandType } from \"@sern/handler\";\n import { PermissionFlagBits } from \"discord.js\";\n export default commandModule({\n type: CommandType.Slash,\n plugins: [\n subcommandPermCheck({\n list: [\n { name: \"string\", perms: [PermissionFlagBits.Administrator] },\n { name: \"number\", perms: [PermissionFlagBits.SendMessages, PermissionFlagBits.UseVAD] }\n ],\n needAllPerms: true, //all = Require the member to have all perms stated or at least one?\n //response: \"OPTIONAL - respond to user with this message or default.\"\n })\n ],\n execute: ({ interaction }) => {\n \t\t//your code here\n }\n })\n ```", "version" : "1.0.1" }, { - "description" : "\n\n This is dmOnly plugin, it allows commands to be run only in DMs.\n", - "hash" : "63eabcaafdbd6b6fbd6e52372e656a21", - "name" : "dmOnly", - "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/dmOnly.ts", - "example" : "\n\n ```ts\n import { dmOnly } from \"../plugins/dmOnly\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [dmOnly()],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "description" : "\n\n This plugin checks if a channel is the specified type\n", + "hash" : "a3f95ec62e1480b8c3318443cc8184c0", + "name" : "channelType", + "author" : [ "@Benzo-Fury [<@762918086349029386>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/channelType.ts", + "example" : "\n\n ```ts\n import { channelType } from \"../plugins/channelType\";\n import { ChannelType } from \"discord.js\"\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ channelType([ChannelType.GuildText], 'This cannot be used here') ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", "version" : "1.0.0" }, { - "description" : "\n\n This is buttonConfirmation plugin, it runs confirmation prompt in the form of buttons.\n Note that you need to use edit/editReply in the command itself because we are already replying in the plugin!\n Credits to original plugin of confirmation using reactions and its author!\n", - "hash" : "7ff98585dba82b7ac5268458b246b9fc", - "name" : "buttonConfirmation", - "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/buttonConfirmation.ts", - "example" : "\n\n ```ts\n import { buttonConfirmation } from \"../plugins/buttonConfirmation\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ buttonConfirmation() ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", - "version" : "1.0.0" + "description" : "\n\n This is perm check, it allows users to parse the permission you want and let the plugin do the rest. (check user for that perm).\n Each function (other than \"command\") allows multiple options! [ { ... }, { ... }, { ... } ] See examples!\n", + "hash" : "2728032537d9ec6a0d845fbcae8d7c89", + "name" : "permCheck", + "author" : [ "@Benzo-Fury [<@762918086349029386>]", "@Peter-MJ-Parker [<@371759410009341952>]", "@MaxiIsSlayy [<@237210568791031809>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/permCheck.ts", + "example" : "\n\n ```ts\n import { permCheck } from \"../plugins/permCheck\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ permCheck([\"Administrator\", \"AddReactions\"], \"I am a custom response!\"),\n \t\tpermCheck.options([{ name: \"user\", needAllPerms: true, perms: [\"AttachFiles\", \"CreateEvents\"]}]),\n \t\tpermCheck.subcommands([{ name: \"list\", needAllPerms: false, perms: [\"Connect\"]}]),\n \t\tpermCheck.subGroups([{ name: \"list\", needAllPerms: false, perms: [\"Connect\"], response: \"I am also a custom response!\"}])],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "version" : "2.1.0" }, { "description" : "\n\n Asks the user for a confirmation msg before executing the command\n", "hash" : "f2bd8f2845694357a20346a99b388e2e", @@ -78,6 +46,14 @@ "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/nsfwOnly.ts", "example" : "\n\n ```ts\n import { nsfwOnly } from \"../plugins/nsfwOnly\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ nsfwOnly('response', true) ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", "version" : "1.0.1" +}, { + "description" : "\n\n Allows you to set cooldowns (or \"ratelimits\") for commands, limits user/channel/guild actions.\n An extra function cooldown2 is exported if you want your cooldown to be local to the command.", + "hash" : "747944c710f7970b8c6ef9e11f322808", + "name" : "cooldown", + "author" : [ "@trueharuu [<@504698587221852172>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/cooldown.ts", + "example" : "\n\n ```ts\n import { cooldown, cooldown2 } from \"../plugins/cooldown\";\n import { commandModule } from \"@sern/handler\";\n //IF you want this cooldown to be local to this command: \n const localCooldown = cooldown2()\n export default commandModule({\n plugins: [cooldown.add([['channel', '1/4']]), // limit to 1 action every 4 seconds per channel\n localCooldown.add([[\"user\", \"1/10\"]])], // limit to 1 action every 10 seconds, local to command\n execute: (ctx) => { //your code here }\n })\n ```", + "version" : "1.0.0" }, { "description" : "\n\n Generalized `filter` plugin. all credit to trueharuu.\n Perform declarative conditionals as plugins.", "hash" : "8a77e9bf4590a979136fcb479470321f", @@ -94,14 +70,6 @@ "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/assertFields.ts", "example" : "\n\n ```ts\n export default commandModule({\n type: CommandType.Modal,\n plugins: [\n assertFields({\n fields: {\n // check the modal field \"mcUsernameInput\" with the regex /a+b+c/\n mcUsernameInput: /a+b+c+/\n },\n failure: (errors, interaction) => {\n interaction.reply(errors.join(\"\\n\"))\n }\n }),\n ],\n execute: ctx => {\n ctx.reply(\"nice!\")\n }\n })\n ```", "version" : "1.0.0" -}, { - "description" : "\n\n This is perm check, it allows users to parse the permission you want and let the plugin do the rest. (check user for that perm).\n Each function (other than \"command\") allows multiple options! [ { ... }, { ... }, { ... } ] See examples!\n", - "hash" : "2728032537d9ec6a0d845fbcae8d7c89", - "name" : "permCheck", - "author" : [ "@Benzo-Fury [<@762918086349029386>]", "@Peter-MJ-Parker [<@371759410009341952>]", "@MaxiIsSlayy [<@237210568791031809>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/permCheck.ts", - "example" : "\n\n ```ts\n import { permCheck } from \"../plugins/permCheck\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ permCheck([\"Administrator\", \"AddReactions\"], \"I am a custom response!\"),\n \t\tpermCheck.options([{ name: \"user\", needAllPerms: true, perms: [\"AttachFiles\", \"CreateEvents\"]}]),\n \t\tpermCheck.subcommands([{ name: \"list\", needAllPerms: false, perms: [\"Connect\"]}]),\n \t\tpermCheck.subGroups([{ name: \"list\", needAllPerms: false, perms: [\"Connect\"], response: \"I am also a custom response!\"}])],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", - "version" : "2.1.0" }, { "description" : "\n\n fromCallback turns a callback into a plugin result.\n if the callback returns truthy value, plugin continues.\n This control plugin works for every command type. The arguments of the callback\n mirror the execute method on the current module.", "hash" : "6a085373d3d240922aa1d2c5b50fadd7", @@ -111,19 +79,51 @@ "example" : "\n\n ```ts\n const myServer = \"941002690211766332\";\n export default commandModule({\n type: CommandType.Both,\n plugins: [\n //This plugin prevents this command module from executing in other servers except myServer \n fromCallback((ctx, args) => ctx.guildId == myServer)\n ],\n execute: ctx => {\n ctx.reply(\"I only respond in myServer!\");\n }\n })\n ```", "version" : "1.0.0" }, { - "description" : "\n\n Checks if a command is available in a specific server.\n", - "hash" : "cdacf2da513618f7676784c852b34cce", - "name" : "serverOnly", - "author" : [ "@Peter-MJ-Parker [<@371759410009341952>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/serverOnly.ts", - "example" : "\n\n ```ts\n import { commandModule, CommandType } from \"@sern/handler\";\n import { serverOnly } from \"../plugins/serverOnly\";\n export default commandModule({\n type: CommandType.Both,\n plugins: [serverOnly([\"guildId\"], failMessage)], // fail message is the message you will see when the command is ran in the wrong server.\n description: \"command description\",\n execute: async (ctx, args) => {\n // your code here\n },\n });\n ```", + "description" : "\n\n Disables a command entirely, for whatever reasons you may need.\n", + "hash" : "44a7ac3d807a24297d95c717056ed8ee", + "name" : "disable", + "author" : [ "@jacoobes [<@182326315813306368>]", "@Peter-MJ-Parker [<@371759410009341952>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/disable.ts", + "example" : "\n\n ```ts\n import { disable } from \"../plugins/disable\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ disable() ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "version" : "2.1.0" +}, { + "description" : "\n\n This is OwnerOnly plugin, it allows only bot owners to run the command, like eval.\n", + "hash" : "31adb9ef134cddda53e47e505620c905", + "name" : "ownerOnly", + "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/ownerOnly.ts", + "example" : "\n\n ```ts\n import { ownerOnly } from \"../plugins/ownerOnly\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ ownerOnly() ], // can also pass array of IDs to override default owner IDs\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "version" : "1.2.0" +}, { + "description" : "\n\n This is dmOnly plugin, it allows commands to be run only in DMs.\n", + "hash" : "63eabcaafdbd6b6fbd6e52372e656a21", + "name" : "dmOnly", + "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/dmOnly.ts", + "example" : "\n\n ```ts\n import { dmOnly } from \"../plugins/dmOnly\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [dmOnly()],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", "version" : "1.0.0" }, { - "description" : "\n\n Allows you to set cooldowns (or \"ratelimits\") for commands, limits user/channel/guild actions.\n An extra function cooldown2 is exported if you want your cooldown to be local to the command.", - "hash" : "747944c710f7970b8c6ef9e11f322808", - "name" : "cooldown", - "author" : [ "@trueharuu [<@504698587221852172>]" ], - "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/cooldown.ts", - "example" : "\n\n ```ts\n import { cooldown, cooldown2 } from \"../plugins/cooldown\";\n import { commandModule } from \"@sern/handler\";\n //IF you want this cooldown to be local to this command: \n const localCooldown = cooldown2()\n export default commandModule({\n plugins: [cooldown.add([['channel', '1/4']]), // limit to 1 action every 4 seconds per channel\n localCooldown.add([[\"user\", \"1/10\"]])], // limit to 1 action every 10 seconds, local to command\n execute: (ctx) => { //your code here }\n })\n ```", + "description" : "\n\n This is perm check, it allows users to parse the permission you want and let the plugin do the rest. (check bot or user for that perm).\n", + "hash" : "53a69e2b4f74b0635f51222b74921edd", + "name" : "requirePermission", + "author" : [ "@Benzo-Fury [<@762918086349029386>]", "@needhamgary [<@342314924804014081>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/requirePermission.ts", + "example" : "\n\n ```ts\n import { requirePermission } from \"../plugins/myPermCheck\";\n import { commandModule, CommandType } from \"@sern/handler\";\n export default commandModule({\n plugins: [ requirePermission('target', 'permission', 'No response (optional)') ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "version" : "1.2.0" +}, { + "description" : "\n\n This is buttonConfirmation plugin, it runs confirmation prompt in the form of buttons.\n Note that you need to use edit/editReply in the command itself because we are already replying in the plugin!\n Credits to original plugin of confirmation using reactions and its author!\n", + "hash" : "7ff98585dba82b7ac5268458b246b9fc", + "name" : "buttonConfirmation", + "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/buttonConfirmation.ts", + "example" : "\n\n ```ts\n import { buttonConfirmation } from \"../plugins/buttonConfirmation\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ buttonConfirmation() ],\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", "version" : "1.0.0" +}, { + "description" : "\n\n [DEPRECATED] It allows you to publish your application commands using the discord.js library with ease.\n", + "hash" : "66ef98cb1b934c774c7a1d987db1486d", + "name" : "publish", + "author" : [ "@EvolutionX-10 [<@697795666373640213>]" ], + "link" : "https://raw.githubusercontent.com/sern-handler/awesome-plugins/main/plugins/publish.ts", + "example" : "\n\n ```ts\n import { publish } from \"../plugins/publish\";\n import { commandModule } from \"@sern/handler\";\n export default commandModule({\n plugins: [ publish() ], // put an object containing permissions, ids for guild commands, boolean for dmPermission\n // plugins: [ publish({ guildIds: ['guildId'], defaultMemberPermissions: 'Administrator'})]\n execute: (ctx) => {\n \t\t//your code here\n }\n })\n ```", + "version" : "2.0.0" } ] \ No newline at end of file