fix: find existing message before first update
This commit is contained in:
parent
6bdfb65911
commit
e3ad2224da
1 changed files with 2 additions and 2 deletions
|
|
@ -32,10 +32,10 @@ func NewStatusMonitor(s *discordgo.Session, cfg *Config) *StatusMonitor {
|
|||
}
|
||||
|
||||
func (m *StatusMonitor) Start() {
|
||||
m.updateStatus()
|
||||
|
||||
m.findExistingMessage()
|
||||
|
||||
m.updateStatus()
|
||||
|
||||
ticker := time.NewTicker(m.interval)
|
||||
go func() {
|
||||
for range ticker.C {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue