Skip to content
Open
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
4 changes: 4 additions & 0 deletions .config/coloring.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/sh



export RESET="\e[0m"
export RED="\e[0;31m"
export YELLOW="\e[1;33m"
Expand Down
17 changes: 4 additions & 13 deletions .replit
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
hidden = [".config", "pnpm-lock.yaml", "tsconfig.json", ".gitignore"]
hidden = [".config", "deno.jsonc", "deno.lock", "tsconfig.json", ".gitignore", ".vscode"]
compile = "clear"
run = "pnpm run start"
run = "deno task start"

[gitHubImport]
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "pnpm-lock.yaml"]
requiredFiles = [".replit", "replit.nix", ".config", "deno.jsonc", "deno.lock"]



[nix]
channel = "stable-23_05"


[packager]
language = "nodejs-pnpm"

[packager.features]
packageSearch = true
guessImports = true
enabledForHosting = false
channel = "stable-23_05"
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"denoland.vscode-deno"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
93 changes: 6 additions & 87 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,12 @@
# AterBot ✨
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](/LICENSE)
<a href="https://discord.gg/44WtDkgxyk">
<img src="https://img.shields.io/badge/discord-%2324292e.svg?&style=for-the-badge&logo=discord&logoColor=white" alt="Discord"/>
</a>



<!--## `01/17/2023`, Now using Repl because Heroku isn't free anymore.-->
### This AFK bot will keep your Aternos server alive 24/7.
<!--### If you having any problems or errors, please let me know by creating an Issue.-->
### Please star this project <3
### Still in development.
<br/>



# Requirements 🎒
1. A Repl account.
Sign up at: https://replit.com/signup

2. An UptimeRobot account.
Sign up at: https://uptimerobot.com/signUp

3. A Minecraft server you owned.
Make sure your server settings ``online-mode`` set to ``false``!
And you should have the OP permission!



# Setup ⚙
1. Join your server first.
2. Build a bedrock room with X5 Y3 Z5 somewhere and stay in there.
3. Go to [Repl It](https://replit.com/).
4. Click `+` in the top right and click `Import from GitHub` at the close button.
5. Put `https://github.com/JadeMin/aterbot.git` into `GitHub URL` and click `Create Repl`!
6. Click `Run` at the top and wait for it done.
7. Now your bot will join your server. **Then teleport it in the bedrock room as soon as possible and change the gamemode to `Creative` to not die.**
8. You will see the `Webview` tab on your Repl, then copy the url.
10. Go to [UptimeRobot](https://uptimerobot.com/dashboard).
11. Click `Add New Monitor` and select `Monitor Type` to `HTTP(s)`.
12. Paste the url copied in `Step 8` into `URL (or IP)`.
13. Click `Create Monitor` 2 times.
14. Finally... DONE! Enjoy your free 24/7 Aternos server.



# FAQ ❓
> #### Q1: My bot leaves immediately when I close the Repl page.
<details><summary>A1:</summary>

Repl projects are automatically turned off by closing it or inactive in every 5 minutes.
And UptimeRobot trying to wake it up in every 5 minutes so you can just leave it even if not working for a while.
</details>

<hr/>

> #### Q2: How to fix `unsupported/unknown protocol version: ###, update minecraft-data`?
<details><summary>A2:</summary>

This project is using the mineflayer module and it may not supported on your server version **yet**.
I'm trying to periodically check for updates so please be patient.
</details>

<hr/>

> #### Q3: How to fix `Invalid move player packet received`?
<details><summary>A3:</summary>

It seems your bot escaped from your bedrock room so it's in invalid pos or moving to it.
First you have to wipe the bot's playerdata in your server.
1. Go to your Aternos server management page.
2. Click `Files` in the left section.
3. Delete the `world/playerdata/<UUID>.dat` and `<the same>.dat_old` file that points the bot username.

**After it, lock the bot immediately as soon as possible!**
**And change the bot's gamemode to `Creative` to not die.**
</details>

<hr/>

> #### Q4: My bot leaves after n hours permenantly.
<details><summary>A4:</summary>

I'm not sure but Aternos added a feature to their servers that **auto-ban players who playing too long.**
So just unban it if banned.
</details>



# CAUTION ⚠
### Aternos might detect your suspicious actions and can delete your account!
**By doing this, you acknowledge that you are responsible for any problems.**
**I DO NOT RECOMMEND DOING THIS ON YOUR MAIN ATERNOS SERVER!**
# Deno Extinction
1. Can't resolve some random Aternos provided domains that including underscores. WTF;asap'fjokma'sdlop;fkmj[;psd,w'KLMOP :">JWF
2. Every dependencies even I've just installed are shown as missing until restart VSCode.
![image.png](./misc/readme/missing_dep_cache.png)
3. asdfasdf placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder placeholder
6 changes: 6 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tasks": {
"start": "deno run --allow-read --allow-env --allow-net ./src/index.ts",
"dev": "deno run --watch --allow-read --allow-env --allow-net ./src/index.ts"
}
}
Loading