mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-07-19 09:27:17 +02:00
Add switch for enable/disable room
This commit is contained in:
parent
ddefe682fa
commit
d89a85dfb4
17 changed files with 554 additions and 8 deletions
|
@ -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"`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue