Skip to content

dogfootruler-kr/DiscordTwitterBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 on this channel
!follow username // Adds a user to follow on this channel
!remove username // Removes a user from this channel

Dependencies

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

Author

👤 Patrice Lynde

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published