PetterKraabol / Twitch-Python

Object-oriented Twitch API for Python developers
https://pypi.org/project/twitch-python
MIT License
214 stars 37 forks source link

Is it possible to create clips with this tool? #23

Closed erik-andersson closed 3 years ago

erik-andersson commented 4 years ago

Hi!

I have managed to get the chat listener to work but would want to be able to create a twitch clip when someone posts "!clip" in the chat. Is there a way to do this? I searched the repository and found some mention of "Clip" and "Clips" but I cant figure out what they do and how to access the feature.

This is the first time I have published an issue on github, I hope asking questions is allowed.

    def handle_message(self, message: twitch.chat.Message) -> None:
        if message.text.startswith("!clip"):
            self.create_clip(message)

    def create_clip(self, message):
        pass