From f61b1cc397a49d745e5f47c0226796c02fcc031e Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 16 Aug 2020 22:14:49 +0300 Subject: [PATCH] Require new text arg in !edit_snippet. Fixes #413 --- src/modules/snippets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/snippets.js b/src/modules/snippets.js index 2a5ae73..e68d6a3 100644 --- a/src/modules/snippets.js +++ b/src/modules/snippets.js @@ -113,7 +113,7 @@ module.exports = ({ bot, knex, config, commands }) => { aliases: ["ds"] }); - commands.addInboxServerCommand("edit_snippet", " [text$]", async (msg, args, thread) => { + commands.addInboxServerCommand("edit_snippet", " ", async (msg, args, thread) => { const snippet = await snippets.get(args.trigger); if (! snippet) { utils.postSystemMessageWithFallback(msg.channel, thread, `Snippet "${args.trigger}" doesn't exist!`);