Giter Site home page Giter Site logo

twitter-notif's Introduction

Twitter Notif

Connect your Twitter account to Discord easily...

Installation

Way 1 :

docker pull vortezz/twitternotif:latest

Create API Keys on Twitter Developer Portal and a Discord Webhook.
Then, fill the command below with your configuration.

docker run --env CONSUMER_KEY="Twitter Consumer Key" \
    --env CONSUMER_SECRET="Twitter Consumer Secret" \
    --env ACCESS_TOKEN_KEY="Twitter Access Token Key" \
    --env ACCESS_TOKEN_SECRET="Twitter Access Token Secret" \
    --env WEBHOOK="Discord Webhook URL" \
    --env TWITTER_USERNAME="Username" \
    --env MESSAGE="Custom message using tags below" \
    vortezz/twitternotif:latest

Way 2 :

git pull https://github.com/Vortezz/twitter-notif.git

Create API Keys on Twitter Developer Portal and a Discord Webhook.
Copy the example.env, rename it to .env and fill the file with your configuration.

Then, run the command below.

yarn start

Enjoy!

Parameters

Key What it represents Required
CONSUMER_KEY Twitter Consumer Key Yes
CONSUMER_SECRET Twitter Consumer Secret Yes
ACCESS_TOKEN_KEY Twitter Access Token Key Yes
ACCESS_TOKEN_SECRET Twitter Access Token Secret Yes
WEBHOOK Discord Webhook URL Yes
TWITTER_USERNAME Twitter username Yes
MESSAGE Custom message using tags below No

Tags for custom messages

Key What it represents
{username} Username defined in ENV
{mention} Mention of the username
{link} Link of the tweet
{text} Tweet content
{date} Tweet sent date

Contributing

Want to suggest a new feature or fix a bug?

Feel free to open an issue or create a pull request!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.