Skip to content

Commit

Permalink
2.5.0
Browse files Browse the repository at this point in the history
Added Prettier.
Bot is not running when some handler throws the error
  • Loading branch information
AlexInCube committed May 27, 2024
1 parent aebe389 commit 0497962
Show file tree
Hide file tree
Showing 75 changed files with 3,718 additions and 3,248 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"prettier"
],
"env": {
"commonjs": true,
Expand All @@ -12,13 +13,15 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-non-null-assertion": 0
"@typescript-eslint/no-non-null-assertion": 0,
"prettier/prettier": 2
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 100
}
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
mongo:
container_name: mongo
aicbot-mongo:
container_name: aicbot-mongo
image: bitnami/mongodb:latest
restart: always
env_file:
Expand All @@ -12,8 +12,8 @@ services:
- ./data:/data/db
ports:
- '27018:27017'
bot:
container_name: bot
aicbot:
container_name: aicbot
image: alexincube/aicotest:latest
deploy:
restart_policy:
Expand All @@ -34,12 +34,12 @@ services:
target: /bot/yt-cookies.json
read_only: true
links:
- mongo
- aicbot-mongo
depends_on:
- mongo
watchtower:
- aicbot-mongo
aicbot-watchtower:
image: containrrr/watchtower
container_name: watchtower
container_name: aicbot-watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 3600 bot
command: --interval 3600 aicbot-bot
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aicbot",
"version": "2.4.5",
"version": "2.5.0",
"description": "Discord Bot for playing music",
"main": "build/main.js",
"scripts": {
Expand All @@ -16,31 +16,34 @@
"@discordjs/opus": "^0.9.0",
"@discordjs/rest": "^1.7.1",
"@discordjs/voice": "^0.16.1",
"@distube/soundcloud": "^1.3.3",
"@distube/soundcloud": "^1.3.5",
"@distube/spotify": "^1.6.1",
"@distube/yt-dlp": "^1.1.3",
"@distube/ytdl-core": "^4.13.3",
"cross-env": "7.0.3",
"discord.js": "^14.14.1",
"discord.js": "14.14.1",
"distube": "^4.2.2",
"distube-yandex-music-plugin": "^0.2.1",
"dotenv": "^16.4.5",
"i18next": "^22.5.1",
"i18next-fs-backend": "^2.3.1",
"mongoose": "^7.6.11",
"mongoose": "^7.6.12",
"node-os-utils": "^1.3.7",
"prism-media": "^1.3.5",
"sodium-native": "^4.1.1",
"uuid": "^9.0.1",
"zod": "^3.23.3"
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.12.7",
"@types/node": "^20.12.12",
"@types/node-os-utils": "^1.3.4",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit 0497962

Please sign in to comment.