stop throwing urlreply errors into console, nobody cares
This commit is contained in:
parent
f3874b8052
commit
0242f3229b
22
package-lock.json
generated
22
package-lock.json
generated
@ -849,6 +849,14 @@
|
||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
||||
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
|
||||
},
|
||||
"cross-fetch": {
|
||||
"version": "3.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.0.6.tgz",
|
||||
"integrity": "sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==",
|
||||
"requires": {
|
||||
"node-fetch": "2.6.1"
|
||||
}
|
||||
},
|
||||
"css-select": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz",
|
||||
@ -1721,6 +1729,11 @@
|
||||
"resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
|
||||
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
|
||||
},
|
||||
"oauth-1.0a": {
|
||||
"version": "2.2.6",
|
||||
"resolved": "https://registry.npmjs.org/oauth-1.0a/-/oauth-1.0a-2.2.6.tgz",
|
||||
"integrity": "sha512-6bkxv3N4Gu5lty4viIcIAnq5GbxECviMBeKR3WX/q87SPQ8E8aursPZUtsXDnxCs787af09WPRBLqYrf/lwoYQ=="
|
||||
},
|
||||
"oauth-sign": {
|
||||
"version": "0.9.0",
|
||||
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
|
||||
@ -2090,6 +2103,15 @@
|
||||
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
|
||||
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
|
||||
},
|
||||
"twitter-lite": {
|
||||
"version": "0.14.0",
|
||||
"resolved": "https://registry.npmjs.org/twitter-lite/-/twitter-lite-0.14.0.tgz",
|
||||
"integrity": "sha512-AP7jnuEBIMA18fi3IDWT7fTOJVpZrl1ZwJKunGf2iknKv5BH4mpwBvJmu3RP59XHZFL3ckUcGGRw/INVRikBBg==",
|
||||
"requires": {
|
||||
"cross-fetch": "^3.0.0",
|
||||
"oauth-1.0a": "^2.2.4"
|
||||
}
|
||||
},
|
||||
"typed-function": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/typed-function/-/typed-function-2.0.0.tgz",
|
||||
|
@ -19,6 +19,7 @@
|
||||
"gamedig": "^2.0.23",
|
||||
"mathjs": "^8.0.1",
|
||||
"node-ical": "^0.12.3",
|
||||
"twitter-lite": "^0.14.0",
|
||||
"typescript": "^4.1.2",
|
||||
"ytdl-core": "^4.1.3",
|
||||
"ytsr": "^1.0.4"
|
||||
|
@ -23,7 +23,7 @@
|
||||
},
|
||||
{
|
||||
"name": "jukebox",
|
||||
"version": "1.1.0"
|
||||
"version": "1.1.1"
|
||||
},
|
||||
{
|
||||
"name": "timezone",
|
||||
@ -33,6 +33,10 @@
|
||||
"name": "url-fediverse",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"name": "url-twitter",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"name": "urlreply",
|
||||
"version": "1.0.0"
|
||||
|
@ -2,7 +2,7 @@
|
||||
"main": "plugin.js",
|
||||
"name": "urlreply",
|
||||
"description": "Fetch titles from web pages, specifically made for IRC",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"tags": ["irc"],
|
||||
"dependencies": [],
|
||||
"npmDependencies": ["cheerio@^1.0.0-rc.3"]
|
||||
|
@ -351,9 +351,7 @@ class URLReplyPlugin extends Plugin {
|
||||
if (title.length > 140) { title = title.substring(0, 140) + '…'; }
|
||||
|
||||
msg.resolve(msg.source.format.color('purple', '[ ') + title + msg.source.format.color('purple', ' ]'));
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user