-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new links between commands : when, until, ... #20
Comments
whoa, meta programming! I never thought to try to do that with a bot. I wonder what you might try to do. Hm. |
Maybe "when you have low food, eat food" |
If you have available tasks that can provide functionality, you could have implied actions. "ensure not hungry" could mean, check isHungry() {this.food < 5} periodically and if it triggers, it looks for something that provides food and picks one of the ways. |
vogonistic: yes, maybe i could do an event hungry and then use |
Oh I guess there is no need for an ensure, or maybe just an alias : |
It's better to keep the number of these links (if,repeat,when) small and to use them for many different things I think. |
Examples :
|
It would be really nice to be able to know what is the latest 'noun' use in the commands in order to be able to do this kind of thing :
|
"whoa, meta programming!" -> didn't thought of it that way before. |
Lot of things done to make this happen. |
It would be nice to be able to do this kind of thing :
when <event> do <task>
repeat <task> until <condition>
if <condition> do <task>
The syntax of these things might change, I'm not sure what would be really useful.
It would be useful to add examples, to know what is really useful.
The text was updated successfully, but these errors were encountered: