Add Suicide Hotline response if a user says "kms/kill myself"

This commit is contained in:
Dragon Fire
2019-12-08 23:27:04 -05:00
parent 8bf6aa19c3
commit 5076679b25
3 changed files with 21 additions and 2 deletions
+2 -1
View File
@@ -55,7 +55,7 @@ Xiao is a Discord bot coded in JavaScript with
* [Rando Cardrissian](https://github.com/dragonfire535/rando-cardrissian) is a Cards Against Humanity bot, whose features were originally built into Xiao.
## Commands (346)
## Commands (347)
### Utility:
* **eval:** Executes JavaScript code.
@@ -152,6 +152,7 @@ Xiao is a Discord bot coded in JavaScript with
* **lenny:** Responds with the lenny face.
* **no-u:** no u
* **spam:** Responds with a picture of Spam.
* **suicide-hotline:** Responds with the phone number for the Suicide Hotline.
* **tableflip:** Flips a table... With animation!
* **unflip:** Unflips a flipped table.
* **wynaut:** Why not? Wynaut?
+18
View File
@@ -0,0 +1,18 @@
const Command = require('../../structures/Command');
module.exports = class SuicideHotlineCommand extends Command {
constructor(client) {
super(client, {
name: 'suicide-hotline',
aliases: ['kms', 'kill-myself'],
group: 'single',
memberName: 'suicide-hotline',
description: 'Responds with the phone number for the Suicide Hotline.',
patterns: [/kms|(kill myself)/i]
});
}
run(msg) {
return msg.say('Don\'t say that. Get help. Call 1-800-273-8255 for the National Suicide Prevention Lifeline.');
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "109.1.2",
"version": "109.2.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {