8go / matrix-commander

simple but convenient CLI-based Matrix client app for sending and receiving
GNU General Public License v3.0
549 stars 59 forks source link

Listen to single room #167

Open ZwiebelTVDE opened 7 months ago

ZwiebelTVDE commented 7 months ago

Hey there, is there a way to continuously listen to one room only? --listen forever listens to all rooms and --room in combination with --listen forever tells me thats not meant to be used that way.

What would be the way to listen to one specific room?

Thanks in advance 😊

ccgarant commented 6 months ago

+1

I believe this is a cheeky workaround for the time being, where you can grep filter on the room and sender, here "BALNC Pool" and "sender balance_bot" respectively.

matrix-commander --listen forever --room-invites list+join | grep "BALNC Pool" | grep "sender balance_bot" >> pool_updates_240308.log

There should def be functionality to make a call like:

matrix-commander --listen forever --room-invites --room '!<my_room>:matrix.org' --sender '<sender_name_of_interest>'

shahabes commented 4 months ago

Hi my friends. I'm developing a python bot. I need to use nio as the commander use it. I wanna use some implementations in the matrix commander. What should I do? e.g. for listening to a single room. I logged in and I have an active client. What should I do next? I did sync but I faced some errors.