From 0a256fe478c62ce3d8f44075b6ed599bd30bdadb Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 5 Oct 2024 21:59:50 -0400 Subject: [PATCH] added fortunes cause cynic cant code :trol: --- client.js | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index dcb0075..2b27983 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 = "yourmom"; +const password = "your mom"; const userid = 12; var channels = []; var ws = []; @@ -32,6 +32,25 @@ var img_headers = { "Connection": "keep-alive" }; +var fortunes = [ + "You will meet a dark stranger.", + "You will be eaten by a grue.", + "Your fortune: Bad Luck.", + "Your fortune: Good Luck.", + "Your fortune: Reply hazy, try again.", + "Your fortune: Outlook not so good.", + "Your fortune: YES.", + "Your fortune: NO.", + "Your fortune: Absolutely.", + "Your fortune: Very doubtful.", + "Your fortune: Cannot predict now.", + "Your fortune: Signs point to yes.", + "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." +]; + var headers = { "User-Agent": "renabot", "Origin": "https://deek.chat" @@ -970,6 +989,11 @@ deek.on("message", async function(msg, user){ await fetch_xeno(res_get.recordings, 1, msg); break; + case "fortune": + case "f": + send(msg, fortunes[Math.floor(Math.random() * fortunes.length])); + break; + case "help": case "h": send(