🍪 We use cookies to provide necessary functionality and an improved experience.
Read our Cookie Policy.
tweet 4.0.2
an Abbot package for Slack by Serious Business
A Twitter skill for Abbot
About Abbot
Abbot is a programmable bot that turns your team chat into a shared command center. We handle all the boilerplate of building and running these conmmands so that you can focus on making tools that help you ship faster.
We built Abbot because we saw the power of this style of work (called ChatOps), when we worked at GitHub. ChatOps made it possible for GitHub to work productively without meetings, while globally distributed. We think it's a pretty great way to work, so we made it easy to use in Slack, Discord, and Microsoft Teams.
Tweet, retweet, like, and follow all from chat with the tweet skill!
The tweet skill makes it easy to manage a brand or team twitter account from Chat. Use Abbot's built-in access controls to limit who can tweet from the twitter account. This allows a team to manage a twitter account without members having access to the credentials for the Twitter account.
Authentication
The tweet skill acts as a Twitter client for a single Twitter account per chat room. To authenticate that account, start with:
@abbot tweet auth - This will initiate the process and return an authorization URL.
Visit the authorization URL in your browser and authorize Abbot to tweet on your behalf. After authorizing the account, the browser will show you a 7-digit PIN. You'll use that PIN in the next step
@abbot tweet auth {pin} - Replace with the PIN from the previous step. This completes the authorization flow. Now you can tweet from the chat room.
Try it!
Once you have authentication set up, tweet away!
@abbot tweet I just set up the tweet skill in Abbot and can tweet from chat!
Abbot will respond with a link to the tweet.
Usage
@abbot tweet {the text of your tweet} -- sends a tweet
@abbot tweet length {the text of your tweet} -- returns the number of characters in your text
@abbot tweet RT {a link to a tweet to retweet} -- retweets a tweet
@abbot tweet reply {tweet link} {text of reply} -- replies to a tweet
@abbot tweet follow {username} -- follows an account
@abbot tweet unfollow {username} -- unfollows an account
@abbot tweet like {link to tweet} -- likes a tweet (can also use FAV or FAVE)
Authentication
@abbot tweet auth - to authenticate the Twitter user this skill will manage in the current room.
@abbot tweet auth {pin} - to complete the authentication process. The pin is supplied by Twitter after you authenticate to Twitter in the browser.
@abbot tweet auth user - to find out which Twitter account the current room is authorized to manage.
Code
Version History
Version
Created
Author
Release Notes
Installs
4.0.2
10/14/2021
haacked
Fix the usage text.
0
4.0.1
10/14/2021
haacked
Updated the usage text to reflect the new approach
0
4.0.0
9/22/2021
haacked
This release changes the key we use to store the Twitter token. Previously, we used the room.name. However, that is not stable if the room name changes. This release uses the room.cache_key property. This property attempts to retrieve the room id. If it doesn't exist (on some platforms we don't get one, looking at you MS Teams), it uses the room name.
0
3.1.2
9/18/2021
haacked
Makes the skill more resilient to upcoming potential breaking changes in the Python skill runner.
1
3.1.1
9/18/2021
haacked
When trying to include a twitter username that just happens to match a Slack username, Slack replaces the mention with its own mention syntax. This release catches that situation and prevents the tweet from going out. It provides an escape mechanism to mention accounts. Just use a double @. For example, Hello @@haacked will be tweeted as Hello @haacked.
0
3.1.0
7/26/2021
haacked
Add support for retrieving the current Twitter user that's authorized for a room.
0
3.0.1
7/26/2021
haacked
Format the auth link nicely
0
3.0.0
7/26/2021
haacked
The skill no longer needs Twitter developer keys. Instead, run @abbot tweet auth to run through the authentication process with the account you want to manage.
0
2.1.2
7/23/2021
haacked
Only pass the endpoint portion of the URL to the Abbot Twitter Client
0
1.1.2
7/23/2021
haacked
No longer requires developer keys. Only a Twitter consumer key and consumer secret.
0
1.1.1
4/20/2021
Paul
Added the ability to reply!
Reply to tweets with:
@abbot tweet reply tweet linktext of your reply
0
1.0.1
4/20/2021
Paul
Update usage text to make the package listing look nicer.
0
1.0.0
4/20/2021
Paul
First release!
0
Sign in to add this to Slack
You need an account to install this package with Abbot. Signing in with Slack will create an account if you don't have one already.
Not using Slack? No worries! Abbot works in Slack and Discord.