A SillyTavern extension that adds third-party data banks into SillyTavern (miHoYo/HoYoverse HoYoLAB, etc.)
Bronie: Bronie! :)
Because Bronie.
- SillyTavern 1.12.0
- Node.js 20+
- Click Extensions then Install Extension
- Paste in the following link into the text field and click Save:
https://github.com/Bronya-Rand/Bronie-Parser-Extension
. - Install any third-party data bank plugin into SillyTavern's
plugins
folder. - Restart SillyTavern.
- Go to Data Bank under the magic wand icon. You should see your third-party scraper appear!
I recommend referring to the supplied miHoYo/HoYoVerse extension for making a scraper. For this example, we will use a theoretical scraper named
fuXuan
.
- Create a folder for your extension followed by a blank JS file.
- Program the logic of the Scraper class and the things you want.
- Create the HTML UI in a blank HTML file.
- In
index.js
, import your scraper and add it to PARSER_LIST
import { ScraperManager } from "../../../scrapers.js";
import { miHoYoScraper } from "./parsers/mihoyo/mihoyo.js";
import { fuXuan } from "./parsers/fuXuan/fuXuan.js";
const MODULE_NAME = "Bronie Parser Extension";
const PARSER_LIST = [new miHoYoScraper(), new fuXuan()];
- Restart SillyTavern.
- Go to Data Bank under the magic wand icon. You should see your new scraper appear!
If your scraper doesn't have an icon defined in FontAwesome, do the following:
- First grab the icon and save it as a white SVG file of 20x20.
- In your scraper file, do the following under
constructor()
export class yourScraper {
constructor() {
...
this.iconClass = 'scripts/extensions/third-party/Bronie-Parser-Extension/parsers/your-parser/parserIcon.svg';
this.iconAvailable = false; // True: Icon exists in FontAwesome | False: Icon doesn't exist
}
...
}
If your scraper has a icon in FontAwesome, make sure
this.iconAvailable
is set to True.
- My custom scraper is not appearing in the Data Bank!
- Make sure the plugin is installed in SillyTavern and that
enableServerPlugins
is set to True. - Verify that you imported your scraper and added it into Bronie's
index.js
file as seen in Creating a Scraper for the Bronie Extension. - The scraper you are installing has yet been implemented into the Bronie extension! (BronyaShock)
No worries! You can always make one and send a PR to get it implemented. (BronyaNod)
- Make sure the plugin is installed in SillyTavern and that
- My custom scraper icon is not appearing!
Make sure the image has been added and you followed Scraper Icon Setup. Make sure it points directly to the scripts folder and all the way to your scraper.