From bd015609cc5683f8c89b9cc95f7f81878bcef612 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 5 Oct 2024 22:12:46 -0400 Subject: [PATCH] fix crash --- client.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/client.js b/client.js index 2b27983..3fb3fe1 100755 --- a/client.js +++ b/client.js @@ -14,7 +14,7 @@ const emitter = require("events"); const deek = new emitter(); const name = "rena_chan"; -const password = "your mom"; +const password = "still no"; const userid = 12; var channels = []; var ws = []; @@ -48,7 +48,8 @@ var fortunes = [ "Your fortune: Don't count on it.", "Your fortune: You may rely on it.", "Your fortune: Concentrate and ask again.", - "Your fortune: The future is uncertain." + "Your fortune: The future is uncertain.", + "Your fortune: :fuck-off: fuck you" ]; var headers = { @@ -948,10 +949,10 @@ deek.on("message", async function(msg, user){ text.push( ">Duration: " + (new Date(res_get.video[i].duration * 1000).toISOString().slice(11, 19)) + - " • Views: " + (new Intl.NumberFormat().format(res_get.video[i].views)) + - " • Author: " + res_get.video[i].author.name + + " • Views: " + (new Intl.NumberFormat().format(res_get.video[i].views)) + + " • Author: " + res_get.video[i].author.name + "\n" + res_get.video[i].title + - "\n▶ " + res_get.video[i].url + "\nâ–¶ " + res_get.video[i].url ); } @@ -991,7 +992,7 @@ deek.on("message", async function(msg, user){ case "fortune": case "f": - send(msg, fortunes[Math.floor(Math.random() * fortunes.length])); + send(msg, fortunes[Math.floor(Math.random() * fortunes.length)]); break; case "help": @@ -1004,7 +1005,8 @@ deek.on("message", async function(msg, user){ ".boobs => Boobs?\n" + ".page/.p => get page offset for image search\n" + ".pp => get next page\n" + - ".yt/.youtube => search the jewish propaganda catalog (now powered by 4get)\n" + + ".fortune/.f => fortune teller cause cynic cant code :trol:\n" + + ".yt/.youtube => search the jewish propaganda catalog\n" + ".x/xeno => search for bird sounds\n" + ".roll/.r => Because deekchat was too slow\n" + ".mumble/.m <[optional]ip:port> => check if lolcat died\n" +