Compare commits

..

No commits in common. "4c27bd5a1ebc7a9d6568847b45243de48caac507" and "a7a9bfb0943135c97fb547ae46464bcdae825025" have entirely different histories.

2 changed files with 3 additions and 4 deletions

3
bot.js
View File

@ -39,7 +39,6 @@ const isValidUrl = urlString=> {
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // validate port and path
'(\\?[;&a-z\\d%_.~+=-]*)?'+ // validate query string
'(\\#[-a-z\\d_]*)?$','i'); // validate fragment locator
consoleLog('[bot.isValidUrl] Testing URL: '+urlString)
return !!urlPattern.test(urlString);
}
@ -145,7 +144,7 @@ async function feed(chan, nick, provfeed, n) {
bot.say(chan, "You have no saved feeds")
return;
}
} else if (uconfig[nick].alias[provfeed.toUpperCase()] !== undefined ) { //Alias Lookup
} else if (uconfig[nick].alias !== undefined ) { //Alias Lookup
consoleLog('[bot.feed] Alias requested')
var provfeed = uconfig[nick].alias[provfeed.toUpperCase()]
openPostWorker(chan, "feed-preset", provfeed, n, nick);

View File

@ -91,9 +91,9 @@ async function twitter(feedURL, n, nick) {
if (data.isoDate !== undefined) {
var date = moment(data.isoDate)
try {
if (uconfig[nick].timezone != undefined) {
var syncDate = date.tz(uconfig[nick].timezone)
} catch(e) {
} else {
var syncDate = date.tz(config.feed.timezone)
}
consoleLog('[feed-predef.twitter] Got tweet from '+syncDate.format())