/Coin-Flip-Twitter

Twitter Bot that flips a coin and tweets the result. mention him on Twitter and you will get a "pile or face" as a response

Primary LanguageTypeScript

Coin Flip Bot

Twitter Bot that flips a coin and tweets the result. mention him on Twitter and follow this format : @CoinFlipBotFR choice number 1 / choice number 2 or by just mentioning it like @CoinFlipBotFR and you will get a pile or face

Requirements

  • Node v16+
  • TypeScript
  • Twitter developer account

Installation

  • You need in the first place to run the following command : npm install
  • Create a .env file with all of your credntials of your twitter developer account :
    TWITTER_API_KEY = xxxxxxxxx
    TWITTER_API_KEY_SECRET = xxxxxxxxxxx
    TWITTER_ACCESS_TOKEN = xxxxxxxx
    TWITTER_ACCESS_TOKEN_SECRET = xxxxxxxx
    TWITTERV2_CLIENT_ACCESS_TOKEN = xxxxxxxxx
    TWITTERV2_CLIENT_ACCESS_TOKEN_SECRET = xxxxxxxxxx
    
  • Run npm run dev and test it out!

Made by Zakichanu