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