Discord bot that allows you to follow twitter users, then sends any tweets to a specific Discord channel.
npm i
- 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=
npm run start
Once the bot is up and running, here is the discord commands:
!list // List followed users on this channel
!follow username // Adds a user to follow on this channel
!remove username // Removes a user from this channel
"dependencies": {
"discord.io": "github:izy521/discord.io",
"dotenv": "^6.1.0",
"pg": "^7.10.0",
"twit": "^2.2.11"
}
👤 Patrice Lynde
- Github: @patricelynde