diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7acbc5..e42e426 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt install libleptonica-dev libtesseract-dev libssl-dev + - name: Setup Rust toolchain id: rust-toolchain uses: actions-rs/toolchain@v1 @@ -28,12 +31,6 @@ jobs: override: true components: clippy - - name: Setup Node.js - if: github.event_name != 'pull_request' - uses: actions/setup-node@v2 - with: - node-version: "lts/*" - - name: Cache uses: actions/cache@v3 id: cache @@ -47,8 +44,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --release --target=x86_64-unknown-linux-musl - use-cross: true + args: --release - name: cargo clippy uses: actions-rs/cargo@v1 @@ -60,7 +56,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: revanced-discord-bot - path: target/x86_64-unknown-linux-musl/release/revanced-discord-bot + path: target/release/revanced-discord-bot - name: Setup semantic-release if: github.event_name != 'pull_request' diff --git a/CHANGELOG.md b/CHANGELOG.md index eb8fdd9..fc69b73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.10.0](https://github.com/revanced/revanced-discord-bot/compare/v1.9.0...v1.10.0) (2022-08-27) + + +### Features + +* ocr & mute on rejoin ([#20](https://github.com/revanced/revanced-discord-bot/issues/20)) ([afb7e79](https://github.com/revanced/revanced-discord-bot/commit/afb7e79b6756f79c99e6db60e47ea054104fa415)) + # [1.9.0](https://github.com/revanced/revanced-discord-bot/compare/v1.8.1...v1.9.0) (2022-08-22) diff --git a/src/utils/autorespond.rs b/src/utils/autorespond.rs index 34f63c7..be9038f 100644 --- a/src/utils/autorespond.rs +++ b/src/utils/autorespond.rs @@ -7,7 +7,7 @@ use super::*; use crate::utils::bot::get_data_lock; use crate::utils::ocr; -fn contains_match(regex: &[Regex], text: &str) -> bool { +pub fn contains_match(regex: &[Regex], text: &str) -> bool { regex.iter().any(|r| r.is_match(text)) }