fix crash
This commit is contained in:
parent
0a256fe478
commit
bd015609cc
16
client.js
16
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 <yes:no> => 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" +
|
||||
|
|
Loading…
Reference in New Issue