Compare commits
3 Commits
373c883027
...
e5f83ec639
Author | SHA1 | Date | |
---|---|---|---|
e5f83ec639 | |||
5495549464 | |||
960e43ac9b |
4874
package-lock.json
generated
4874
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@ -14,28 +14,28 @@
|
|||||||
"url": "https://lanxu@bitbucket.org/lanxu/kulmapaikka-ircbot"
|
"url": "https://lanxu@bitbucket.org/lanxu/kulmapaikka-ircbot"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chance": "=1.0.18",
|
"chance": "=1.1.13",
|
||||||
"cheerio": "^1.0.0-rc.2",
|
"cheerio": "^1.1.2",
|
||||||
"cron": "=1.7.1",
|
"cron": "=4.3.3",
|
||||||
"file-stream-rotator": "=0.4.1",
|
"file-stream-rotator": "=1.0.0",
|
||||||
"finalhandler": "=1.1.2",
|
"finalhandler": "=2.1.0",
|
||||||
"googleapis": "^91.0.0",
|
"googleapis": "^154.1.0",
|
||||||
"html-to-text": "=5.1.1",
|
"html-to-text": "=9.0.5",
|
||||||
"irc": "=0.5.2",
|
"irc": "=0.5.2",
|
||||||
"lokijs": "=1.5.7",
|
"lokijs": "=1.5.12",
|
||||||
"mkdirp": "=0.5.5",
|
"mkdirp": "=3.0.1",
|
||||||
"morgan": "=1.9.1",
|
"morgan": "=1.10.1",
|
||||||
"node-cron": "^2.0.3",
|
"node-cron": "^4.2.1",
|
||||||
"node-dev": "^7.1.0",
|
"node-dev": "^8.0.0",
|
||||||
"node-uuid": "=1.4.8",
|
"node-uuid": "=1.4.8",
|
||||||
"promise": "=8.0.3",
|
"promise": "=8.3.0",
|
||||||
"request": "=2.88.0",
|
"request": "=2.88.0",
|
||||||
"request-promise": "=4.2.4",
|
"request-promise": "=4.2.4",
|
||||||
"twitter": "=1.7.1",
|
"twitter": "=1.7.1",
|
||||||
"winston": "=3.2.1",
|
"winston": "=3.17.0",
|
||||||
"winston-daily-rotate-file": "^3.10.0"
|
"winston-daily-rotate-file": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^2.0.15"
|
"nodemon": "^3.1.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,10 @@ class Mastodon extends BasePlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test(input) {
|
test(input) {
|
||||||
if (input.match(/http(s)?:\/\/(www\.)?((.*\..*\/users\/([a-zA-Z0-9_-]*)\/statuses\/([0-9_-]*)))/)) {
|
if (input.match(/http(s)?:\/\/(www\.)?((.*\..*\/users\/([a-zA-Z0-9_-]*)\/statuses\/([0-9_-]*)))$/)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (input.match(/http(s)?:\/\/(www\.)?(((.*\..*)\/@([a-zA-Z0-9_-]*)\/([0-9_-]*)))/)) {
|
if (input.match(/http(s)?:\/\/(www\.)?(((.*\..*)\/@([a-zA-Z0-9_-]*)\/([0-9_-]*)))$/)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
@ -177,7 +177,7 @@ class Weather extends BasePlugin {
|
|||||||
|
|
||||||
var windspeed = result.wind.speed
|
var windspeed = result.wind.speed
|
||||||
|
|
||||||
let str = 'Sää: ' + city + ', ' + country + ' (' + temp + ' °C, ' + that.iconCodeToText[code] + ', ilmankosteus: ' + humidity + ' %, ilmanpaine: ' + pressure + ' hPa, tuulen nopeus: ' + windspeed + ' m/s)'
|
let str = city + ', ' + country + ' (' + temp + ' °C, ' + that.iconCodeToText[code] + ', ilmankosteus: ' + humidity + ' %, ilmanpaine: ' + pressure + ' hPa, tuulen nopeus: ' + windspeed + ' m/s)'
|
||||||
resolve('Sää: ' + str)
|
resolve('Sää: ' + str)
|
||||||
}
|
}
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user