- Go to this site: Twitter API.
- Create a bot following the tutorial.
- Copy the Consumer Keys (API Key and Secret) and Authentication Tokens (Access Token and Secret).
- Consumer Keys and Authentication Tokens will now be turn into environment variables.
- Name the environment variables like so with the values:
TWITTER_API_KEY
TWITTER_API_SECRET_KEY
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_TOKEN_SECRET