ArkaneMoose/BotBot

Variables

Opened this issue · 3 comments

Someone mentioned this at some point. The lack of variables is a little annoying, as state cannot be stored.

This could be a really useful addition in the future, capable of being able to take BotBot to the next level.

Could/should this be implemented? The current syntax might make storing of vars quite complex. It could be done though. And would definitely be worth it.

To be honest, the statelessness of bots kept them simple, in my opinion; with variables, we would need to store each bot's variables in the snapshots in order to reliably recover the state of each bot from each snapshot.

I'm not denying the feasibility of this; I'm just pointing out a potential challenge.

Hm. It would be challenging. I think you'd need a major syntax change if you wanted them, though

This is possible (as you may have noticed :P) with the current BotBot version using the !nick command to store and (sender) to retrieve the information.