Skip to content

Commit 91bac93

Browse files
authored
chore: merge dev to main
2 parents fbf0dee + d74fba4 commit 91bac93

File tree

201 files changed

+10490
-8309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+10490
-8309
lines changed

.commitlintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
}

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
indent_style = space
10+
indent_size = 4
11+
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true

.eslintrc.js

-18
This file was deleted.

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=lf

.github/workflows/build.yml

-64
This file was deleted.

.github/workflows/release.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- dev
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
timeout-minutes: 10
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
# Make sure the release step uses its own credentials:
23+
# https://github.com/cycjimmy/semantic-release-action#private-packages
24+
persist-credentials: false
25+
fetch-depth: 0
26+
27+
- name: Cache dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: '**/node_modules'
31+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
32+
restore-keys: ${{ runner.os }}-bun-
33+
34+
- name: Setup Bun
35+
uses: oven-sh/setup-bun@v2
36+
37+
- name: Install dependencies
38+
run: bun install --frozen-lockfile
39+
40+
- name: Build packages
41+
run: bun run build:packages
42+
43+
- name: Setup QEMU
44+
uses: docker/setup-qemu-action@v3
45+
with:
46+
platforms: amd64, arm64
47+
48+
- name: Setup Docker Buildx
49+
uses: docker/setup-buildx-action@v3
50+
51+
- name: Build and release
52+
env:
53+
RELEASE_WORKFLOW_STEP: release
54+
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
55+
DOCKER_REGISTRY_USER: ${{ github.repository_owner }}
56+
DOCKER_REGISTRY_PASSWORD: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
57+
DEBUG: semantic-release:*
58+
run: bunx multi-semantic-release --debug
59+
60+
# We call multi-semantic-release twice to publish in a different step
61+
# An environment variable determines which plugins in the config to run
62+
- name: Trigger Portainer webhooks
63+
if: github.ref == 'refs/heads/main'
64+
env:
65+
RELEASE_WORKFLOW_STEP: publish
66+
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
67+
WEBSOCKET_API_PORTAINER_WEBHOOK_URL: ${{ secrets.WEBSOCKET_API_PORTAINER_WEBHOOK_URL }}
68+
DISCORD_BOT_PORTAINER_WEBHOOK_URL: ${{ secrets.DISCORD_BOT_PORTAINER_WEBHOOK_URL }}
69+
run: bunx multi-semantic-release
70+
71+
- name: Purge outdated images
72+
uses: snok/[email protected]
73+
with:
74+
account: ${{ github.repository_owner }}
75+
token: ${{ secrets.DELETE_PACKAGES_TOKEN }}
76+
image-names: "revanced-bot-*"
77+
keep-n-most-recent: 5
78+
cut-off: 3M

.gitignore

100644100755
+60-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,60 @@
1-
node_modules
2-
model
3-
test.js
4-
eng.traineddata
5-
bots/*
6-
server/**/**
7-
test/*
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Dependency directories
14+
node_modules/
15+
16+
# TypeScript cache
17+
*.tsbuildinfo
18+
19+
# Optional npm cache directory
20+
.npm
21+
22+
# Optional eslint cache
23+
.eslintcache
24+
25+
# Optional REPL history
26+
.node_repl_history
27+
28+
# Output of 'npm pack'
29+
*.tgz
30+
31+
# Yarn Integrity file
32+
.yarn-integrity
33+
34+
# dotenv environment variable files
35+
.env
36+
.env.development.local
37+
.env.test.local
38+
.env.production.local
39+
.env.local
40+
41+
# yarn v2
42+
.yarn/cache
43+
.yarn/unplugged
44+
.yarn/build-state.yml
45+
.yarn/install-state.gz
46+
.pnp.*
47+
48+
# Turborepo
49+
.turbo/
50+
dist/
51+
build/
52+
53+
# Tesseract
54+
*.traineddata
55+
56+
# ESLint
57+
.eslintcache
58+
59+
# VSCode
60+
.vscode/

.multi-releaserc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"ignorePrivate": false,
3+
"ignorePackages": ["packages/**"]
4+
}

.prettierrc.json

-4
This file was deleted.

Dockerfile

-25
This file was deleted.

README.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<p align="center">
2+
<picture>
3+
<source
4+
width="256px"
5+
media="(prefers-color-scheme: dark)"
6+
srcset="./assets/revanced-headline/revanced-headline-vertical-dark.svg"
7+
>
8+
<img
9+
width="256px"
10+
src="./assets/revanced-headline/revanced-headline-vertical-light.svg"
11+
>
12+
</picture>
13+
<br>
14+
<a href="https://revanced.app/">
15+
<picture>
16+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="./assets/revanced-logo/revanced-logo-round.svg" />
17+
<img height="24px" src="./assets/revanced-logo/revanced-logo-round.svg" />
18+
</picture>
19+
</a>&nbsp;&nbsp;&nbsp;
20+
<a href="https://github.com/revanced">
21+
<picture>
22+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://i.ibb.co/dMMmCrW/Git-Hub-Mark.png" />
23+
<img height="24px" src="https://i.ibb.co/9wV3HGF/Git-Hub-Mark-Light.png" />
24+
</picture>
25+
</a>&nbsp;&nbsp;&nbsp;
26+
<a href="http://revanced.app/discord">
27+
<picture>
28+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" />
29+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032563-d4e084b7-244e-4358-af50-26bde6dd4996.png" />
30+
</picture>
31+
</a>&nbsp;&nbsp;&nbsp;
32+
<a href="https://reddit.com/r/revancedapp">
33+
<picture>
34+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" />
35+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032351-9d9d5619-8ef7-470a-9eec-2744ece54553.png" />
36+
</picture>
37+
</a>&nbsp;&nbsp;&nbsp;
38+
<a href="https://t.me/app_revanced">
39+
<picture>
40+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" />
41+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032213-faf25ab8-0bc3-4a94-a730-b524c96df124.png" />
42+
</picture>
43+
</a>&nbsp;&nbsp;&nbsp;
44+
<a href="https://x.com/revancedapp">
45+
<picture>
46+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/93124920/270180600-7c1b38bf-889b-4d68-bd5e-b9d86f91421a.png">
47+
<img height="24px" src="https://user-images.githubusercontent.com/93124920/270108715-d80743fa-b330-4809-b1e6-79fbdc60d09c.png" />
48+
</picture>
49+
</a>&nbsp;&nbsp;&nbsp;
50+
<a href="https://www.youtube.com/@ReVanced">
51+
<picture>
52+
<source height="24px" media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" />
53+
<img height="24px" src="https://user-images.githubusercontent.com/13122796/178032714-c51c7492-0666-44ac-99c2-f003a695ab50.png" />
54+
</picture>
55+
</a>
56+
<br>
57+
<br>
58+
Continuing the legacy of Vanced
59+
</p>
60+
61+
# 🤖 ReVanced Helper
62+
63+
Bots assisting ReVanced on multiple platforms.
64+
65+
## 👷🏻 Contributing
66+
67+
Thank you for considering! This project is made in TypeScript and we use the [Bun](https://bun.sh) JavaScript runtime.
68+
69+
Please refer to the [documentation](./docs) for more information.
70+
You can find projects under the [`apis`](./apis/), [`bots`](./bots), and [`packages`](./packages/) directories.

apis/websocket/.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Your Wit.ai token
2+
WIT_AI_TOKEN="YOUR_TOKEN_HERE"

0 commit comments

Comments
 (0)