diff --git a/README.md b/README.md index 39ee0561..3795dd30 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ENiGMA½ is a modern BBS software with a nostalgic flair! ## Features Available Now * Multi platform: Anywhere [Node.js](https://nodejs.org/) runs likely works (known to work under Linux, FreeBSD, OpenBSD, OS X and Windows) * Unlimited multi node support (for all those BBS "callers"!) - * **Highly** customizable via [HJSON](http://hjson.org/) based configuration, menus, and themes in addition to JavaScript based mods + * **Highly** customizable via [HJSON](http://hjson.org/) based configuration, menus, and themes in addition to JavaScript based [mods](docs/mods.md) * [MCI support](docs/mci.md) for lightbars, toggles, input areas, and so on plus many other other bells and whistles * Telnet, **SSH**, and both secure and non-secure [WebSocket](https://en.wikipedia.org/wiki/WebSocket) access built in! Additional servers are easy to implement * [CP437](http://www.ascii-codes.com/) and UTF-8 output diff --git a/core/database.js b/core/database.js index a6286279..41aa7a41 100644 --- a/core/database.js +++ b/core/database.js @@ -6,7 +6,7 @@ const conf = require('./config.js'); // deps const sqlite3 = require('sqlite3'); -const sqlite3Trans = require('sqlite3-transactions'); +const sqlite3Trans = require('sqlite3-trans'); const paths = require('path'); const async = require('async'); const _ = require('lodash'); @@ -24,7 +24,7 @@ exports.initializeDatabases = initializeDatabases; exports.dbs = dbs; function getTransactionDatabase(db) { - return new sqlite3Trans.TransactionDatabase(db); + return sqlite3Trans.wrap(db); } function getDatabasePath(name) { @@ -61,7 +61,7 @@ function getISOTimestampString(ts) { function initializeDatabases(cb) { async.eachSeries( [ 'system', 'user', 'message', 'file' ], (dbName, next) => { - dbs[dbName] = new sqlite3Trans.TransactionDatabase(new sqlite3.Database(getDatabasePath(dbName), err => { + dbs[dbName] = sqlite3Trans.wrap(new sqlite3.Database(getDatabasePath(dbName), err => { if(err) { return cb(err); } diff --git a/docs/mods.md b/docs/mods.md new file mode 100644 index 00000000..3abc7e2f --- /dev/null +++ b/docs/mods.md @@ -0,0 +1,9 @@ +# Mods + + +## Existing Mods +* **Married Bob Fetch Event**: An event for fetching the latest Married Bob ANSI's for display on you board. ACiDic release [ACD-MB4E.ZIP](https://l33t.codes/outgoing/ACD/ACD-MB4E.ZIP). Can also be [found on GitHub](https://github.com/NuSkooler/enigma-bbs-married_bob_evt) +* **Latest Files Announcement**: An event for posting the latest file arrivals of your board to message areas such as FTN style networks. ACiDic release [ACD-LFA1.ZIP](https://l33t.codes/outgoing/ACD/ACD-LFA1.ZIP) Also [found on GitHub](https://github.com/NuSkooler/enigma-bbs-latest_files_announce_evt) +* **Message Post Event**: An event for posting messages/ads to networks. ACiDic release [ACD-MP4E.ZIP](https://l33t.codes/outgoing/ACD/ACD-MP4E.ZIP) + +See also [ACiDic BBS Mods by Myself](https://l33t.codes/acidic-mods-by-myself/) \ No newline at end of file diff --git a/package.json b/package.json index cdd1ab3a..249a56c2 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "ptyw.js": "NuSkooler/ptyw.js", "sanitize-filename": "^1.6.1", "sqlite3": "^3.1.9", - "sqlite3-transactions": "^0.0.5", + "sqlite3-trans" : "^1.1.0", "ssh2": "^0.5.5", "temptmp": "^1.0.0", "uuid": "^3.1.0",