node.js Botting (CaracAL) - lordachoo/adventureland GitHub Wiki
CaracAL Botting
Install
- assumes NVM installed (
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
)
- CaracAL Repo suggests Node 14, but i'm running
node v21.6.1
and it's working -- nvm install node 14
$ git clone https://github.com/numbereself/caracAL.git
$ cd caracAL
$ npm install
#if you want caracAL to autostart run
#chmod +x ./start_on_boot.sh
#./start_on_boot.sh
# This installs a systemd unit
# To start
$ node main.js
Config
- This will prompt you for email/passwd and login to your account
- THIS WILL CREATE A config.js FILE FOR YOU TO EDIT
- You can choose which characters to enable here in a tui interface - select & enable.
- Select Deploy and hit enter when ready
- CTRL+C and end
- vi config.js
- Edit the script locations for each character:
- If you put in the path /scripts/characterName.js
- it will default to caracAL/CODE/scripts/characterName.js pathing
- Set the options you want -- e.g enable_bwi , enable_minimap, and the port for the webUI if you want them on
- node main.js and start again and your character should login and start processing their scripts.
- you can still access the characters via /comm interface
Start Script
#!/bin/bash
dt=$(date +"%Y_%m_%d_%I_%M_%p");
#echo $dt
node main.js > $dt.log
WebUI Example