Prevent Misuse

master
Eternal_plasma 2022-04-04 09:25:51 -05:00 committed by GitHub
parent d8855c69ca
commit abae2494be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -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', 'Dont 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')
@ -18,5 +18,12 @@ bot.on('message', msg=>{
if (msg.content.endsWith(prefix))
{
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");
}
}
});