2021-01-06 22:10:31 +00:00
|
|
|
// dummy (no-op) database handler
|
|
|
|
const misc = require("../misc.js");
|
2021-06-26 20:56:02 +00:00
|
|
|
const logger = require("../logger.js");
|
|
|
|
|
|
|
|
logger.warn("Using dummy database adapter. If this isn't what you wanted, check your DB variable.");
|
2021-01-06 22:10:31 +00:00
|
|
|
|
|
|
|
exports.setup = async () => {};
|
|
|
|
exports.stop = async () => {};
|
|
|
|
exports.fixGuild = async () => {};
|
|
|
|
exports.addCount = async () => {};
|
|
|
|
exports.getCounts = async () => {
|
|
|
|
return {};
|
|
|
|
};
|
2021-08-13 03:28:09 +00:00
|
|
|
exports.disableCommand = async () => {};
|
|
|
|
exports.enableCommand = async () => {};
|
2021-01-06 22:10:31 +00:00
|
|
|
exports.disableChannel = async () => {};
|
|
|
|
exports.enableChannel = async () => {};
|
2021-08-11 01:25:29 +00:00
|
|
|
exports.getTags = async () => {};
|
2021-01-06 22:10:31 +00:00
|
|
|
exports.setTag = async () => {};
|
|
|
|
exports.removeTag = async () => {};
|
2021-08-11 01:25:29 +00:00
|
|
|
exports.editTag = async () => {};
|
2021-01-06 22:10:31 +00:00
|
|
|
exports.setPrefix = async () => {};
|
|
|
|
exports.addGuild = async (guild) => {
|
|
|
|
return {
|
|
|
|
id: guild.id,
|
|
|
|
tags: misc.tagDefaults,
|
|
|
|
prefix: process.env.PREFIX,
|
|
|
|
disabled: [],
|
2021-08-13 19:15:42 +00:00
|
|
|
disabled_commands: []
|
2021-01-06 22:10:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
exports.getGuild = exports.addGuild;
|