summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2018-02-23 19:10:38 -0500
committerGitHub <noreply@github.com>2018-02-23 19:10:38 -0500
commit8d060416b06d89624a4f7418aae0f267b8361127 (patch)
tree72ce72d8f12ac8c742e4d2115779917807cae61b
parente39a3bafc6724d43c807c220bc09f933e64c5fa0 (diff)
downloadVTBot-8d060416b06d89624a4f7418aae0f267b8361127.tar.gz
VTBot-8d060416b06d89624a4f7418aae0f267b8361127.tar.bz2
VTBot-8d060416b06d89624a4f7418aae0f267b8361127.zip
Update bot.js
-rw-r--r--bot.js23
1 files changed, 15 insertions, 8 deletions
diff --git a/bot.js b/bot.js
index 5527c29..927593a 100644
--- a/bot.js
+++ b/bot.js
@@ -43,8 +43,11 @@ client.on('ready', () => {
rl.on('line', (line) => {
switch (line.trim()) {
case 'help':
- console.log('VTBot Terminal Help:\nhelp\nping');
+ console.log('VTBot Terminal Help:\nhelp\nexit');
break;
+ case 'exit':
+ console.log("[STATUS] Exiting VTBot...")
+ process.exit(0);
default:
console.log(`[ERROR] Unknown command: ${line.trim()}`);
break;
@@ -60,18 +63,22 @@ client.on('ready', () => {
client.on('message', msg => {
if (msg.mentions != null && msg.mentions.users != null) {
- if (msg.mentions.users.has("401491921865801728")) {
- if (msg.author.id == 361202413165608962) {
- msg.reply("BEGONE. You're a undertale fan. :sob:");
- } else {
- if (msg.content.toLowerCase().includes("hello")) {
+ if (msg.mentions.users.has("401491921865801728")){
+ if (msg.content.toLowerCase().includes("hello") || (msg.content.toLowerCase().includes("hi"))) {
msg.reply("Hi there.");
- } else if (msg.content.toLowerCase().includes("shut") && msg.content.toLowerCase().includes("up")) {
+ } else {
+ if (msg.content.toLowerCase().includes("shut") && msg.content.toLowerCase().includes("up")) {
msg.reply("Excuse me?")
+ } else if (msg.content.toLowerCase().includes("kden")) {
+ msg.reply("live")
}
}
}
}
+
+ if (msg.content == 'kden') {
+ msg.channel.send('live');
+ }
if (msg.content == prefix + 'help') {
const embed = new Discord.RichEmbed();
@@ -90,4 +97,4 @@ client.on('message', msg => {
});
-client.login(config.token); \ No newline at end of file
+client.login(config.token);