Add switch for enable/disable room

This commit is contained in:
Kevin Kandlbinder 2022-09-05 15:41:04 +02:00
parent ddefe682fa
commit d89a85dfb4
17 changed files with 554 additions and 8 deletions

View file

@ -29,6 +29,9 @@ type RoomConfig struct {
// Active tells if the bot is active in this room (Set to false on leave/kick/ban)
Active bool `yaml:"active" bson:"active"`
// Deactivate can be set by an admin to disable the bot for a room
Deactivate bool `yaml:"deactivate" bson:"deactivate"`
// Name is fetched regularly from the room state
Name string `yaml:"name" bson:"name"`