master updates #41

Manually merged
alex_orid merged 177 commits from master into github-master 2021-05-13 21:11:10 +00:00
Showing only changes of commit 801b0171e1 - Show all commits

View File

@ -30,6 +30,12 @@ class Twitch_Pubsub():
uuid = self.pubsub.listen_whispers(user_id, self.callback_whisper)
input('press ENTER to close...')
self.stop(uuid)
def stop(self, uuid):
self.pubsub.unlisten(uuid)
self.pubsub.stop()
def callback_whisper(self, uuid: UUID, data: dict) -> None:
print('got callback for UUID ' + str(uuid))
pprint(data)