fix crash

This commit is contained in:
lolcat 2024-10-05 22:12:46 -04:00
parent 0a256fe478
commit bd015609cc
1 changed files with 9 additions and 7 deletions

View File

@ -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 = "your mom"; const password = "still no";
const userid = 12; const userid = 12;
var channels = []; var channels = [];
var ws = []; var ws = [];
@ -48,7 +48,8 @@ var fortunes = [
"Your fortune: Don't count on it.", "Your fortune: Don't count on it.",
"Your fortune: You may rely on it.", "Your fortune: You may rely on it.",
"Your fortune: Concentrate and ask again.", "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 = { var headers = {
@ -948,10 +949,10 @@ deek.on("message", async function(msg, user){
text.push( text.push(
">Duration: " + (new Date(res_get.video[i].duration * 1000).toISOString().slice(11, 19)) + ">Duration: " + (new Date(res_get.video[i].duration * 1000).toISOString().slice(11, 19)) +
" Views: " + (new Intl.NumberFormat().format(res_get.video[i].views)) + " • Views: " + (new Intl.NumberFormat().format(res_get.video[i].views)) +
" Author: " + res_get.video[i].author.name + " • Author: " + res_get.video[i].author.name +
"\n" + res_get.video[i].title + "\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 "fortune":
case "f": case "f":
send(msg, fortunes[Math.floor(Math.random() * fortunes.length])); send(msg, fortunes[Math.floor(Math.random() * fortunes.length)]);
break; break;
case "help": case "help":
@ -1004,7 +1005,8 @@ deek.on("message", async function(msg, user){
".boobs <yes:no> => Boobs?\n" + ".boobs <yes:no> => Boobs?\n" +
".page/.p => get page offset for image search\n" + ".page/.p => get page offset for image search\n" +
".pp => get next page\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" + ".x/xeno => search for bird sounds\n" +
".roll/.r => Because deekchat was too slow\n" + ".roll/.r => Because deekchat was too slow\n" +
".mumble/.m <[optional]ip:port> => check if lolcat died\n" + ".mumble/.m <[optional]ip:port> => check if lolcat died\n" +