-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegram /stop
is not working
#122
Labels
env/telegram
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
Comments
rodrigo-brito
added
kind/bug
Something isn't working
help wanted
Extra attention is needed
good first issue
Good for newcomers
env/telegram
labels
Mar 29, 2022
rodrigo-brito
changed the title
Telegram stop is not working
Telegram Mar 31, 2022
/stop
is not working
@rodrigo-brito rough guess, but could it be that the func (c *Controller) Start() {
if c.status != StatusRunning {
c.status = StatusRunning
go func() {
ticker := time.NewTicker(c.tickerInterval)
for {
select {
case <-ticker.C:
c.updateOrders()
case <-c.finish:
ticker.Stop()
return
}
}
}()
log.Info("Bot started.")
}
} |
Hi @ngqinzhe, thanks for the suggestion. It can be replaced by this feature: #131 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
env/telegram
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
Telegram's command
/stop
is not working. We define the logic here:ninjabot/order/controller.go
Lines 293 to 300 in 1a3585b
The idea is:
running
status. But it is not working.The text was updated successfully, but these errors were encountered: