Detect tombstone events / verify alias
TOmbstone events are used in room upgrades. In that scenario, a room is locked and replaced with a new room. All aliases, and, if possible, members, are transferred, but the room ID changes.
The bot should detect such events and update the room ID accordingly.
Alternatively, or additionally, it could look up the room alias before doing any work, and check to what room ID it resolves. But this would require all rooms to have an alias, which is not required technically.