mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): cross-device link build errors
This commit is contained in:
@@ -17,7 +17,8 @@ await Bun.build({
|
||||
})
|
||||
|
||||
logger.info('Copying config...')
|
||||
await cp('config.js', 'dist/config.js')
|
||||
await cp('./config.js', './dist/config.js')
|
||||
|
||||
logger.info('Copying database schema...')
|
||||
await rename('.drizzle', 'dist/.drizzle')
|
||||
await cp('./.drizzle', './dist/.drizzle', { recursive: true })
|
||||
await rm('./.drizzle', { recursive: true })
|
||||
|
||||
@@ -13,7 +13,7 @@ export { config }
|
||||
import * as commands from './commands'
|
||||
import * as schemas from './database/schemas'
|
||||
|
||||
import type Command from './classes/Command'
|
||||
import type { Command } from './commands/types'
|
||||
|
||||
export const logger = createLogger({
|
||||
level: config.logLevel === 'none' ? Number.MAX_SAFE_INTEGER : config.logLevel,
|
||||
@@ -81,7 +81,7 @@ export const discord = {
|
||||
},
|
||||
partials: [Partials.Message, Partials.Reaction],
|
||||
}),
|
||||
commands: Object.fromEntries(Object.values<Command>(commands).map(cmd => [cmd.name, cmd])) as Record<
|
||||
commands: Object.fromEntries(Object.values<Command>(commands).map(cmd => [cmd.data.name, cmd])) as Record<
|
||||
string,
|
||||
Command
|
||||
>,
|
||||
|
||||
Reference in New Issue
Block a user