status: Alpha
Created for the need of a simple game that would look at a folder, index it, and then allow the viewers to collected said collection via a channel rewards.
** Collection Game is two scripts and will be rewritten in the near future to be a custom game for. Firebot *** Based on the the template script that firebot provided
- User DB
- Persist Custom Variables
- Custom Scripts
- Create an
item.txtfile in a safe directory - Add both JS Files
collectionGame - reward,collectionGame - startupto the Scripts Folder. - Add
collectionGame - startupscript in the start up scripts - Collection Name: Name it what you want. I would keep this simple and that works with reward message.
- folder: Select a directory that will have all your image files in it
- dbFolderPath: Select the folder where you put the item.txt
- Add effect
Custom Script - Select
collectionGame - reward
Message: metadata.username + " has collected a " + selectedItem.name + " " + collectionName + "\! They now have collected " + test.totalCount + " " + collectionName + "s\."
Overlay: Shows Image, Jackinthebox ,wobble, rollout - total time is 10 image size is 250 by 250
- merge into 1 scripts
- validate item.txt
- integrate reward into events
- create build and pack script
- output information into a variable.
- Can't replay message from action message
- Create a new repo based off this template (Click "Use this Template" above) or simply fork it
npm install
Dev:
npm run build:dev
- Automatically copies the compiled .js to Firebot's scripts folder.
Release:
npm run build
- Copy .js from
/dist
- Keep the script definition object (that contains the
run,getScriptManifest, andgetDefaultParametersfuncs) in themain.tsfile as it's important those function names don't get minimized. - Edit the
"scriptOutputName"property inpackage.jsonto change the filename of the outputted script.