Jürgen Pabel
Jürgen Pabel
> Is there a type in your text above? Instead of "any message can only be matched against one command" did you mean to say: "any message can only be...
> [bot_commands.py](https://github.com/8go/matrix-eno-bot/pull/32/files#diff-3f39469e3559fd8199ed4e72e3a2e4c88cc51b8fb2595e99db26f8c18ed97783) line 47 has a typo (wrong class name in comment) Yes - I'll correct that
> Why a separate rooms.yaml file? Now there are 2 config files: rooms.yaml and commands.yaml. The regex parsing in commands.yaml is applied to the message, the regex from rooms.yaml is...
> Yes...and maybe no (only rare corner case): I think in matrix it is possible to send a single message (identified by its ID) to multiple rooms, so that one...
> In the current PR, if there is no matching room, the commands-section will be used from the commands.yaml file. Correct? Yes, the handling logic in Command.process() is now 1....
> I think 1 yaml config file is better, because simple, all visible in a single file, 1 file less, etc, etc. > > What do you think @juergenpabel ?...
Also: any user would have to join their bot to the configured rooms in order to get a working setup. The only "generic" option here would be to provide some...
> One dumb idea for an example would be : room name: archive-room command: add_message_to-archive.sh > > and of course the script `add_message_to-archive.sh` is NOT implemented. After thinking about it...
> With a few examples like this AND some additional comments I hope the reader/user will get the idea of what can be done. Yes - and with the conclusion...
> room name: english-to-french-translation-room command: translate-en2fr.sh That's an excellent room use-case - and also one that can be easily "multiplied": one room for translation to french, another one to german,...