aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-17 14:11:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-17 14:11:37 -0400
commitda70ed6f4ad82c58adf7dc6120aa8b6b255238e9 (patch)
treea1d80d6d89ae249893c300234d034934a55ea0b4 /src/config
parentd1724227abfb8f0fcd9e573f7e9772cf0be8257a (diff)
downloadtanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.gz
tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.bz2
tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.zip
rewrote config for absolutly no reason :troll:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/example-options.ts69
1 files changed, 32 insertions, 37 deletions
diff --git a/src/config/example-options.ts b/src/config/example-options.ts
index 1b5d15a..ed3fd51 100644
--- a/src/config/example-options.ts
+++ b/src/config/example-options.ts
@@ -1,38 +1,33 @@
-import { Snowflake } from 'discord.js';
+import { Config } from '../lib/utils/Config';
-// Credentials
-export const credentials = {
- token: 'Token Here',
- devToken: 'Token Here',
- hypixelApiKey: 'API Key Here'
-};
-
-// Options
-export const owners: Snowflake[] = [
- '322862723090219008', //IRONM00N
- '464970779944157204', //TrashCan
- '487443883127472129' //Tyman
-];
-export const prefix = '-' as string;
-export const dev = true as boolean;
-export const devGuild = '1000000000000000' as Snowflake;
-export const channels: { log: Snowflake; error: Snowflake; dm: Snowflake; } = {
- log: '1000000000000000',
- error: '1000000000000000',
- dm: '1000000000000000',
-};
-
-// Database specific
-export const db = {
- host: 'localhost',
- port: 5432,
- username: 'username here',
- password: 'password here'
-};
-
-// Logging
-export const logging: { db: boolean; verbose: boolean; info: boolean } = {
- db: false,
- verbose: true,
- info: true
-};
+export default new Config({
+ credentials: {
+ token: '[TOKEN]',
+ betaToken: '[TOKEN]',
+ devToken: '[TOKEN]',
+ hypixelApiKey: '[API_KEY]'
+ },
+ environment: 'development',
+ owners: [
+ '322862723090219008', //IRONM00N
+ '464970779944157204', //TrashCan
+ '487443883127472129' //Tyman
+ ],
+ prefix: '-',
+ channels: {
+ log: '1000000000000000',
+ error: '1000000000000000',
+ dm: '1000000000000000'
+ },
+ db: {
+ host: 'localhost',
+ port: 5432,
+ username: '[USER_NAME]',
+ password: '[PASSWORD]'
+ },
+ logging: {
+ db: false,
+ verbose: true,
+ info: true
+ }
+});