const lowdb = require("lowdb"); const FileSync = require("lowdb/adapters/FileSync"); const adapter = new FileSync(__dirname + "/db.json"); const db = lowdb(adapter); db._.mixin({ randomElement: array => array[Math.floor(Math.random() * array.length)] }); db.defaults({ emotes: { angery: [ "488797492352385034", "488797455899688971", "488796668750200842", "488796396175097876", "488793566982963231", "488793511181811749", "488791172085448718", "489091926474096651" ], hug: [ "489094486132260864", "489094428410249218", "489094553148850176", "489094604935790622", "488016420077043722", "490234326210969624", "490234276676239370", "490234106370588681", "490234821696815125" ], big: [ "489773326386855937", "489771762351996928", "489771390279483394", "489773282036547599" ], ded: [ "505677683544293377", "505677683384909824" ] }, specialUsers: [ "141880968800763905", "307897683849510912", "335898304472678402" ], reactableMentionedUsers: ["307897683849510912"], bigUsers : ["432821242366656512"], dedUsers: ["326520875027267584"], guides: [], editors: { roles: ["484046157971193866", "305844721622712322"], users: [ "307897683849510912", "170116346095468545", "335898304472678402" ] }, rssFeeds: [ { url: "http://custommaid3d2.com/index.php?forums/news.49/index.rss", lastUpdate: "", contentElement: "content:encoded" } ], postedNewsGuids: {}, feedOutputs: [ "422693157692637184" ], messageReactions: {}, faceEditChannels: { "459622760839118848" : 1.0, "297109482905796608": 0.25, "297117726546198528": 0.1, "401837400109875216": 0.1 }, faceEditStatistics: { "459622760839118848": 0, "297109482905796608": 0, "297117726546198528": 0, "401837400109875216": 0 }, faceEditInfo: { quotaRecomputeDate: "", customRequestsPerDay: 0, todayRequests: 0 }, quotes: [] }).write(); module.exports = db;