Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Ignore the main node_modules directory
node_modules/
build/
config.js
.build/
build/
dist/
*.zip
*-cache.json

.vs/
local.env
.env
130 changes: 130 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm run build",
"name": "Run npm build",
"request": "launch",
"type": "node-terminal"
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${file}",
"outFiles": [
"${workspaceFolder}/**/*.js"
]
},
{
"type": "node",
"request": "launch",
"name": "Launch ThirdEye",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/src/start.ts",
"runtimeArgs": [
"--loader",
"ts-node/esm"
],
"outFiles": [
"${workspaceFolder}/**/*.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Launch Compiled Version",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/.build/start.js",
"outFiles": [
"${workspaceFolder}/.build/**/*.js"
],
"console": "integratedTerminal",
"preLaunchTask": "npm: build"
},
{
"type": "node",
"request": "launch",
"name": "Build (Linux)",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"build"
],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Build (Windows)",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"build_win"
],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Bundle (Linux)",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"bundle"
],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Bundle (Windows)",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"bundle_win"
],
"console": "integratedTerminal"
}
],
"compounds": [
{
"name": "Build and Run",
"configurations": [
"Build (Linux)",
"Launch Compiled Version"
]
},
{
"name": "Build (Windows) and Run",
"configurations": [
"Build (Windows)",
"Launch Compiled Version"
]
}
]
}
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"command": "npm",
"isShellCommand": true,
"suppressTaskName": true,
"tasks": [
{
"command": "npm",
"taskName": "build",
"label": "build",
"isBuildCommand": true,
"args": [
"run",
"build"
]
}
]
}
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,46 @@
<br>
<p>Kvr#7119: Original Logo</p>
</div>

## Building and Publishing

### Building the Project

For Linux:
```bash
npm run build
npm run bundle
```

For Windows:
```bash
npm run build_win
npm run bundle_win
```

### Publishing a Release to GitHub

To publish a new release to GitHub, you need to have the GitHub CLI installed and authenticated.

For Linux:
```bash
npm run publish
```

For Windows:
```bash
npm run publish:win
```

This will:
1. Build the project
2. Create a zip file with the build artifacts
3. Create a GitHub release with the current version number
4. Upload the zip file to the release

You can also use the following commands to increment the version number and then build:
```bash
npm run release:patch # Increment patch version (1.0.0 -> 1.0.1)
npm run release:minor # Increment minor version (1.0.0 -> 1.1.0)
npm run release:major # Increment major version (1.0.0 -> 2.0.0)
```
43 changes: 43 additions & 0 deletions local.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Discord Bot Settings
TOKEN=your_discord_bot_token
GUILD=your_discord_guild_id
CHANNEL=your_discord_channel_id

# Minecraft Settings
USERNAME=your_minecraft_username
IS_REALM=false
REALM_INVITE_CODE=
IP=localhost
PORT=19132

# Anti-Cheat Settings
ANTI_CHEAT_ENABLED=true
ANTI_CHEAT_CHANNEL_ID=your_anticheat_channel_id
ANTI_CHEAT_LOGS_CHANNEL=your_anticheat_logs_channel_id

# Discord Command Settings
CMD_PREFIX=!
LOG_SYSTEM_COMMANDS=false
SYSTEM_COMMANDS_CHANNEL=your_system_commands_channel_id

# Appearance Settings
USE_EMBED=true
SET_COLOR=0,153,255
SET_TITLE=My Servers Name!
LOGO_URL=https://i.imgur.com/XfoZ8XS.jpg

# Voice Chat Settings
VOICE_CHANNEL_COMMAND_PREFIX=$
VOICE_CHANNELS_CATEGORY=Voice Channels
VOICE_ADMIN_ROLE_ID=your_admin_role_id

# Security Settings
AUTH_TYPE=false
ADMINS=admin1_id,admin2_id
BLACKLIST_DEVICE_TYPES=
LOG_BAD_ACTORS=true

# Misc Settings
DEBUG=false
USE_SYSTEM_PLAYER_JOIN_MESSAGE=false
SEND_WHISPER_MESSAGES=false
Loading