Edit config structure to have per-guild configuring
This commit is contained in:
parent
cc68fd3d72
commit
0cc34a1517
1 changed files with 11 additions and 7 deletions
18
src/types/config.d.ts
vendored
18
src/types/config.d.ts
vendored
|
|
@ -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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue