Thanks for sharing this script! It would be cool if it supported end-to-end-encrypted rooms too. Do you think you could add support?