Files
xiao/commands/auto/suicide-hotline.js
T
2020-03-22 17:00:05 -04:00

28 lines
805 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class SuicideHotlineCommand extends Command {
constructor(client) {
super(client, {
name: 'suicide-hotline',
aliases: ['kms', 'kill-myself'],
group: 'auto',
memberName: 'suicide-hotline',
description: 'Responds with the phone number for the Suicide Hotline.',
patterns: [/\bkms\b/i, /\b(kill myself)\b/i, /<:kms:(.+)>/i],
credit: [
{
name: 'National Suicide Prevention Lifeline',
url: 'https://suicidepreventionlifeline.org/',
reason: 'Phone Number'
}
]
});
}
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}`);
}
};