0
0
Fork 0

Edit config structure to have per-guild configuring

This commit is contained in:
Oliver-Akins 2021-07-22 12:56:06 -06:00
parent cc68fd3d72
commit 0cc34a1517

18
src/types/config.d.ts vendored
View file

@ -1,6 +1,14 @@
interface channel_config {
password: string;
api_base: string;
quote_max: number;
delete_mode: "no_interactions" | "delete_message";
params: { [index: string]: any };
}
interface config { interface config {
discord: { discord: {
quote_max: number; auth_password: string;
client_id: string; client_id: string;
secret: string; secret: string;
public_key: string; public_key: string;
@ -10,12 +18,8 @@ interface config {
server: { server: {
host: string; host: string;
port: number; port: number;
db_file: string;
quote_history: string;
bracket_history: string;
}; };
quote: { guilds: {
api_base: string; [index: string]: channel_config;
token: string;
}; };
} }