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-11-12 23:21:43 +00:00
|
|
|
export async function setup() {
|
|
|
|
warn("Using dummy database adapter. If this isn't what you wanted, check your DB variable.");
|
|
|
|
}
|
2021-08-19 14:19:14 +00:00
|
|
|
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
|
|
|
}
|
2022-02-23 01:44:13 +00:00
|
|
|
export async function upgrade() {}
|
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;
|