A running core that support many neural network models which works for NLP or providing solution
Based on Telegram Bot API and CLI for the main interfaces
git clone https://github.com/hanamiyuna/yawarakai.git
npm install # or yarn install
cp config.json.example config.json
# Edit the info inside config.json
npm start
# or
node app.js start
# add --debug flag if you want it to be debug mode
node app.js start --debug
Yawarakai provides a dynamical and powerful API for users to control the message flows and the way the users could do through the core system
Query feature of Wiki and Component loader by BlueCocoa zh-CN, zh-TW, zh-HK, jp-JP Translation by KagurazakaIzumi
Mood Update
- Code organization according to Codacy
- Code reform as a new directory for processor script
- Added a new API feature as Session
- Added a new handler as callbackquery for System
- Added many new command for admin
- Added a new feature for admin as Broadcast to broadcast message to all users
- Fixed several typos and prompts for commands
- Optimized the inlineQuery functions
Scene Update
- Code organization according to Codacy
- Database seperated into different groups
- Feature: Scene added and component API adapted
Scene is designed for the stage control, scene, which is the meaning itself, the situation. Based on different situation, messages or commands may be processed differently, this won't effect the inline, channel post, callbackquery.
Scene will only take place when the message or the trigger command has been executed, when a user is inside the scene, Yawarakai will ignore the other message distributor or the processor to the other components, the user's message will be redirected to the scene registered function to process in its own. This made a great experience where you need to make a wizard or make a short or 'question' based setup while in the interaction with user. - Formal documentation added
- Two of the official component updated with Scene feature
Data Update Discontinued the Redis server support of this project. We now use NeDB for the local database storage.
- Redis is now not used in this project and has been removed and related localization and config settings
- Logs now will be saved into
logs
according to the regulation of Node.js project - Settings of database files is inside of the config file, update before startup
- Fixed the flight component when the String of flight number cannot be matched in AA-0000 pattern
- Fixed the musicshare component where the tag of song #s12345678 missing with letter
s
- Fixed the NLP display error after using NeDB
Wonderful Update
- Added base command
/info
,/help
,/start
- Diagnostic log updated with new component feature
- Message log format has been changed
- Admin settings now available
- Added commands for official component MusicShare
- Fixed sendChatAction error
- Fixed NLP processing issue
- Fixed many issue
- Added
ja-JP
as Japanese support - Fixed the issue about flight and wiki inline query
- Added
zh-TW
as Chinese (Taiwan) support - Added
zh-HK
as Chinese (Hongkong) support - Added the feature that locale files will be automatically loaded
- Added some detail for components
- Added a new component
flight
as official component with flight search and track - Fixed MusicShare hashtag, commands, and data processing issue
- Fixed several processing issue with commands and messages