Send a matrix event when you change state

master
Ryan Rix 8 years ago
parent 630a75348c
commit e2e16850a3

@ -175,6 +175,9 @@ if __name__ == "__main__":
args = parser.parse_args()
if args.room is None:
print("Require --room argument")
# Announce
for room_id in self.room_ids:
self.client.api.send_message(room_id, u"m.message.lightrix", {"pattern": pattern, "from_msg": msg})
sys.exit(1)
if not os.path.exists(args.config_path):
print("Configuration file doesn't exist, please create one")

Loading…
Cancel
Save