aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-21 14:07:47 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-21 14:07:47 -0400
commitcb750202d5e8bd323c2d9628930506b4c870b845 (patch)
tree904e112e1d4f8365c50bbb00ae601a2b65b21700
parent932e6a75ccb1715d70e5060a89ccd3754c656186 (diff)
downloadtanzanite-cb750202d5e8bd323c2d9628930506b4c870b845.tar.gz
tanzanite-cb750202d5e8bd323c2d9628930506b4c870b845.tar.bz2
tanzanite-cb750202d5e8bd323c2d9628930506b4c870b845.zip
node 18
-rw-r--r--.github/workflows/checks.yml47
-rw-r--r--README.md6
-rw-r--r--lib/extensions/discord-akairo/BushClient.ts4
3 files changed, 35 insertions, 22 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 8af3039..66039be 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -7,24 +7,30 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- - name: Checkout Repo
- uses: actions/checkout@v2
- - name: Setup Node.js
- uses: actions/setup-node@v1
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Install node.js v18
+ uses: actions/setup-node@v3
with:
- node-version: 17.x
- - name: Yarn Cache
- uses: c-hive/gha-yarn-cache@v2
- - name: Install Dependencies
- run: yarn install --immutable
+ node-version: 18
+ cache: 'yarn'
+ cache-dependency-path: yarn.lock
+
+ - name: Install dependencies
+ run: yarn --immutable
+
- name: Create Fake Ignored files
run: |
cp config/example-options.ts config/options.ts
cp lib/badlinks.ts lib/badlinks-secret.ts
+
- name: ESLint
run: yarn lint
+
- name: Build
run: yarn build
+
- name: Dry Run
run: yarn start:dry
@@ -32,27 +38,32 @@ jobs:
name: Formatting
runs-on: ubuntu-latest
steps:
- - name: Checkout Repo
- uses: actions/checkout@v2
+ - name: Checkout repository
+ uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- - name: Setup Node.js
- uses: actions/setup-node@v1
+
+ - name: Install node.js v18
+ uses: actions/setup-node@v3
with:
- node-version: 17.x
- - name: Yarn Cache
- uses: c-hive/gha-yarn-cache@v2
- - name: Install Dependencies
- run: yarn install --immutable
+ node-version: 18
+ cache: 'yarn'
+ cache-dependency-path: yarn.lock
+
+ - name: Install dependencies
+ run: yarn --immutable
+
- name: Configure Git
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
+
- name: Format and Commit
run: |
yarn format
git commit -am "Automatically format code" || true
+
- name: Push Changes
uses: NotEnoughUpdates/github-push-action@master
with:
diff --git a/README.md b/README.md
index 7026bb9..97d537b 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
<!-- markdownlint-disable-file MD010 MD033 MD041 -->
-<a href="https://discord.com/api/oauth2/authorize?client_id=767478359348740148&permissions=5368709119918&scope=bot%20applications.commands"><h1 align="center" > BushBot </h1></a>
+<a href="https://discord.com/api/oauth2/authorize?client_id=767478359348740148&permissions=5368709119918&scope=bot%20applications.commands">
+ <h1 align="center">BushBot</h1>
+</a>
<div align="center">
<!-- lint -->
@@ -39,7 +41,7 @@ BushBot is an open-sourced multi-purpose moderation, and leveling bot.
<h3>Prerequisites</h3>
-- <a href="https://nodejs.org/en/">Node.JS</a> v17.0.0+
+- <a href="https://nodejs.org/en/">Node.JS</a> v18.0.0+
- <a href="https://yarnpkg.com/getting-started/install">Yarn</a>
- <a href="https://github.com/Automattic/node-canvas/wiki/Installation:-Windows">node-canvas</a>
- <a href="https://git-scm.com/">git</a>
diff --git a/lib/extensions/discord-akairo/BushClient.ts b/lib/extensions/discord-akairo/BushClient.ts
index 92968d6..b311ffd 100644
--- a/lib/extensions/discord-akairo/BushClient.ts
+++ b/lib/extensions/discord-akairo/BushClient.ts
@@ -390,8 +390,8 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
* Initializes the bot.
*/
public async init() {
- if (parseInt(process.versions.node.split('.')[0]) < 17) {
- void (await this.console.error('version', `Please use node <<v17.x.x>>, not <<${process.version}>>.`, false));
+ if (parseInt(process.versions.node.split('.')[0]) < 18) {
+ void (await this.console.error('version', `Please use node <<v18.x.x>>, not <<${process.version}>>.`, false));
process.exit(2);
}