Skip to content

Scripts for Streamlabs Chatbot to check twitter for CTT, and give points to whoever tweets the stream.

Notifications You must be signed in to change notification settings

Yaz12321/AnkhbotCTTPoints

Repository files navigation

AnkhbotCTTPoints

Scripts for Streamlabs Chatbot to check twitter for CTT, and give points to whoever tweets the stream.

Instructions:

1- After importing to Chatbot (Check the bot's documentation on how to do this), open the scripts folder for the bot (for Streamlabs Chatbot, you can open the Scripts tab, right click and open folder), then open the folder of this script.

1b- Open EmptyKeys folder, and copy the files into the main folder (where GetCTT.py is). Open keys.txt, and fill in your customer key/secret and access token/secret between the single quotes (see ExampleKeys.txt for how it should look like).

To get customer key/secret and access token/secret:

  a- Login to the apps.twitter.com interface using your Twitter credentials

  b- Create an app 
  
  c- Open the app, and navigate to the 'Keys and Access Tokens' page (That's where consumer key/secter are)

  d- Scroll down and click on the 'Create my access token' button (That's when you get your access token/secret)

2- open Command Prompt, and type "start C:\python27\scripts\pip.exe install twython" (without quotes) to install twython library (to get twitter data). When it is installed, install colorama library: "start C:\python27\scripts\pip.exe install colorama" (to have coloured text). If nothing happened, check that you are using python27, and that the python folder is on C drive. Change the command lines accordingly.

3- On Chatbot, make sure to set your Twitter message and saving settings BEFORE running/enabling the command. The Twitter Monitor relies on these settings and it runs separately.

4- Make sure to follow your bot account to receive whispers asking to provide twitch accounts. (Not sure if this is still necessary! But better safe than sorry)

5- When you start each stream, make sure you send a reset command to empty the list.

6- When script is loaded and enabled, a black window (python.exe) will pop-up. CTT and mentions (if enabled) will appear on that page. Do not close that window, as it runs the script of doing the twitter search. If not interested in getting notified: keep it minimised. Close manually when monitoring CTT is not needed (i.e. script is disabled.) NOTE: if the "Only when live" is enabled, the python.exe window will open automatically only when you are live. If you are not live and it is enabled, you will have to open it manually (click on OPEN TWITTER MONITOR button in the script UI on chatbot).

NOTE: This script is a bit complicated to set up. If you need help, please conact me.

Note: With the new Twitch points system, points cannot be added (yet). However, the script can still be used to monitor twitter. To do so, disable the script, but in its setting you can open the "twitter monitor". The command would not work though.

Check out more of my scripts: https://github.com/Yaz12321?tab=repositories

About

Scripts for Streamlabs Chatbot to check twitter for CTT, and give points to whoever tweets the stream.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages