Require new text arg in !edit_snippet. Fixes #413

cshd
Dragory 2020-08-16 22:14:49 +03:00
parent 778a30941d
commit f61b1cc397
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ module.exports = ({ bot, knex, config, commands }) => {
aliases: ["ds"] aliases: ["ds"]
}); });
commands.addInboxServerCommand("edit_snippet", "<trigger> [text$]", async (msg, args, thread) => { commands.addInboxServerCommand("edit_snippet", "<trigger> <text$>", async (msg, args, thread) => {
const snippet = await snippets.get(args.trigger); const snippet = await snippets.get(args.trigger);
if (! snippet) { if (! snippet) {
utils.postSystemMessageWithFallback(msg.channel, thread, `Snippet "${args.trigger}" doesn't exist!`); utils.postSystemMessageWithFallback(msg.channel, thread, `Snippet "${args.trigger}" doesn't exist!`);