Replies: 1 comment 2 replies
-
You can clone the bot. Something like this should work: let bot_clone = bot.clone();
let every_30_seconds = every(30)
.seconds()
.perform(move || check_for_updates(bot_clone.clone())); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to have the bot watch a webpage and alert me if there is something new, as well as respond to commands, but I can't get to compile. I guess I could build another bot with the same token on the other thread on every loop, like here, but isn't there anything better?
Beta Was this translation helpful? Give feedback.
All reactions