Improve suicide-hotline

This commit is contained in:
Dragon Fire
2020-03-22 17:00:05 -04:00
parent 35d12d993a
commit 16a14f2472
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -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}`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "112.12.5",
"version": "112.12.6",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {