Add parameters to a bot command

Hi!
I’ll try to explain as best as I can what I want to do.

I’ve already created multiple commands on my bot, but I would like to create a command (like !title), but with parameters, sort of like this :
!title <streamtitle> <gamename>

I’m coding with Python, and I’ve already found out how to use the API to change the title/category of the stream, with manually typing the values directly on the code.

I found nothing about giving parameters to a command, so I wonder if this possible.

Thanks, have a great day!

Sure:

on PRIVMSG

If starts with !title

Look for words in the rest of the command. To use for title or gamename

If you are wrapping stream and game in < and > then you can use that to process the string

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.