diff --git a/plugin.json b/plugin.json index 1ec3808..b1468dd 100755 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "id": "com.github.scottleedavis.mattermost-plugin-remind", - "name": "Remind Bot Plugin", + "name": "Remind Bot", "description": "Sets Reminders for users and channels", "version": "0.4.0", "server": { diff --git a/server/activate.go b/server/activate.go index 944f651..172f511 100755 --- a/server/activate.go +++ b/server/activate.go @@ -53,27 +53,17 @@ func (p *Plugin) OnActivate() error { } } - p.activated = true + p.URL = fmt.Sprintf("%s", *p.ServerConfig.ServiceSettings.SiteURL) + if err := p.TranslationsPreInit(); err != nil { + return errors.Wrap(err, "failed to initialize translations") + } p.Run() return nil } func (p *Plugin) OnDeactivate() error { - p.Stop() - p.activated = false - - return nil -} - -func (p *Plugin) OnConfigurationChange() error { - if p.activated { - p.URL = fmt.Sprintf("%s", *p.ServerConfig.ServiceSettings.SiteURL) - if err := p.TranslationsPreInit(); err != nil { - return errors.Wrap(err, "failed to initialize translations") - } - } return nil } diff --git a/server/plugin.go b/server/plugin.go index a8a6644..37d991b 100755 --- a/server/plugin.go +++ b/server/plugin.go @@ -20,8 +20,6 @@ type Plugin struct { remindUserId string - activated bool - running bool emptyTime time.Time