signalbot icon indicating copy to clipboard operation
signalbot copied to clipboard

provide bot.start() without run_forever()

Open toppk opened this issue 1 year ago • 1 comments

I have other things I do in the main task, and I rather not create another task just for the bot. Is there anyway to have a way to run_forever kwargs that I can skip that command?

For example, in signalbot/bot.py

class SignalBot:
    ...

    def start(run_forever=True):
         ...
         if run_fovever:
             self._event_loop.run_forever()

toppk avatar Oct 16 '23 06:10 toppk

Hi! That's a good point. I might introduce an alternative method instead for this use case instead of adding an argument. I may refactor the bot API a bit and then take this into account.

filipre avatar May 29 '24 20:05 filipre