mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 22:17:58 +01:00
new init system lol
This commit is contained in:
parent
6b701a09da
commit
eacd4cf809
1 changed files with 5 additions and 2 deletions
|
@ -18,11 +18,14 @@ function initlog(args){
|
||||||
|
|
||||||
function init (app, port){
|
function init (app, port){
|
||||||
if(!port) port = "3000"
|
if(!port) port = "3000"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
app.listen(port, () => {
|
app.listen(port, () => {
|
||||||
initlog("Loading Poketube: success!" + " on port " + port);
|
initlog("Loading Poketube: success!" + " on port " + port);
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
||||||
initlog("Loading Poketube: error", err);
|
initlog("Loading Poketube: error", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +38,7 @@ module.exports =
|
||||||
wiki:require("wikipedia"),
|
wiki:require("wikipedia"),
|
||||||
initlog,
|
initlog,
|
||||||
init,
|
init,
|
||||||
version:"libpoketube-3.0-git-IcHi",
|
version:"libpoketube-3.1.1-git-aStfl",
|
||||||
modules:{
|
modules:{
|
||||||
fetch:require("node-fetch"),
|
fetch:require("node-fetch"),
|
||||||
toJson:require("xml2json").toJson,
|
toJson:require("xml2json").toJson,
|
||||||
|
|
Loading…
Reference in a new issue