Skip to content
Snippets Groups Projects
Commit 45b3170d authored by echicken's avatar echicken :chicken:
Browse files

Yuck.

parent 6623cff0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -6,13 +6,18 @@ function cycle() { ...@@ -6,13 +6,18 @@ function cycle() {
if (time() - last_run <= frequency) return; if (time() - last_run <= frequency) return;
last_run = time(); last_run = time();
const tg = system.get_telegram(user.number); const tg = system.get_telegram(user.number);
if (tg !== null) emit({ event: 'telegram' if (tg !== null) {
, data: JSON.stringify(html_encode(tg.replace('\7', '').replace(/\1./g, '') emit({
, /* ex-ascii */true event: 'telegram',
, /* white-space */false data: JSON.stringify(html_encode(
, /* ansi */false tg.replace('\7', '').replace(/\1./g, ''),
, /* ctrl_a */false)) /* ex-ascii */true,
/* white-space */false,
/* ansi */false,
/* ctrl_a */false
));
}); });
} }
}
this; this;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment