This commit is contained in:
Vladimir (unknowableshade) Eremin committed 2023-05-09 02:48:58 +03:00
1 parent 615921a2d9
commit 483bc4895d
8 files changed
+3427 -2515

No files matched your search

+21 -21
View File
@@ -1,21 +1,21 @@
{ {
"root": true, "root": true,
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false, "warnOnUnsupportedTypeScriptVersion": false,
"sourceType": "module" "sourceType": "module"
}, },
"env": { "env": {
"browser": false, "browser": false,
"node": true, "node": true,
"es6": true "es6": true
}, },
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"], "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint", "import", "simple-import-sort"], "plugins": ["@typescript-eslint", "import", "simple-import-sort"],
"ignorePatterns": ["**/node_modules/**", "/dist/**", "/tests/**"], "ignorePatterns": ["**/node_modules/**", "/dist/**", "/tests/**"],
"rules": { "rules": {
"curly": ["error", "all"], "curly": ["error", "all"],
"simple-import-sort/imports": "error", "simple-import-sort/imports": "error",
"simple-import-sort/exports": "error" "simple-import-sort/exports": "error"
} }
} }
+35 -35
View File
@@ -1,35 +1,35 @@
name: Docker name: Docker
on: on:
workflow_run: workflow_run:
workflows: ["Mocha"] workflows: ["Mocha"]
types: types:
- completed - completed
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Log in to Docker Hub - name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata (tags, labels) for Docker
id: meta id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with: with:
images: unknowableshade/quetza-bot images: unknowableshade/quetza-bot
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with: with:
context: . context: .
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
+40 -40
View File
@@ -1,40 +1,40 @@
name: Mocha name: Mocha
on: on:
push: push:
tags: tags:
- "*" - "*"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [18.x] node-version: [18.x]
pnpm-version: [8] pnpm-version: [8]
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
with: with:
version: ${{ matrix.pnpm-version }} version: ${{ matrix.pnpm-version }}
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: ESLint && Prettier - name: ESLint && Prettier
run: pnpm run lint --if-present run: pnpm run lint --if-present
- name: Install dependencies - name: Install dependencies
run: pnpm ci run: pnpm ci
- name: Build - name: Build
run: pnpm run build --if-present run: pnpm run build --if-present
- name: Test - name: Test
run: pnpm test --if-present run: pnpm test --if-present
+23 -23
View File
@@ -1,23 +1,23 @@
{ {
"semi": true, "semi": true,
"trailingComma": "none", "trailingComma": "none",
"singleQuote": false, "singleQuote": false,
"printWidth": 100, "printWidth": 100,
"arrowParens": "always", "arrowParens": "always",
"bracketSpacing": true, "bracketSpacing": true,
"endOfLine": "crlf", "endOfLine": "crlf",
"overrides": [ "overrides": [
{ {
"files": ["**/*.json, **/*.yml"], "files": ["**/*.json, **/*.yml"],
"options": { "options": {
"tabWidth": 2 "tabWidth": 2
} }
}, },
{ {
"files": ["**/*.ts"], "files": ["**/*.ts"],
"options": { "options": {
"tabWidth": 4 "tabWidth": 4
} }
} }
] ]
} }
+16 -21
View File
@@ -1,21 +1,16 @@
# Quetza 4 # Quetza 4
_Neat typescript discord bot._ _Neat typescript discord bot._
## About ## About
- Base player features. - Base player features.
- Play music from YouTube and many other sites. - Play music from YouTube and many other sites.
- Lots of different filters _(nightcore, earrape etc.)_. - Lots of different filters _(nightcore, earrape etc.)_.
- Slash commands. - Slash commands.
## Links ## Links
- **[Dependencies](https://github.com/unknowableshade/quetza-bot/blob/master/package.json)** - **[Dependencies](https://github.com/unknowableshade/quetza-bot/blob/master/package.json)**
- **[Docker](https://hub.docker.com/repository/docker/unknowableshade/quetza-bot)** - **[Docker](https://hub.docker.com/repository/docker/unknowableshade/quetza-bot)**
- **[Licence](https://github.com/unknowableshade/5a0b-bot/blob/master/LICENSE)** - **[Licence](https://github.com/unknowableshade/5a0b-bot/blob/master/LICENSE)**
## Notes
- resolve toISOTime() issue.
- resolve absurd in voice connection (working)...
+55 -55
View File
@@ -1,55 +1,55 @@
{ {
"name": "quetza-bot", "name": "quetza-bot",
"engines": { "engines": {
"node": "18.x.x", "node": "18.x.x",
"npm": "*" "npm": "*"
}, },
"type": "module", "type": "module",
"version": "4.0.0", "version": "4.0.0",
"description": "Discord multifunctional bot", "description": "Discord multifunctional bot",
"author": { "author": {
"name": "unknowableshade", "name": "unknowableshade",
"email": "60275123+unknowableshade@users.noreply.github.com", "email": "60275123+unknowableshade@users.noreply.github.com",
"url": "https://unknowableshade.ru" "url": "https://unknowableshade.ru"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/unknowableshade/quetza-bot.git" "url": "git+https://github.com/unknowableshade/quetza-bot.git"
}, },
"bugs": { "bugs": {
"url": "https://github.com/unknowableshade/quetza-bot/issues" "url": "https://github.com/unknowableshade/quetza-bot/issues"
}, },
"readme": "https://github.com/unknowableshade/quetza-bot#readme", "readme": "https://github.com/unknowableshade/quetza-bot#readme",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"start": "node dist/index.js", "start": "node dist/index.js",
"build": "pnpm exec tsc --build", "build": "pnpm exec tsc --build",
"clean": "pnpm exec tsc --build --clean", "clean": "pnpm exec tsc --build --clean",
"lint": "pnpm exec eslint --fix . && pnpm exec prettier --write .", "lint": "pnpm exec eslint --fix . && pnpm exec prettier --write .",
"preinstall": "pnpx only-allow pnpm", "preinstall": "pnpx only-allow pnpm",
"prebuild": "pnpm exec prisma migrate deploy" "prebuild": "pnpm exec prisma migrate deploy"
}, },
"dependencies": { "dependencies": {
"@discordjs/opus": "^0.9.0", "@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.0", "@discordjs/voice": "^0.16.0",
"@prisma/client": "4.13.0", "@prisma/client": "4.13.0",
"discord-ytdl-core": "^5.0.4", "discord-ytdl-core": "^5.0.4",
"discord.js": "^14.11.0", "discord.js": "^14.11.0",
"tweetnacl": "^1.0.3", "tweetnacl": "^1.0.3",
"winston": "^3.8.2", "winston": "^3.8.2",
"ytdl-core": "^4.11.4" "ytdl-core": "^4.11.4"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^18.16.6", "@types/node": "^18.16.6",
"@typescript-eslint/eslint-plugin": "^5.59.5", "@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5", "@typescript-eslint/parser": "^5.59.5",
"eslint": "^8.40.0", "eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-simple-import-sort": "^10.0.0", "eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"prisma": "^4.13.0", "prisma": "^4.13.0",
"typescript": "^4.9.5" "typescript": "^4.9.5"
} }
} }
+3218 -2301
View File
File diff suppressed because it is too large. Load diff
+19 -19
View File
@@ -1,19 +1,19 @@
{ {
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,
"module": "ESNext", "module": "ESNext",
"moduleResolution": "node", "moduleResolution": "node",
"outDir": "dist", "outDir": "dist",
"removeComments": false, "removeComments": false,
"sourceMap": true, "sourceMap": true,
"esModuleInterop": true, "esModuleInterop": true,
"target": "ESNext", "target": "ESNext",
"lib": ["ESNext"], "lib": ["ESNext"],
"types": ["node"], "types": ["node"],
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["src/**/*"], "include": ["src/**/*"],
"exclude": ["node_modules", "dist", "src/commands", "src/events"] "exclude": ["node_modules", "dist", "src/commands", "src/events"]
} }