Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
- v4.0.7
  • Loading branch information
appujet committed Feb 18, 2024
1 parent d4a7a55 commit f7c9dae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ COPY package*.json ./
RUN apt-get update && \
apt-get install -y && \
npm install

# Copy source code
COPY . .

# Copy tsconfig.json
COPY tsconfig.json ./

# Build TypeScript
RUN npm run build

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
volumes:
# mount .env from the same directory or use environment variables
- .env:/opt/lavamusic/.env
#- ./database:/opt/lavamusic/database
- ./database:/opt/lavamusic/database
restart: on-failure
depends_on:
lavalink:
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lavamusic",
"version": "4.0.6",
"version": "4.0.7",
"description": "LavaMusic is a music bot for Discord, written in JavaScript using the Discord.js, Typescript, Shoukaku (Lavalink) library.",
"main": "dist/index.js",
"type": "module",
Expand All @@ -11,8 +11,7 @@
"lint": "eslint . --cache --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --fix --cache --ext .js,.jsx,.ts,.tsx",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"postinstall": "npm run build && node dist/index.js"
"format:fix": "prettier --write ."
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/database/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Database from 'better-sqlite3';

import config from '../config.js';

const db = new Database('./dist/database/lavamusic.db', {
const db = new Database('./database/lavamusic.db', {
fileMustExist: false,
readonly: false,
});
Expand Down

0 comments on commit f7c9dae

Please sign in to comment.