expressions-extension
v0.0.6
Published
This is a simple extension that classifies bot responses in order to show their expression pack images based on their current emotion.
Downloads
3
Readme
Expressions Extension for Chub
This is a simple extension that classifies bot responses in order to show their expression pack images based on their current emotion.
It also serves as an example of how to develop an extension that can't be handled in the editor UI, or if you just prefer to use a normal development environment.
Feel free to clone this project for use as a template. In particular, src/TestRunner.tsx is a useful example of how to test things locally without a running chat.
You'll need [email protected] and yarn installed. Then, to get started:
git clone https://github.com/CharHubAI/expressions-extension
cd expressions-extension
yarn install
yarn dev
This project uses GitHub actions to update the extension in Chub on commits to the main branch. For your project to do this, you'll need to get an extension auth token from the api.
Then in the GitHub project, go to Settings -> Secrets and Variables -> Actions -> Repository secrets -> New Repository Secret. Add the token with the name "CHUB_AUTH_TOKEN".