added fortunes cause cynic cant code :trol:
This commit is contained in:
parent
da8315fa53
commit
0a256fe478
26
client.js
26
client.js
|
@ -14,7 +14,7 @@ const emitter = require("events");
|
||||||
const deek = new emitter();
|
const deek = new emitter();
|
||||||
|
|
||||||
const name = "rena_chan";
|
const name = "rena_chan";
|
||||||
const password = "yourmom";
|
const password = "your mom";
|
||||||
const userid = 12;
|
const userid = 12;
|
||||||
var channels = [];
|
var channels = [];
|
||||||
var ws = [];
|
var ws = [];
|
||||||
|
@ -32,6 +32,25 @@ var img_headers = {
|
||||||
"Connection": "keep-alive"
|
"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 = {
|
var headers = {
|
||||||
"User-Agent": "renabot",
|
"User-Agent": "renabot",
|
||||||
"Origin": "https://deek.chat"
|
"Origin": "https://deek.chat"
|
||||||
|
@ -970,6 +989,11 @@ deek.on("message", async function(msg, user){
|
||||||
await fetch_xeno(res_get.recordings, 1, msg);
|
await fetch_xeno(res_get.recordings, 1, msg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "fortune":
|
||||||
|
case "f":
|
||||||
|
send(msg, fortunes[Math.floor(Math.random() * fortunes.length]));
|
||||||
|
break;
|
||||||
|
|
||||||
case "help":
|
case "help":
|
||||||
case "h":
|
case "h":
|
||||||
send(
|
send(
|
||||||
|
|
Loading…
Reference in New Issue