Twitter (Tweet from Streamer.bot)

IMPORTANT

As of February 9th, 2023 Twitter has made access to both v1.1 and v2.0 inaccessible for free. Use of this extension will require a paid tier level of access from Twitter to be able to access their API. As more information is forthcoming this page will be updated to reflect that information.

Tutorial

Twitter Developer Set-up

It looks like Twitter has changed this side of the website, from what I tell you can still use a “Standalone App” as that doesn’t use the Oauth 2.0 endpoints, but projects could cause some difficulty.

Set Up Instructions

The first thing you need to do is to get the key from the twitter API. You can do this by doing the following steps.

You will need elevated access for this to work. You can find out how to do that by clicking scrolling a bit further down.

  1. Go to - x.com
  2. Sign in with Twitter.
  3. Once on the “Developer Portal” you should see on the Left Hand Side “Projects & Apps”
  4. Create yourself an App, you can use Projects or Standalone.
  5. Give your app a name, Id Suggest something like “MySBTwitterApp”
  6. Then you will see a load of tokens, at this point you will need to press “App Settings” (We are going to get new tokens in a minute don’t worry about those)
  7. You will need to set the app to to Oauth 1.0a

Oauth 2.0 uses different endpoints so it will not work.

httpservertwitter

  1. Change Oauth 1.0a Settings to Read and Write
  2. In the Callback Url will need to match as your Websocket is in SB. By default its set as http://127.0.0.1:7474 and you will need to put Website Url as your twitter address, if any other boxes require a url put in that same address. If done it should look like this -

httpservertwitter

  1. When on the Settings Page, you should see “Keys and Tokens” that is where we will get our 4 keys we need.
  2. Under the Consumer Keys Press “Regenerate”, Copy the 2 keys into the relevant parts of the C# Code or in a safe place.
  3. Under the Access Token and Secret Press “Regenerate”, Copy the 2 Keys into the relevant parts of the C# Code or in a safe place.

Now You should have your app Set up and your 4 keys you will need for the C# code.

If you get stuck you can follow the Twitter Support at Twitter Developer Support.

Remember Getting Elevated access is needed however can take a short period of time.

Getting Elevated Access if Needed

When you open up the developer portal with Essential Access you will be greeted with this.
twitterapplyforelevated

You will need to Press Apply and then fill out the Basic Info your username and email should be there by default however there are changeable you will however need to add your name, country your based in and your coding experience. The name can not be changed, I am unaware about the others so please be accurate.

twitterapplyforelevatedpg1

The next section is where you will explain your use for the bot saying something along the lines of.

I am a Streamer on Twitch and I would like to update my Name, Profile Picture and Send a Tweet when I go Live

The Next step is to review all your information and then Agree to the terms on the final page.

Thank you to 4xsample for the help in providing images and explaining the application process

Import Code

TlM0RR+LCAAAAAAABADtXcty40py3TvC/6DoiLu6gx48SeJGzEJk8wGSYosvkIQ1MQGgAAIiSGL4FDkxay+98cK72XnplRcOf45/wPMJziyAAAgCoqRWd1/P9I3glUQAVVlZmSdPJqqq//SP/3Bz82FnrdbucvHhlxv+N/SLhT634K8PH4I/dXMDl9fwzT/h3zc3fwp+wCWX4H1mqSjYNl9izKLAMaLFSYzOsjKjF82SIZUkocSzQVv0oT9urS22v9h6XvyttdANz8L2NqutFX9/Emawdzcba3V7rzB3uruoLImVaHO6Wm795G2+m7iqe3v9sO5tcYy27q0Tza/0BVnOb+kQL6+ay4W5Xa2sxeby2oVazlSTI3ssFL2BWGtz5fph5x9SV2eW5d967s5KKyWQ3LItkMy0UiLQi5VfHh5GLgxtv354uHPN1XK9tDcfO9XBw0NtBWLtl6tZQXx42Ikf2Y8CK3Dyw8N8bS5Xnmt8JJ53LspbW+wf1htr/rFjbT42Nhs/s+EqNHzvWMuF+/SHP3T0zU2//PDQsfYbUC720FwvF+8u0Xu3V1muLNposs3fn0+YcdhY1Gxhpsm44xtzczoUvCOpq5vPe7aV/q498+6zv+/sjPqTNxF6vsFLx/aMeMZcPeiju+Knrs+ZvLfVDuWBNe6w2ojdDnn1kYybPmnMtl2hKZmN3k4Tmo5Zd6TM9r3e0pyrjlbHdqThZNxZmcd1p7JQj/pIWii1jmQKPc/oS5+1cTezz8FcZdszhyWN22vXt/069qUecvoYamOHzdbDk28sqsn2QR7Cok4MXoP2ffgpbgcwDnMAbU/ZltlQXaPuPSr1zhrGdVSqnW6/6m0NHGuXbVnQj1K5nSqV0k6pEo9UyqxeH047lfJKG3tHpS552qjnaZXy3JzLG6Xh7chYmaoNAvrteaZbLpuN2ympOw48KxnCcEp4b21UysvJWPOUem1NdduYdSou9nO7ax/Kj/gdjGkG17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1yhOfez7lelDef1e/ZtD9dqd+zLCeVSjzHyDoQYpElElMq2RIjlwyT53gT/MT4nvX7r1Kpxh/BnUGelXgUHpvPId053f/n/wO/QU2KsXcAAA==

Installation

All the Code is in one bit of C# So all the References need adding in just one place, they reference you will need are.
tweetrefs

Also within the C# Code you will need to add your keys.

You need to make sure each Key Line has @ at the start and then declared as a string by ".

You will need to set up the HTTP Server in Streamerbot.
The Address and Port needs to match the one you did the prior step of setting up.
httpservertwitter

Example Use

Send a Tweet

twittertext

Send a Tweet With Image

tweetimage

Streaming Commands

To automate this it different depending on which version of WS you are using if you are using WS4.9.XX then you can tie the 2 actions to OBS Events > Stream Started and OBS > Events > Stream Stopped for the starting and stopping actions respectfully.
In WS5 you will need to use the event called StreamStateChanged, This is tied to a seperate action, which you will need to create. I called it StreamCheck. Then i did an If statement of

if ("obsEvent.outputActive" Equals "True") do "StreamStarting" then "continue" else do "StreamEnding" then "continue"

streamstartcheck

The Arguments in both sub-actions are exactly the same however you will have a LIVE version and you will have a Normal Version for when you are offline.

Argument Purpose
tweetName This is the name you want to be seen as on Twitter, “:red_circle: LIVE :red_circle:” would be popular for being live
imagePath This is the profile picture you want, most would add a Red Ring around there current profile pic with the word live on it in some fashion, and the normal for offline
bannerPath This will change the banner at the top of your page, and this is the link to the image file.
tweetText This is a Starting only Command, but this is the value you want to tweet out when you go live, the default message will tell people the game you are playing and post your link.

Stream Starting

Stream Ending

tweetonend

If there is any action you don’t want to happen, use the Enable/Disable Option in the Sub Action Context Menu. Disabled Sub-Actions will turn Red/Pink.

Troubleshooting

If you find that you’ve followed all the steps and it still doesn’t work here are a few things to check.

  • You must have Elevated Access for this to work.
  • You must have OAuth 2.0 turned off. (Press on the cog, then Edit under User Authentication Settings) Standalone Apps don’t use Oauth 2.0 so that is better!
  • You have it set to Read and Write
  • The Callback address must be identical to the HTTP server in SB.
  • The Keys in the C# codes are correct and still has the @ and ".
  • The File Paths for images are correct.
  • Make sure the code Compiles.
  • Make sure the HTTP Server is active.

Contributors

6 Likes