Pietro Albini
Pietro Albini
Uhm, I'll probably hold off on this, let's see how that GNU/Windows thing goes.
For the implementation, I would like to mimic the `SyntaxError` behavior. After some research, I found you can do that with: ``` python class MyError(Exception): def __init__(self): # Standard exception...
Yeah, forgot to add that.
Subclassing won't work, because components (and bots) have unique, random IDs assigned during initialization. This was made to prevent conflicts between components, but this also kills your use case as...
I thought about it a bit, and I think I found a good API for this: ``` python class MyComponent(botogram.Component): component_name = "test" component_isolated = False ``` That `component_isolated` attribute...
> I like this. I'd assume any non-isolated component could still initialize a memory (not just the bot/main component). That way everything's still handled by the responsible component. Yeah, you...
Sorry for the delayed response! Had a busy week. I'm not fully sure about multiple shared memories for every component. The first example breaks every current code, and the second...
I'll add a new `shared.global_memory` as part of a big refactor of the whole shared memory. I don't think messing around with other components' memories is a good idea, because...
> With the shared.global_memory what will be the default way to handle collisions when components' prepared memories conflict? Prefixing every item with your component's name? If you want to avoid...
The refactor planned in #54 should also allow you to create custom memories.