Files
toho-miku/util/general.js
Jan Groß 51e90dee8a Add helper function for bot settings
and fix registration check always returning true
2022-08-19 14:14:24 +02:00

10 lines
225 B
JavaScript

const { Bot } = require("../models");
module.exports = {
name: "GeneralUtils",
getBotProperty: async function(property) {
let bot = await Bot.findOne();
return property ? bot[property] : bot;
}
}