![]() ![]() ![]() ![]() Now that we have made our folder and changed into it, we can proceed with writing our script. If you’re new to Python you might want to consider checking out our Python getting started guide.įirst let’s make a folder that we will keep our script in, run the following command to create our directory and move into it. For our purposes, we will be utilizing Python, and it’s versatile and fast enough for our basic needs. Now that we have grabbed our Twitch OAuth token we can now proceed with writing our script. Press the “ Connect with Twitch” button to continue.ġ. Once you have the user you want ready, go to Twitch apps tmi. Of course, this means you will need to have a Twitch account ready that you want to use as your bot for your channel. Before we get to programming our Twitch moderator bot, we will first need to grab the OAuth key from Twitch. ![]() Equipment Listīelow are all the bits and pieces that you will need to do this Twitch bot tutorial. This is a great Pi project that has a ton of uses if you are a Twitch streamer, big or small. While this is a rather basic moderator bot, it is easily extensible with a bit of Python knowledge. You can check out more about Twitch over at their website. Chat is displayed alongside the video which is a key feature for interacting with the streamers. If you’re wondering what Twitch is, it’s a video streaming service which is predominantly aimed at gaming. You can also use this to timeout a user or post a message to the chat when a specific phrase is used. If any match the pattern it will automatically ban them from the server. Once connected the bot will continually receive all messages and scan for any that matches our ban pattern. The basics we will be explaining and showing you how to write is a simple bot that will connect into Twitch’s IRC (Internet Relay Chat) chat. The bot we will be showing you how to write is rather simple in nature but can be adapted to being quite a powerful and versatile bot. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |