db.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. const lowdb = require("lowdb");
  2. const FileSync = require("lowdb/adapters/FileSync");
  3. const adapter = new FileSync(__dirname + "/db.json");
  4. const db = lowdb(adapter);
  5. db._.mixin({
  6. randomElement: array => array[Math.floor(Math.random() * array.length)]
  7. });
  8. db.defaults({
  9. emotes: {
  10. angery: [
  11. "488797492352385034",
  12. "488797455899688971",
  13. "488796668750200842",
  14. "488796396175097876",
  15. "488793566982963231",
  16. "488793511181811749",
  17. "488791172085448718",
  18. "489091926474096651"
  19. ],
  20. hug: [
  21. "489094486132260864",
  22. "489094428410249218",
  23. "489094553148850176",
  24. "489094604935790622",
  25. "485109695846023209",
  26. "490234326210969624",
  27. "490234276676239370",
  28. "490234106370588681",
  29. "490234821696815125"
  30. ],
  31. big: [
  32. "489773326386855937",
  33. "489771762351996928",
  34. "489771390279483394",
  35. "489773282036547599"
  36. ],
  37. ded: [
  38. "490234399351373825",
  39. "490234360558125057"
  40. ]
  41. },
  42. specialUsers: [
  43. "141880968800763905",
  44. "307897683849510912",
  45. "335898304472678402"
  46. ],
  47. reactableMentionedUsers: ["307897683849510912"],
  48. bigUsers : ["432821242366656512"],
  49. dedUsers: ["326520875027267584"],
  50. guides: [],
  51. editors: {
  52. roles: ["484046157971193866", "305844721622712322"],
  53. users: [
  54. "307897683849510912",
  55. "170116346095468545",
  56. "335898304472678402"
  57. ]
  58. },
  59. rssFeeds: [
  60. {
  61. url: "http://custommaid3d2.com/index.php?forums/news.49/index.rss",
  62. lastUpdate: "",
  63. contentElement: "content:encoded"
  64. }
  65. ],
  66. postedNewsGuids: {},
  67. feedOutputs: [
  68. "422693157692637184"
  69. ]
  70. }).write();
  71. module.exports = db;