Adding CI and making CI ready
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm
2020-01-07 23:03:26 +01:00
parent ef234ed748
commit e9e580b74d
6 changed files with 81 additions and 13 deletions

View File

@ -12,11 +12,17 @@ import fetch from "node-fetch";
import rss from "rss-parser";
import Telegraf from "telegraf";
import * as fs from "fs";
dotenv.config();
const parser = new rss();
const entities = new AllHtmlEntities();
const adapter = new FileSync<{ feeds: IDBFeed[] }>("db.json");
if (!fs.existsSync("./persist")) {
fs.mkdirSync("./persist")
}
const adapter = new FileSync<{ feeds: IDBFeed[] }>("persist/db.json");
const db = low(adapter);
db.defaults({ feeds: [] }).write();