jordanmaurice / elonmuskbot

Python script to share tweets from Tesla and Elon Musk to a Microsoft Teams Channel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elonmuskbot

This is a basic Python script used to repost tweets from Elon Musk and the Tesla Twitter account.

Example image of what it appears as:

Installation:

  1. Clone this repository to your computer
  2. Install required modules from requirements.txt
  3. Complete Setup below

The script can be easily updated to add additional twitter handles.

Setup Instructions:

First, you'll need to create a webhook for your Microsoft Teams channel:

  1. In Microsoft Teams, choose More options (⋯) next to the channel name and then choose Connectors.
  2. Scroll through the list of Connectors to Incoming Webhook, and choose Add.
  3. Enter a name for the webhook, upload an image to associate with data from the webhook, and choose Create.
  4. Copy the webhook to the clipboard and save it. You'll need the webhook URL for the teamsUrl variable.
  5. Choose Done.

Once you have the webhook URL, you'll want to set up a twitter account for use with the twitter API.

Follow instructions from Twitter to set up your account for use with the Twitter API.

Once you've done both setup steps, simply update the script with the values from Twitter/Microsoft, and it will automatically start posting tweets from the given screen names.

About

Python script to share tweets from Tesla and Elon Musk to a Microsoft Teams Channel.


Languages

Language:Python 100.0%