diff --git a/sample.config.ts b/sample.config.ts new file mode 100644 index 0000000..8513c12 --- /dev/null +++ b/sample.config.ts @@ -0,0 +1,17 @@ +import variables from "./variables" +import pkg from './package.json' +import { Config } from './src/utils/types' + +export default { + pkg, + variables, + token: "", + apis: { + sheri: "", + yiffrest: "" + }, + supabase: { + url: "", + key: "" + } +} \ No newline at end of file diff --git a/src/utils/types.ts b/src/utils/types.ts index 027b0f6..253ee5a 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -36,6 +36,7 @@ export type Command = { export type Context = { client: Client; + args: string[] guild: Guild | null; message: Message; channel: TextChannel | NewsChannel; @@ -49,13 +50,29 @@ export type Context = { // ! Config Typings -interface Config { +export interface Config { + /** + * package.json import to autocompltete it's vars + */ pkg: Pkg; + /** + * variables.ts import + * Public Variables are defined in here. + */ variables: Variables; + /** + * API Keys for various APIs + */ apis: Apis; + /** + * Discord API Token + */ token: string; + /** + * Config Strings for Supabase + * Thaldrin's Database + */ supabase: Supabase; - developers: Developer[]; } interface Developer { @@ -75,6 +92,10 @@ interface Apis { interface Variables { name: string; prefix: string[]; + /** + * Developers of this Bot + */ + developers: Developer[]; } interface Pkg {