mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-26 12:41:03 +00:00
chore: fix more build issues
BREAKING CHANGE: In `@revanced/discord-bot`, its environment variable
`DATABASE_URL` has been renamed to `DATABASE_PATH`
and the `file:` prefix is no longer needed
This commit is contained in:
@@ -4,7 +4,7 @@ import { getMissingEnvironmentVariables } from '@revanced/bot-shared'
|
||||
import './events/register'
|
||||
|
||||
// Check if token exists
|
||||
const missingEnvs = getMissingEnvironmentVariables(['DISCORD_TOKEN', 'DATABASE_URL'])
|
||||
const missingEnvs = getMissingEnvironmentVariables(['DISCORD_TOKEN', 'DATABASE_PATH'])
|
||||
if (missingEnvs.length) {
|
||||
for (const env of missingEnvs) logger.fatal(`${env} is not defined in environment variables`)
|
||||
process.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user