GithubHelp home page GithubHelp logo

brendansiraky / discord-twitter-tracker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

A discord bot that tracks a users retweets for a specific twitter account.

Shell 1.42% TypeScript 87.47% JavaScript 11.11%

discord-twitter-tracker's Introduction

discord-twitter-tracker

A discord bot that tracks a users retweets for a specific twitter account.

Requirements

Node v16.6.0 or higher

Installation

cp .env.example .env
npm install -g typescript ts-node knex
npm install
knex migrate:latest

Instructions

  • Create a Bot through the discord developer portal, give it relevant permissions and invite it to your discord server.

Add to the .env File:

  • The TOKEN from the discord developer portal, for a specific bot.

  • The BEARER_TOKEN from the twitter developer portal.

  • The ROLE_ID which relates to a discord role that the user will receive if they have reteeted within the timeframe.

  • The RETWEET_TIMEFRAME_IN_DAYS which relates to how recently must the user have retweeted something in order to receive the role.

  • All the necessary PG_... credentials.

Running

npm run start

Notes

  • It's assumed that a database already exist to interact with.

discord-twitter-tracker's People

Contributors

brendansiraky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.