chore(bots/discord): change config to a js file

This commit is contained in:
PalmDevs
2024-07-23 20:56:09 +07:00
parent 89d8ab1ee5
commit ffe0a3ddf5
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
import type { Config } from './config.schema' // @ts-check
/**
* @type {import('./config.schema').Config}
*/
export default { export default {
owners: ['USER_ID_HERE'], owners: ['USER_ID_HERE'],
guilds: ['GUILD_ID_HERE'], guilds: ['GUILD_ID_HERE'],
@@ -70,4 +73,4 @@ export default {
disconnectLimit: 3, disconnectLimit: 3,
disconnectRetryInterval: 10000, disconnectRetryInterval: 10000,
}, },
} satisfies Config as Config }

View File

@@ -9,6 +9,7 @@
"composite": false, "composite": false,
"exactOptionalPropertyTypes": false, "exactOptionalPropertyTypes": false,
"esModuleInterop": true, "esModuleInterop": true,
"allowJs": true,
"paths": { "paths": {
"$/*": ["./src/*"], "$/*": ["./src/*"],
"$constants": ["./src/constants"], "$constants": ["./src/constants"],