X & SB

An X (Twitter) integration for Streamer.bot. Create and delete tweets, preview them with their price and automate things like going live on Twitch!

  • Create tweets directly from Streamer.bot actions, with pictures, a GIF or a video, alt texts, links, mentions and hashtags
  • Write your tweets in the Post Creator, an X-like editor with a live preview that also shows what each tweet costs
  • Reply to your latest tweet to keep a thread going
  • Automate your livestreams: post a live announcement when you go online, so your followers know you are live... and optionally delete the announcement again once you go offline.
X & Streamer.bot integration preview
X & SB Post Creator with a live X preview and the price of the tweet
X & SB Streamer.bot utility preview

Quick Access

Action Import String

Import the actions into Streamer.bot.
Loading...

Setup Guide

1

Copy the Action Import String

Copy the Action Import text from Quick Access.

2

Import the actions into Streamer.bot

In Streamer.bot click Import in the top menu. Paste the text into the Import String field. Click Import at the bottom.

NoteRequires TawmaeUI.dll 1.9.1 or newer. Get it at tawmae.xyz/dll if you don't have it yet.
3

Visit the X developer console.

Sign in to the X developer console at https://console.x.com/.

On the left sidebar, click Apps, then click the blue Create app button.

4

Create your app.

For the Application Name enter any unique name you like. Leave the Environment as Development and then hit Create New Client Application. You can ignore the popup with the client credentials for now and click it away.

5

Set up the User authentication settings.

Click on your newly created app and click on Set up for the User authentication settings.

6

Authentication settings

For App permissions, select Read and write

For Type of App, select Web App, Automated App or Bot

And for the App Info, we can enter anything for the Callback URI / Redirect URL, so just enter http://localhost/, same for the Website URL, where we use https://twitch.tv/

Then hit Save at the bottom. You can ignore the client credentials that pop up.

7

Keys and tokens

Now we (re)generate both our Consumer Key as well as Access Token so we generate and reveal their Secrets. Do that for both and save the keys and secrets somewhere, as we will need them for the next step. It's 4 values in total: the Consumer Key, Consumer Secret, Access Token, and Access Token Secret.

8

Add Credits

The very last unfortunate step we have to complete is charging credits. Since February 2026, Elon Musk decided he needs a little more money and therefore made all apps pay-to-use. So we need to add credits. A tweet costs $0.015, a tweet with a link $0.20 (X raised that in April 2026). Pictures and videos don't cost extra, an alt text costs $0.005.

9

Save the keys in Streamer.bot

Back in Streamer.bot, go to action [X & SB] [#] - Settings, rightclick the Test trigger and select Test Trigger to open the Settings UI. Fill in the 4 keys from the X developer console and hit Save. Then click Check under Check Login to see if they work.

NoteIf the TawmaeUI.dll is missing, you'll be asked to auto-download. That popup window may appear behind the Streamer.bot window, so make sure to check if nothing appears.
10

Write your first tweet

Open the Post Creator tab and click Open. Write your tweet and check the preview and the price, then copy the text at the bottom into the xText Set Argument of [X & SB] 1 - Create Tweet.

11

Done!

And you are done! If you want to give it a test, simply rightclick the Test trigger of the [X & SB] 1 - Create Tweet action.

Settings UI

General

The keys of your X app and what your tweets cost so far.

  • Consumer Key, Consumer Key Secret The keys of your app on console.x.com, under Keys and tokens. They're stored encrypted on your PC, never in a Streamer.bot global.
  • Access Token, Access Token Secret Generate them after you set the app to Read and write, a token from before that can only read.
  • Check Login Checks the keys with X and loads your name, picture and plan for the Post Creator. X bills this lookup as a user read, $0.01.
  • Reset Login Removes the keys and your account from this PC, so you can connect another app or account.
  • Spent So Far What your tweets and deletes cost, worked out from X's price list. Your real balance is on console.x.com.

Post Creator

Write your tweets with a live preview that looks like X and see what they cost, then copy the text into the Create Tweet action.

  • Post Creator Text, pictures, a GIF or a video, alt texts and link cards, previewed the way X shows them, with the character count and the price of the tweet. Paste brings a text you already have back in to edit it.
  • Text Format A short reference for writing the text by hand. It's also below.
  • Prices What X bills per tweet, per tweet with a link and per alt text.

Post Formats

Linebreaks

Line breaks are created with two pipe symbols: ||. An empty line is || ||.
Example
Hello,||my name is tawmae.

Result:
Hello,
my name is tawmae.

Images

Embed an image from a URL using <imageURL>...</imageURL>.
Embed an image from a filepath using <imagePath>...</imagePath>. Up to 4 per tweet, or one GIF.

Optional alt-text can be added by placing a single pipe | after the URL or file path. X bills $0.005 per alt text.
Example
<imageURL>www.tawmae.xyz/images/CuteCat.png</imageURL>

<imagePath>C:/User/tawmae/Pictures/CuteCat.png|My cat on the desk</imagePath>

Videos

Embed videos using <videoPath>...</videoPath>.

Supported: .mp4 and .mov. One video per tweet, it wins over pictures.
Example
<videoPath>C:/User/tawmae/Videos/CuteCat.mp4</videoPath>

URLs

URLs are clickable automatically and also automatically create their preview (unless you have other images or videos embedded). No special syntax required.

A tweet with a link costs $0.20 instead of $0.015. X also reads names like Streamer.bot as links.
Example
https://tawmae.xyz/

Mentions and hashtags

@usernames, #hashtags and $CASHTAGS work as they are.
Example
Going live with @tawmaeXYZ #Streamerbot

FAQ & Examples

How do I automatically create a tweet when I go live?
The import includes an example action [X & SB] Example Action: Going Live Post (Twitch) for Twitch. Essentially we just added a Twitch -> Stream Online trigger, so we create the post once our channel is live.

But to also include fancy info like our channel title and our current category, we add a Twitch -> Add Target Info subaction prior to that, so we can use variables like %targetChannelTitle% and %game% in our post content.

And that is it! Everytime you go live, it'll post the tweet. If you wish to delete it after you go offline, you can simply add a Twitch -> Stream Offline trigger to the [X & SB] 2 - Delete Latest Tweet action.
How much do I need to charge? What does it cost to create a tweet?
Creating a tweet costs 1 cent, if you don't attach any media (uploading images or videos costs an extra cent) Charging $5 will get you up to 500 tweets.

Changelog

v1.0.1 latest

  • New Added a Post Preview Creator to the Settings UI
  • New Added estimate cost per tweet to the Post Creator
  • Fix Minor bug fixes
  • New Added login checker to Settings UI

v1.0.0

  • New Release

User Reviews

5.0 (2 reviews)

Brilliant add-on :). I expanded it a bit, and thanks to your work, I can now post on X and DSC :), with different texts and information—here are the latest Replay files I made :). Great job. Thank you.

Before you post your review

Please make sure this is not a support issue. If you have trouble getting it to work, join my Discord, open a support post and attach your logs.

Join the Discord for support ↗