From 5076679b257c5f988338f8bf1794b820a8fd757e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 8 Dec 2019 23:27:04 -0500 Subject: [PATCH] Add Suicide Hotline response if a user says "kms/kill myself" --- README.md | 3 ++- commands/single/suicide-hotline.js | 18 ++++++++++++++++++ package.json | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 commands/single/suicide-hotline.js diff --git a/README.md b/README.md index ff79466d..66b781b6 100644 --- a/README.md +++ b/README.md @@ -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? diff --git a/commands/single/suicide-hotline.js b/commands/single/suicide-hotline.js new file mode 100644 index 00000000..654ed67e --- /dev/null +++ b/commands/single/suicide-hotline.js @@ -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.'); + } +}; diff --git a/package.json b/package.json index 6be1f582..b61f5be9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "109.1.2", + "version": "109.2.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {