cofree-coffee / cofree-bot

A library for building bots compositionally.
41 stars 8 forks source link

In-Memory Todo List Bot Behavior #54

Open solomon-b opened 2 years ago

solomon-b commented 2 years ago

Adds a basic Todo List bot behavior, resolving #44:

<<< 📝 podcast-guests create
>>> List Created
<<< 📝 podcast-guests 📝 masaeedu
>>> List Updated
<<< 📝 podcast-guests 📝 boarders
>>> List Updated
<<< 📝 podcast-guests
>>> podcast-guests:
0. masaeedu
1. boarders
<<< list podcast-guests create
>>> List Created
<<< list podcast-guests add masaeedu
>>> List Updated
<<< list podcast-guests add boarders
>>> List Updated
<<< list podcast-guests
>>> podcast-guests:
0. masaeedu
1. boarders

TODO:

solomon-b commented 2 years ago

@isovector

isovector commented 2 years ago

I think we double down on emoji interfaces like the pear. Maybe we could use 📝 to add to a list and ✅ to remove from it.

solomon-b commented 2 years ago

I think these are all the actions we want:

- create <list-name>
- delete <list-name>
- show <list-name>
- add <list-name> <text>
- remove <list-name> <list-entry-key>
- update <list-name> <list-entry-key> <text>

Does that seem right? Can you help pick emojis for all of them?

solomon-b commented 2 years ago

@isovector I think this is ready to get merged. We can fine tune it based on how we end up using it:

<<< 📝 podcast-guests create
>>> List Created
<<< 📝 podcast-guests 📝 masaeedu
>>> List Updated
<<< 📝 podcast-guests 📝 boarders
>>> List Updated
<<< 📝 podcast-guests
>>> podcast-guests:
0. masaeedu
1. boarders
isovector commented 1 year ago

nice!

solomon-b commented 1 year ago

nice!

I wanna wait to merge this til the testing PR merges.