Discord Twitter Bot

by patricelynde

GitHub Readme.md

Welcome to Discord twitter bot 👋

Discord bot that allows you to follow twitter users, then sends any tweets to a specific Discord channel.

Deploy

Installing dependencies

npm i

Configuration

  • replace {{POSTGREUSERNAME}} by your postgresql username in the schema.psql file
  • run the schema.psql file to create the tables in your postgresql database

Create a .env file (or as environment variables) at the root of the repository with those keys from the Twitter API, the discord API and the POSTGRESQL url:

CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN_KEY=
ACCESS_TOKEN_SECRET=
DISCORD_TOKEN=
DATABASE_URL=

Usage

npm run start

Once the bot is up and running, here is the discord commands:

!list // List followed users
!follow username // Adds a user to the list
!remove username // Removes a user from the list

Dependencies

"dependencies": {
    "discord.io": "github:izy521/discord.io",
    "dotenv": "^6.1.0",
    "pg": "^7.10.0",
    "twit": "^2.2.11"
}

Author

👤 Patrice Lynde