CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Improved targets #75

Closed Innectic closed 7 years ago

Innectic commented 7 years ago

We've always had basic targets like %ARGS%, but it would be super cool to expand upon this using "angularish" filters. Example: convert the args to upper using: %ARGS | upper%

2Cubed commented 7 years ago

We should also add defaults to %ARGN% targets!

!command add eat I'm eating a %ARG1=potato%!

!eat carrot
I'm eating a carrot!

!eat
I'm eating a potato!
Innectic commented 7 years ago

Sounds good to me!

2Cubed commented 7 years ago

The entire target system should be generalized, so that defaults, modifiers, etc. work on non-%ARG% targets. (%USER|upper%, etc.)

2Cubed commented 7 years ago

Success! :tada: