mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
29 lines
810 B
JavaScript
29 lines
810 B
JavaScript
const Command = require('../../structures/commands/AutoReply');
|
|
|
|
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],
|
|
reply: true,
|
|
credit: [
|
|
{
|
|
name: 'National Suicide Prevention Lifeline',
|
|
url: 'https://suicidepreventionlifeline.org/',
|
|
reason: 'Phone Number'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
generateText(fromPattern) {
|
|
const text = 'Call 1-800-273-8255 for the National Suicide Prevention Lifeline.';
|
|
if (!fromPattern) return text;
|
|
return `Don't say that. Get help. ${text}`;
|
|
}
|
|
};
|