|
@@ -70,7 +70,18 @@ const sendTelegram = (msg: string) => {
|
|
};
|
|
};
|
|
const sendDiscord = (msg: string, channel: any) => {
|
|
const sendDiscord = (msg: string, channel: any) => {
|
|
if (!channel) return;
|
|
if (!channel) return;
|
|
- const stripped: string = stripHtml(msg).result;
|
|
|
|
|
|
+
|
|
|
|
+ const options = {
|
|
|
|
+ dumpLinkHrefsNearby: {
|
|
|
|
+ enabled: false,
|
|
|
|
+ putOnNewLine: false,
|
|
|
|
+ wrapHeads: "",
|
|
|
|
+ wrapTails: "",
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ const stripped: string = stripHtml(msg, options).result;
|
|
|
|
+
|
|
if (!stripped.length) return;
|
|
if (!stripped.length) return;
|
|
try {
|
|
try {
|
|
channel.send(stripped);
|
|
channel.send(stripped);
|