Cactbot User Template
This project is a template project for creating Cactbot customized triggers/timelines or custom user configurations, extending the scope and possibilities of customization based on the functionality of Cactbot's user folder override.
Instructions
- Download and install Node.js, in normal situation just choose the Windows installer. If you have already installed it, please skip this step..
- Download and install Git. If you have already installed it, please skip this step..
- Click the
Use This Templatebutton to create a new project under your account. - Run the
git clone <your GitHub account name>/<your project name>.gitcommand to clone this project locally. - Run the
cd <your project name>command to enter the project directory. - Install yarn if you haven't already done so:
npm install -g yarn. - Run
yarn installto install the required dependencies for the project. - Run the
yarn run buildcommand to package the project into thedistdirectory. - Start ACT and navigate to
OverlayPlugin > Cactbot > User Folder, set the path to the project'sdistdirectory. - Test the project whether it was compiled and loaded successfully by Cactbot.
- Teleport to the Summerford Farms.
- Start the test timeline by using the "/countdown" command or "/bow" to the striking dummy.
- Type
/e test userin the chat window to ensure the functions are working properly.
Note
Every time you changed source files, you should run yarn run build to update the code in the dist directory.
You can also use yarn run watch, which will automatically update the code in the dist directory when you change any file.
Differences from Cactbot
- Default configuration entry for all modules is
src/<module name>/index.js, so that you can split your code into multiple files and import them intoindex.js.
Raidboss module
- All trigger files in
raidbossmust be placed in thedatadirectory - All trigger sets must be exported as
export default { ... }
TypeScript support
Use cactbot-user-typescript-template instead.
Examples
Associated Projects
Feedback and Support
-
If you find any problems using this project, please submit an issue on GitHub.
- If the problem is with Cactbot itself, please submit an issue to the Cactbot repository.
-
If you have any suggestions, please submit a pull request on GitHub.
License
This project is published under MIT license. See LICENSE for details.