From 16a14f247251ceb6672a4ee961fceffb3caa3973 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 22 Mar 2020 17:00:05 -0400 Subject: [PATCH] Improve suicide-hotline --- commands/auto/suicide-hotline.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/auto/suicide-hotline.js b/commands/auto/suicide-hotline.js index 7b6e394c..9feadd5f 100644 --- a/commands/auto/suicide-hotline.js +++ b/commands/auto/suicide-hotline.js @@ -19,7 +19,9 @@ module.exports = class SuicideHotlineCommand extends Command { }); } - run(msg) { - return msg.say('Don\'t say that. Get help. Call 1-800-273-8255 for the National Suicide Prevention Lifeline.'); + run(msg, args, fromPattern) { + const text = 'Call 1-800-273-8255 for the National Suicide Prevention Lifeline.'; + if (!fromPattern) return msg.say(text); + return msg.reply(`Don't say that. Get help. ${text}`); } }; diff --git a/package.json b/package.json index 8729fcfb..792e6078 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.12.5", + "version": "112.12.6", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {