mrmBot-Matrix/utils/database/dummy.js

33 lines
933 B
JavaScript
Raw Normal View History

// dummy (no-op) database handler
import { warn } from "../logger.js";
warn("Using dummy database adapter. If this isn't what you wanted, check your DB variable.");
export async function setup() {}
export async function stop() {}
export async function fixGuild() {}
export async function addCount() {}
export async function getCounts() {
return {};
}
export async function disableCommand() {}
export async function enableCommand() {}
export async function disableChannel() {}
export async function enableChannel() {}
export async function getTags() {}
export async function getTag() {}
export async function setTag() {}
export async function removeTag() {}
export async function editTag() {}
export async function setPrefix() {}
export async function addGuild(guild) {
return {
id: guild.id,
tags: {},
prefix: process.env.PREFIX,
disabled: [],
2021-08-13 19:15:42 +00:00
disabled_commands: []
};
}
export const getGuild = addGuild;