da2ca7099ff198af6f4a4f2b10fa0a1602da7191
# PR Checklist - [ ] Have you checked if it works normally in all models? *Ignore this if it doesn't use models.* - [ ] Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions? - [ ] Have you added type definitions? # Description The community have reported an issue where chat array-related effects malfunction when using modules using Lua alongside modules using blocks. It appears that my previous PR, #639, may be the cause of this problem. This PR included the following changes: 1. Reverted a previous change to allow Lua triggers to cycle correctly within the trigger pipeline. 2. After that, the issue that the previous PR attempted to fix has (understandably) resurfaced. To address this, I've taken a different approach: To prevent a situation where a created Lua mutex would eternally reference a single chat object if not initialized again, I've added a chat variable to the `luaEngineState` interface and updated it on every call. 3. I noticed that the `removeChat` function was included twice in the Lua bindings. I've removed one. (Or was this intentional?) 4. Modified the `getFullChat` function to also return the creation time of the chat. Just in case, I've also attached a link to the bot card with Lua trigger I used for testing: https://files.catbox.moe/ujqt3o.jpeg
RisuAI
RisuAI, or Risu for short, is a cross platform AI chatting software / web application with powerful features such as multiple API support, assets in the chat, regex functions and much more.
Screenshots
| Screenshot 1 | Screenshot 2 |
|---|---|
Features
- Multiple API Supports: Supports OAI, Claude, Ooba, OpenRouter... and More!
- Emotion Images: Display the image of the current character, according to his/her expressions!
- Group Chats: Multiple characters in one chat.
- Plugins: Add your features and providers, and simply share.
- Regex Script: Modify model's output by regex, to make a custom GUI and others
- Powerful Translators: Automatically translate the input/output, so you can roleplay without knowing model's language.
- Lorebook: Also known as world infos or memory book, which can make character memorize more.
- Themes: Choose it from 3 themes, Classic, WaifuLike, WaifuCut.
- Powerful Prompting: Change the prompting order easily, Impersonate inside prompts, Use conditions, variables... and more!
- Customizable, Friendly UI: Great Accessibility and mobile friendly
- TTS: Use TTS to make the output text into voice.
- Additonal Assets: Embed your images, audios and videos to bot, and make it display at chat or background!
- And More!
You can get detailed information on https://github.com/kwaroran/RisuAI/wiki (Work in Progress)
Discord
Installation
- RisuAI Website (Recommended)
- Github Releases
Docker Installation
You can also run RisuAI using Docker. This method is particularly useful for web hosting.
-
Clone the repository:
git clone https://github.com/kwaroran/RisuAI.git cd RisuAI -
Build and run the Docker container:
docker-compose up -d -
Access RisuAI at
http://localhost:6001in your web browser.
Description
Languages
TypeScript
58.9%
Svelte
35.1%
JavaScript
4.4%
Rust
0.5%
Lua
0.3%
Other
0.7%