Comments (5)
I'm thinking valid syntax would be:
--Display usage message
!list
--Display list of list names, or elements in given list if optional param provided
!list show [list_name]
--Adds new list to list of lists
!list add list_name
--Adds new element to given list
!list cons list_name element
--Removes list from list of lists
!list rmlist list_name
--Removes element from given list
!list rm list_name element_number
Anything else? Does order matter for our lists? We could add a snoc or make it so you add to a particular index.
from zhenya_bot.
We could also consolidate syntax by making [element] an optional for param for rm and add like this:
!list add list_name [element]
!list rm list_name [element]
Where they add/remove lists from the list of list, or elements from the given list when an element is provided.
from zhenya_bot.
+1 for the consolidated syntax for adding and removing.
Do we want to support fancier features like searching or marking an element in a list as done?
from zhenya_bot.
Not sure about searching, I feel like that is something we could come back to and add if we ever feel a pressing need for it.
I like the idea of being able to mark things off as done.
from zhenya_bot.
Still todo:
Marking elements as doneInsertion at given indexes
from zhenya_bot.
Related Issues (20)
- Idea for manual/help component HOT 1
- A guide for making your own component HOT 1
- !alias: nonexistent aliases are shown to be in their own cluster HOT 4
- Twitter Component
- Pongs are getting rate limited
- An Onion Component
- Rhyming Component HOT 1
- Substitution Component HOT 1
- Haiku Component
- Dictionary Service HOT 2
- Hang in sed component
- Substitution component doesn't allow escaping forward slashes HOT 1
- !define component failing to capitalize queries HOT 1
- Selectiveness for Reboot/Op Components HOT 1
- Support for super users HOT 5
- Reputation HOT 10
- Stalker component queries aren't being rate limited HOT 2
- Summarize Component HOT 1
- buttbot component HOT 1
- Trailing grep flags disconnect the bot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zhenya_bot.