The image API no longer uses a unique thread for each job (due to image processing using its own thread anyway), added dummy DB driver
This commit is contained in:
parent
7b64c4ca2a
commit
55da0db479
4 changed files with 151 additions and 134 deletions
26
utils/database/dummy.js
Normal file
26
utils/database/dummy.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
// dummy (no-op) database handler
|
||||
const misc = require("../misc.js");
|
||||
|
||||
exports.setup = async () => {};
|
||||
exports.stop = async () => {};
|
||||
exports.fixGuild = async () => {};
|
||||
exports.addCount = async () => {};
|
||||
exports.getCounts = async () => {
|
||||
return {};
|
||||
};
|
||||
exports.disableChannel = async () => {};
|
||||
exports.enableChannel = async () => {};
|
||||
exports.toggleTags = async () => {};
|
||||
exports.setTag = async () => {};
|
||||
exports.removeTag = async () => {};
|
||||
exports.setPrefix = async () => {};
|
||||
exports.addGuild = async (guild) => {
|
||||
return {
|
||||
id: guild.id,
|
||||
tags: misc.tagDefaults,
|
||||
prefix: process.env.PREFIX,
|
||||
disabled: [],
|
||||
tagsDisabled: false,
|
||||
};
|
||||
};
|
||||
exports.getGuild = exports.addGuild;
|
Loading…
Add table
Add a link
Reference in a new issue