mrmBot-Matrix/utils/database/dummy.js

36 lines
1 KiB
JavaScript
Raw Normal View History

// dummy (no-op) database handler
import { warn } from "../logger.js";
export async function setup() {
warn("Using dummy database adapter. If this isn't what you wanted, check your DB variable.");
}
export async function stop() {}
export async function fixGuild() {}
export async function addCount() {}
export async function getCounts() {
return {};
}
2022-02-23 01:44:13 +00:00
export async function upgrade() {}
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 setBroadcast() {}
export async function getBroadcast() {}
export async function setPrefix() {}
export async function addGuild(guild) {
return {
id: guild,
tags: {},
prefix: process.env.PREFIX,
disabled: [],
2021-08-13 19:15:42 +00:00
disabled_commands: []
};
}
export const getGuild = addGuild;