Prevent Misuse
This commit is contained in:
parent
d8855c69ca
commit
abae2494be
9
index.js
9
index.js
@ -1,7 +1,7 @@
|
||||
const Discord = require('discord.js');
|
||||
var quotes = ['It is certain', 'It is decidedly so', 'Without a doubt', 'Yes – definitely', 'You may rely on it', 'As I see it yes', 'Most likely', 'Outlook good', 'Yes', 'Reply hazy, try again', 'Ask again later', 'Better not tell you now', 'Cannot predict now', 'Concentrate and ask again', 'Don’t count on it', 'My reply is no', 'My sources say no', 'Outlook not so good', 'Very doubtful']
|
||||
const bot = new Discord.Client();
|
||||
const token = 'put your bots token';
|
||||
const token = 'token_here';
|
||||
bot.login(token);
|
||||
bot.on('ready', () =>{
|
||||
console.log('This bot is on')
|
||||
@ -19,4 +19,11 @@ bot.on('message', msg=>{
|
||||
{
|
||||
msg.reply(randomQuote());
|
||||
}
|
||||
if (msg.author.bot == false){
|
||||
if (msg.content.includes("kill"))
|
||||
{
|
||||
msg.reply("My sources say there should be no killing of yourself or others, please call the suicide hotline 800-273-8255 to get help. You are loved");
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user