wechaty / wishlist

Puppets, Bots, and other Tooling Requested by Community Members
6 stars 0 forks source link

connect chat adventure game engine to WeChaty #44

Open dcsan opened 3 years ago

dcsan commented 3 years ago

I wrote a game engine to deliver story like adventure games in a chat system. It was initially written for slack and Discord.

It would be interesting to port this to support WeChat. That would allow people to play group "adventure games" in a chat session.

The engine uses a script format to describe the stories https://github.com/dcsan/storydata

It has concepts for:

all matching for sentences is done using Regex so we won't have the problems of systems like rivescript which uses a simplified regex pattern that doesn't work well for non-space languages like Chinese (or japanese)

The main runtime engine is all written in typescript currently there is a "PAL" class - Platform Abstraction Layer- that already has adapters for Slack and Discord APIs. This project would mainly be to adapt this to wechaty input/output API for delivering games into groups

You can play some of the games built with this on Discord, but this maybe hard inside the GFW. https://ten.rik.ai/asylum/

of course discord and slack have many features wechat does not, such as buttons or "clickable emoji reactions" so the adapter would have to deal with things like a "collector" or different ways to present menus. Wechat's main feature is that it's usable inside China.

Eventually we could make a web based editor for adding new stories, that would allow something like "fan fiction" stories to be created.

dcsan commented 3 years ago

play BoPO game on discord here (direct link to our server) https://discord.com/invite/Qgup6qU

dcsan commented 3 years ago

a bit more info/writeup https://dc.rik.ai/projects/ten

this type of engine could be used to deliver language learning games over wechat too. that was the original idea for this project: https://dc.rik.ai/projects/comic-english