Skip to content

Commit a74ef31

Browse files
committed
v2
1 parent 67dea90 commit a74ef31

19 files changed

Lines changed: 974 additions & 849 deletions

File tree

.gitignore

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,82 @@ package-lock.json
3434
.env.development.local
3535
.env.test.local
3636
.env.production.local
37-
.env
37+
.env
38+
39+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
40+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
41+
42+
# User-specific stuff
43+
.idea/**/workspace.xml
44+
.idea/**/tasks.xml
45+
.idea/**/usage.statistics.xml
46+
.idea/**/dictionaries
47+
.idea/**/shelf
48+
49+
# AWS User-specific
50+
.idea/**/aws.xml
51+
52+
# Generated files
53+
.idea/**/contentModel.xml
54+
55+
# Sensitive or high-churn files
56+
.idea/**/dataSources/
57+
.idea/**/dataSources.ids
58+
.idea/**/dataSources.local.xml
59+
.idea/**/sqlDataSources.xml
60+
.idea/**/dynamic.xml
61+
.idea/**/uiDesigner.xml
62+
.idea/**/dbnavigator.xml
63+
64+
# Gradle
65+
.idea/**/gradle.xml
66+
.idea/**/libraries
67+
68+
# Gradle and Maven with auto-import
69+
# When using Gradle or Maven with auto-import, you should exclude module files,
70+
# since they will be recreated, and may cause churn. Uncomment if using
71+
# auto-import.
72+
# .idea/artifacts
73+
# .idea/compiler.xml
74+
# .idea/jarRepositories.xml
75+
# .idea/modules.xml
76+
# .idea/*.iml
77+
# .idea/modules
78+
# *.iml
79+
# *.ipr
80+
81+
# CMake
82+
cmake-build-*/
83+
84+
# Mongo Explorer plugin
85+
.idea/**/mongoSettings.xml
86+
87+
# File-based project format
88+
*.iws
89+
90+
# IntelliJ
91+
out/
92+
93+
# mpeltonen/sbt-idea plugin
94+
.idea_modules/
95+
96+
# JIRA plugin
97+
atlassian-ide-plugin.xml
98+
99+
# Cursive Clojure plugin
100+
.idea/replstate.xml
101+
102+
# SonarLint plugin
103+
.idea/sonarlint/
104+
105+
# Crashlytics plugin (for Android Studio and IntelliJ)
106+
com_crashlytics_export_strings.xml
107+
crashlytics.properties
108+
crashlytics-build.properties
109+
fabric.properties
110+
111+
# Editor-based Rest Client
112+
.idea/httpRequests
113+
114+
# Android studio 3.1+ serialized cache file
115+
.idea/caches/build_file_checksums.ser

.prettierignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
dist/
2-
node_modules/
3-
.yarn/
4-
examples/*/dist/
1+
*

.sapphirerc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ locations:
55
commands: commands
66
listeners: listeners
77
preconditions: preconditions
8+
interaction-handlers: interaction-handlers
89
customFileTemplates:
910
enabled: false
1011
location: ""

.vscode/extensions.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"recommendations": [
3-
"arcanis.vscode-zipfs",
4-
"dbaeumer.vscode-eslint",
5-
"esbenp.prettier-vscode"
6-
]
2+
"recommendations": [
3+
"arcanis.vscode-zipfs",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode"
6+
]
77
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"typescript.tsdk": ".yarn/sdks/typescript/lib",
99
"typescript.enablePromptUseWorkspaceTsdk": true,
1010
"deepscan.enable": true
11-
}
11+
}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Opens a model which accepts two code inputs and runs them against each other. Th
1717
A docker file is provided however not tested. We recommend you run this on a VPS and keep the process alive using a process manager such as PM2.
1818

1919
1. Copy the `.env.example` file to `.env` and fill in the values.
20-
2. Run `yarn install` to install the dependencies. If you do not have yarn installed, run `npm install -g yarn` to install it.
21-
3. Build the project using `yarn build`.
22-
4. Start the bot using `yarn start`. If you are using PM2, run `pm2 start dist/index.js --time --name test-track`.
20+
2. Run `pnpm install` to install the dependencies. If you do not have yarn
21+
installed, run `npm install -g pnpm` to install it.
22+
3. Build the project using `pnpm build`.
23+
4. Start the bot using `pnpm start`. If you are using PM2, run `pm2 start
24+
dist/index.js --time --name test-track`.

rome.json renamed to biome.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"$schema": "./node_modules/rome/configuration_schema.json",
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"ignore": ["dist", ".pnp.cjs", ".pnp.loader.mjs"]
4+
"ignore": ["dist", "./.idea", "./.dccache"],
5+
"ignoreUnknown": true
56
},
67
"linter": {
78
"enabled": true,
@@ -17,5 +18,8 @@
1718
"semicolons": "asNeeded",
1819
"trailingComma": "none"
1920
}
21+
},
22+
"organizeImports": {
23+
"enabled": true
2024
}
2125
}

package.json

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,54 @@
11
{
22
"name": "test-track",
3-
"version": "1.0.1",
4-
"exports": "./dist/index.js",
3+
"version": "1.1.0",
54
"main": "./dist/index.js",
6-
"author": "@sapphire",
75
"license": "UNLICENSE",
86
"type": "module",
97
"scripts": {
108
"build": "tsc",
119
"watch": "tsc -w",
1210
"start": "node dist/index.js",
1311
"dev": "run-s build start",
14-
"prettier": "prettier --write \"src/**/*.ts\"",
15-
"pretty": "rome check . --apply-suggested && rome format . --write",
16-
"predocker:watch": "npm install",
17-
"docker:watch": "tsc-watch --onSuccess \"node ./dist/index.js\""
12+
"format": "biome format --write . --diagnostic-level=warn",
13+
"lint": "biome check . --apply --diagnostic-level=warn",
14+
"pretty": "pnpm run format && pnpm run lint"
1815
},
1916
"dependencies": {
20-
"@sapphire/discord-utilities": "^3.1.0",
21-
"@sapphire/discord.js-utilities": "7.0.1",
22-
"@sapphire/fetch": "^2.4.1",
23-
"@sapphire/framework": "^4.5.3",
24-
"@sapphire/pieces": "^3.7.0",
25-
"@sapphire/plugin-api": "^5.1.1",
26-
"@sapphire/plugin-editable-commands": "^3.0.3",
27-
"@sapphire/plugin-logger": "^3.0.6",
28-
"@sapphire/plugin-subcommands": "^4.2.0",
29-
"@sapphire/stopwatch": "^1.5.0",
30-
"@sapphire/time-utilities": "^1.7.10",
31-
"@sapphire/type": "^2.4.0",
32-
"@sapphire/utilities": "^3.13.0",
33-
"@skyra/env-utilities": "^1.2.1",
34-
"@types/benchmark": "^2.1.2",
17+
"@sapphire/discord-utilities": "^3.2.1",
18+
"@sapphire/discord.js-utilities": "7.1.5",
19+
"@sapphire/fetch": "^3.0.1",
20+
"@sapphire/framework": "^5.0.5",
21+
"@sapphire/pieces": "^4.2.0",
22+
"@sapphire/plugin-api": "^6.1.0",
23+
"@sapphire/plugin-editable-commands": "^4.0.1",
24+
"@sapphire/plugin-logger": "^4.0.1",
25+
"@sapphire/plugin-subcommands": "^6.0.2",
26+
"@sapphire/stopwatch": "^1.5.1",
27+
"@sapphire/time-utilities": "^1.7.11",
28+
"@sapphire/type": "^2.4.3",
29+
"@sapphire/utilities": "^3.15.2",
30+
"@skyra/env-utilities": "^1.3.0",
31+
"@types/benchmark": "^2.1.5",
3532
"benchmark": "^2.1.4",
3633
"colorette": "^2.0.20",
37-
"discord-api-types": "^0.37.55",
38-
"discord.js": "^14.13.0",
34+
"discord-api-types": "^0.37.67",
35+
"discord.js": "^14.14.1",
3936
"dotenv": "^16.3.1",
40-
"eslint": "^8.48.0",
37+
"eslint": "^8.56.0",
4138
"global": "^4.4.0",
42-
"nanoid": "^4.0.2",
43-
"rome": "^12.1.3",
39+
"nanoid": "^5.0.4",
4440
"tslib": "^2.6.2"
4541
},
4642
"devDependencies": {
43+
"@biomejs/biome": "^1.5.0",
4744
"@sapphire/prettier-config": "^2.0.0",
48-
"@sapphire/ts-config": "^4.0.1",
49-
"@types/node": "^20.5.6",
50-
"@types/ws": "^8.5.5",
45+
"@sapphire/ts-config": "^5.0.0",
46+
"@types/node": "^20.10.7",
47+
"@types/ws": "^8.5.10",
5148
"npm-run-all": "^4.1.5",
52-
"prettier": "^3.0.2",
49+
"prettier": "^3.1.1",
5350
"tsc-watch": "^6.0.4",
54-
"typescript": "^5.2.2"
51+
"typescript": "^5.3.3"
5552
},
5653
"prettier": "@sapphire/prettier-config",
5754
"engines": {

0 commit comments

Comments
 (0)