diff --git a/src/commands/chattings/deleteLearnedData.ts b/src/commands/chattings/deleteLearnedData.ts index 6904da9..0e4dfd7 100644 --- a/src/commands/chattings/deleteLearnedData.ts +++ b/src/commands/chattings/deleteLearnedData.ts @@ -1,6 +1,6 @@ -import type { Context } from '../../lib/context' -import { MuffinCustomId } from '../../lib/customId' -import { Learn } from '../../lib/databases' +import type { Context } from '$lib/context' +import { MuffinCustomId } from '$lib/customId' +import { Learn } from '$lib/databases' import { ApplyOptions } from '@sapphire/decorators' import { Args, Command } from '@sapphire/framework' import { diff --git a/src/commands/chattings/learn.ts b/src/commands/chattings/learn.ts index dc11a2e..df7ada1 100644 --- a/src/commands/chattings/learn.ts +++ b/src/commands/chattings/learn.ts @@ -1,5 +1,5 @@ -import type { Context } from '../../lib/context' -import { Learn } from '../../lib/databases' +import type { Context } from '$lib/context' +import { Learn } from '$lib/databases' import { ApplyOptions } from '@sapphire/decorators' import { Args, Command } from '@sapphire/framework' import { diff --git a/src/commands/chattings/learnedDataList.ts b/src/commands/chattings/learnedDataList.ts index 592024d..04826cb 100644 --- a/src/commands/chattings/learnedDataList.ts +++ b/src/commands/chattings/learnedDataList.ts @@ -1,5 +1,5 @@ -import type { Context } from '../../lib/context' -import { Learn } from '../../lib/databases' +import type { Context } from '$lib/context' +import { Learn } from '$lib/databases' import { ApplyOptions } from '@sapphire/decorators' import { Command } from '@sapphire/framework' import { diff --git a/src/commands/generals/dataLength.ts b/src/commands/generals/dataLength.ts index 26c2b2a..c4fe79a 100644 --- a/src/commands/generals/dataLength.ts +++ b/src/commands/generals/dataLength.ts @@ -1,5 +1,5 @@ -import type { Context } from '../../lib/context' -import { Learn, Text } from '../../lib/databases' +import type { Context } from '$lib/context' +import { Learn, Text } from '$lib/databases' import { ApplyOptions } from '@sapphire/decorators' import { Command } from '@sapphire/framework' import { diff --git a/src/commands/generals/help.ts b/src/commands/generals/help.ts index cb25f46..f572bd7 100644 --- a/src/commands/generals/help.ts +++ b/src/commands/generals/help.ts @@ -1,4 +1,4 @@ -import type { CategoryByEnglish } from '../../lib/commandCategory' +import type { CategoryByEnglish } from '$lib/commandCategory' import type { Context } from '../../lib/context' import { ApplyOptions } from '@sapphire/decorators' import { Args, Command } from '@sapphire/framework' diff --git a/src/commands/generals/information.ts b/src/commands/generals/information.ts index 7d2d175..ee2c15c 100644 --- a/src/commands/generals/information.ts +++ b/src/commands/generals/information.ts @@ -1,4 +1,4 @@ -import type { Context } from '../../lib/context' +import type { Context } from '$lib/context' import { ApplyOptions } from '@sapphire/decorators' import { Command } from '@sapphire/framework' import { diff --git a/src/init.ts b/src/init.ts index b201ce2..f7a91e4 100644 --- a/src/init.ts +++ b/src/init.ts @@ -1,5 +1,5 @@ +import { ReleaseChannel } from '$lib/releaseChannel' import { Config } from './config' -import { ReleaseChannel } from './lib/releaseChannel' import { container } from '@sapphire/pieces' import type { Client } from 'dokdo' import { connect, disconnect } from 'mongoose' diff --git a/src/interaction-handlers/deleteLearnedData.ts b/src/interaction-handlers/deleteLearnedData.ts index 28e3644..1216008 100644 --- a/src/interaction-handlers/deleteLearnedData.ts +++ b/src/interaction-handlers/deleteLearnedData.ts @@ -1,5 +1,5 @@ -import { MuffinCustomId } from '../lib/customId' -import { Learn } from '../lib/databases' +import { MuffinCustomId } from '$lib/customId' +import { Learn } from '$lib/databases' import { ApplyOptions } from '@sapphire/decorators' import { InteractionHandler, diff --git a/src/listeners/messageCreate.ts b/src/listeners/messageCreate.ts index 25c4962..a9d3bee 100644 --- a/src/listeners/messageCreate.ts +++ b/src/listeners/messageCreate.ts @@ -1,5 +1,5 @@ -import { Learn, Text, type IText } from '../lib/databases' -import { ReleaseChannel } from '../lib/releaseChannel' +import { Learn, Text, type IText } from '$lib/databases' +import { ReleaseChannel } from '$lib/releaseChannel' import { Listener } from '@sapphire/framework' import type { Message, TextChannel } from 'discord.js' import { Client } from 'dokdo' diff --git a/tsconfig.json b/tsconfig.json index adb5c6c..b5c28a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,12 @@ // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, - "noPropertyAccessFromIndexSignature": false + "noPropertyAccessFromIndexSignature": false, + + "baseUrl": "./", + "paths": { + "$lib/*": ["src/lib/*"] + } }, "include": ["src/**/*.ts", "migrateMariaDBToMongoDB.ts"], "exclude": ["node_modules"]