Background
add_text functions are re-used within scripts but they should not be imported but the functionality has to be provided by the framework api, not by the scripts. Bot scripts should derive from BaseBot (sub)class(es).
What to do
- move add_text function to textlib. This should only contain text functionality without getting and putting the text. The interface should be like
def add_text(text: str, new_text: str, *, <other keyword options>) -> str:
- deprecate get_text, put_text and add_text in add_text.py script
- Reimplement add_text.py script using BaseBot (sub)class(es)
- Update tests
- Update commonscat.py script