Skip to content

Commit

Permalink
fix: Hypixel no longer supports 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
jejebecarte committed Sep 19, 2024
1 parent dab0b1d commit 96f652f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 deletions.
5 changes: 2 additions & 3 deletions .env.template
Original file line number Diff line number Diff line change
@@ -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

Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 1 addition & 4 deletions src/classes/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit 96f652f

Please sign in to comment.