hub.docker.com Open in urlscan Pro
2600:1f18:2148:bc01:2822:9e2a:c82a:af0  Public Scan

URL: https://hub.docker.com/r/nntin/discord-twitter-bot
Submission: On October 07 via api from US — Scanned from DE

Form analysis 1 forms found in the DOM

GET /search

<form class="MuiBox-root css-11qjisw" method="get" action="/search">
  <div class="MuiAutocomplete-root MuiAutocomplete-fullWidth css-bbuuuz">
    <div class="MuiFormControl-root MuiFormControl-marginDense MuiFormControl-fullWidth MuiTextField-root  css-1i6zd2k" data-testid="autocompleteInput">
      <div class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart MuiInputBase-adornedEnd MuiAutocomplete-inputRoot css-f9nv42">
        <div class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-outlined MuiInputAdornment-sizeSmall css-dxf0g1"><span class="notranslate">​</span><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1mp4yus"
            focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="SearchIcon" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M21 21L16.65 16.65M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round"
              stroke-linejoin="round"></path>
          </svg></div><input aria-invalid="false" autocomplete="off" id=":r0:" name="q" placeholder="Search Docker Hub" type="text"
          class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-cq6jjo" aria-autocomplete="list"
          aria-expanded="false" autocapitalize="none" spellcheck="false" role="combobox" value="">
        <div class="MuiInputAdornment-root MuiInputAdornment-positionEnd MuiInputAdornment-outlined MuiInputAdornment-sizeSmall css-17dcas">
          <div class="MuiBox-root css-j3iiqs" id="search-keyboard-shortcuts-hint">ctrl+K</div>
        </div>
        <fieldset aria-hidden="true" class="MuiOutlinedInput-notchedOutline css-16zz1in">
          <legend class="css-gpjuor"><span class="notranslate">​</span></legend>
        </fieldset>
      </div>
    </div>
  </div>
</form>

Text Content

More Docker. Easy Access. New Streamlined Plans. Learn more.
✕

docker
Hub

ctrl+K
Help
System Theme

Sign InSign up
 1. Explore
 2. /

 3. nntin/discord-twitter-bot


NNTIN/DISCORD-TWITTER-BOT

3

By nntin

•Updated almost 3 years ago

Posts Twitter Tweets to Discord through Webhook

Image
Pulls

100K+

OverviewTags


DISCORD-TWITTER-BOT

POSTS TWITTER TWEETS TO DISCORD THROUGH WEBHOOK



PREVIEW



HEROKU DEPLOYMENT



Remember to activate⁠ the app. View the logs here.⁠
Use this to initially deploy your discord-twitter-bot.

To further configure the bot get Heroku CLI and run launcher.py. (Warning: This
is not recommended for inexperienced users since a lot of things could go wrong.
Troubleshooting support will not be provided.)

heroku login
heroku create <your heroku app name>
cd <your heroku app name>
git remote add origin https://github.com/NNTin/discord-twitter-bot
git pull origin master
python bot/launcher.py
git add .
git commit -am "updated configuration"
git push heroku


Copy

This will create a data.json and the bot will ignore any set environment
variable.

YT VIDEO TO HEROKU DEPLOYMENT



DOCKER SETUP

(Warning: This is only recommended for experienced users who have some basic
experience with Docker.)

nano .env
docker run --env-file ./.env nntin/discord-twitter-bot


Copy

.env file example

ACCESS_TOKEN=XXX-XXX
ACCESS_TOKEN_SECRET=XXX
CONSUMER_KEY=XXX
CONSUMER_SECRET=XXX
TWITTER_ID=123,456,789
WEBHOOK_URL=https://discordapp.com/api/webhooks/123456789/XXXX-XXXX


Copy

Optional environment variables: INCLUDE_REPLY_TO_USER, INCLUDE_RETWEET,
INCLUDE_USER_REPLY, CUSTOM_MESSAGE, KEYWORDS

NORMAL SETUP

(Warning: This is only recommended for experienced users who have some basic
experience with CLI.)

Get Python >=3.6.0, <3.7.0

git clone https://github.com/NNTin/discord-twitter-bot.git
cd discord-twitter-bot      # ^ download the project and cd into it
python3 -m venv venv        # optional virtual environment, recommended
source venv/bin/activate    # only run if you did venv
python3 bot/launcher.py     # configure the bot, this create a config.json
python3 bot/main.py         # run the bot


Copy

Once you have set everything up you can run main.py directly. (Useful in
combination with systemd, Upstart, PM2, etc.)



Useful links:

 * Twitter API⁠
 * What's a webhook?⁠

CREDITS

Rokxx for providing the dota 2 twitter list⁠.
JacobWolf for providing the twitter lists⁠ for CS:GO, LoL, Overwatch, CoD and
SSMB.


DOCKER PULL COMMAND

docker pull nntin/discord-twitter-bot

Copy

WHY

OverviewWhat is a Container

PRODUCTS

Product Overview

PRODUCT OFFERINGS

Docker DesktopDocker Hub

FEATURES

Container RuntimeDeveloper ToolsDocker AppKubernetes

DEVELOPERS

Getting StartedPlay with DockerCommunityOpen SourceDocumentation

COMPANY

About UsResourcesBlogCustomersPartnersNewsroomEvents and WebinarsCareersContact
UsSystem Status⁠

--------------------------------------------------------------------------------

© 2024 Docker, Inc. All rights reserved. | Terms of Service | Subscription
Service Agreement | Privacy | Legal


Cookies Settings
By clicking “Accept All Cookies”, you agree to the storing of cookies on your
device to enhance site navigation, analyze site usage, and assist in our
marketing efforts.
Cookies Settings Reject All Accept All Cookies



PRIVACY PREFERENCE CENTER

When you visit any website, it may store or retrieve information on your
browser, mostly in the form of cookies. This information might be about you,
your preferences or your device and is mostly used to make the site work as you
expect it to. The information does not usually directly identify you, but it can
give you a more personalized web experience. Because we respect your right to
privacy, you can choose not to allow some types of cookies. Click on the
different category headings to find out more and change our default settings.
However, blocking some types of cookies may impact your experience of the site
and the services we are able to offer.
More information
Allow All


MANAGE CONSENT PREFERENCES

FUNCTIONAL COOKIES

Functional Cookies

These cookies enable the website to provide enhanced functionality and
personalisation. They may be set by us or by third party providers whose
services we have added to our pages. If you do not allow these cookies then some
or all of these services may not function properly.

STRICTLY NECESSARY COOKIES

Always Active

These cookies are necessary for the website to function and cannot be switched
off in our systems. They are usually only set in response to actions made by you
which amount to a request for services, such as setting your privacy
preferences, logging in or filling in forms. You can set your browser to block
or alert you about these cookies, but some parts of the site will not then work.
These cookies do not store any personally identifiable information.

PERFORMANCE COOKIES

Performance Cookies

These cookies allow us to count visits and traffic sources so we can measure and
improve the performance of our site. They help us to know which pages are the
most and least popular and see how visitors move around the site. All
information these cookies collect is aggregated and therefore anonymous. If you
do not allow these cookies we will not know when you have visited our site, and
will not be able to monitor its performance.

TARGETING COOKIES

Targeting Cookies

These cookies may be set through our site by our advertising partners. They may
be used by those companies to build a profile of your interests and show you
relevant adverts on other sites. They do not store directly personal
information, but are based on uniquely identifying your browser and internet
device. If you do not allow these cookies, you will experience less targeted
advertising.

Back Button


COOKIE LIST



Search Icon
Filter Icon

Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label

Reject All Confirm My Choices


Back

Documentation
⁠
Forums
⁠
Contact Support
System Status
⁠


Back

 * System Theme
 * Light Theme
 * Dark Theme



Back




Back

Help


System Theme

Docker Suite


Back

Documentation
⁠
Forums
⁠
Contact Support
System Status
⁠


Back

 * System Theme
 * Light Theme
 * Dark Theme



Back

Docker Home
New
Explore and manage your Docker experience.

Docker Admin Console
New
Manage users, control access, & set policies.

Docker Scout
New
Secure your supply chain at every level.

Docker Desktop
Local development, simplified.


Docker Build Cloud
New
Speed up your Docker Builds.