mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Improve suicide-hotline
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user