From 96f652fac1e0239842cb9830ea67d90d108a43d9 Mon Sep 17 00:00:00 2001 From: jejebecarte <69335633+jejebecarte@users.noreply.github.com> Date: Thu, 19 Sep 2024 23:14:09 +1000 Subject: [PATCH] fix: Hypixel no longer supports 1.16 --- .env.template | 5 ++--- .github/workflows/ci.yml | 44 ++++++++++++++++++++-------------------- src/classes/bot.ts | 5 +---- 3 files changed, 25 insertions(+), 29 deletions(-) diff --git a/.env.template b/.env.template index 0142f58b..89aae17b 100644 --- a/.env.template +++ b/.env.template @@ -1,12 +1,11 @@ MINECRAFT_EMAIL="" MINECRAFT_PASSWORD="" +MINECRAFT_CHAT_SEPARATOR=">" +# The character that separates the author name from their message in game HYPIXEL_API_KEY="" # Do `/api new` on Hypixel for this -MINECRAFT_CHAT_SEPARATOR=">" -# The character that separates the author name from their message in game - USE_PROFANITY_FILTER=true # Profanity filter is designed to only block words disallowed by Hypixel, but may have false positives diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 221593b0..d58f4d35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,30 +3,30 @@ name: CI on: [push] jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 - - name: Install pnpm - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: 9 + run_install: false - - name: Use Node.js v18 - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: pnpm + - name: Use Node.js v18 + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: pnpm - - name: Install dependencies - run: pnpm install --frozen-lockfile + - name: Install dependencies + run: pnpm install --frozen-lockfile - - name: Lint - run: pnpm lint + - name: Lint + run: pnpm lint - - name: Setup files & build - if: success() || failure() - run: pnpm setup-files && pnpm build + - name: Setup files & build + if: success() || failure() + run: pnpm setup-files && pnpm build diff --git a/src/classes/bot.ts b/src/classes/bot.ts index a668324b..1e7d88b6 100644 --- a/src/classes/bot.ts +++ b/src/classes/bot.ts @@ -38,10 +38,7 @@ class Bot { password: env.MINECRAFT_PASSWORD, host: 'mc.hypixel.net', auth: 'microsoft', - version: '1.16.4', - logErrors: true, - hideErrors: true, - checkTimeoutInterval: 30000, + version: '1.20', defaultChatPatterns: false, });