mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 10:57:08 +02:00
Add Suicide Hotline response if a user says "kms/kill myself"
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "109.1.2",
|
||||
"version": "109.2.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user