shughes-uk / python-youtubechat

provides a simple client library for the youtube live streaming chat api
53 stars 17 forks source link

How to get author back from the library #11

Closed wvthoog closed 3 years ago

wvthoog commented 3 years ago

Hi,

been struggling with this for days now, couldn't get it to work. What i need is to get the latest 'author' back from the library.

The idea is using this library with a PTZ IP Camera which is streaming to Youtube. Use the "!" command (eg "!right", "!left" etc) to control the camera, which is already working. But what i want to achieve is that when a user enters a valid command a timer starts (5 minutes) when only that user has control. For that (i assume) i need the authors id. Question is, how to get that back from the library.

Any help is appreciated.

wvthoog commented 3 years ago

overlooked "author.display_name". Works now