github.com/sharovik/devbot@v1.0.1-0.20240308094637-4a0387c40516/internal/dto/event/defined_event.go (about) 1 package event 2 3 import "github.com/sharovik/devbot/internal/dto" 4 5 // DefinedEventInterface the interface for events 6 type DefinedEventInterface interface { 7 //Help returns the help message string 8 Help() string 9 10 Alias() string 11 12 //Execute The main execution method, which will run the actual functionality for the event 13 Execute(message dto.BaseChatMessage) (dto.BaseChatMessage, error) 14 15 //Install The installation method, which will executes the installation parts of the event 16 Install() error 17 18 //Update The update method, which will update the application to use new version of this event 19 Update() error 20 }