GithubHelp home page GithubHelp logo

opemvbs / autohookbase_twitter Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 6.0 292 KB

This is a real-time Twitter autobase bot that uses twitter-autohook.

JavaScript 100.00%
twitter-autohook twitter-bot twitter-autobase autobase direct-message twitter twitter-api twitter-account-activity webhook api

autohookbase_twitter's Introduction

autohookbase_twitter

This is a Twitter bot that utilizes twitterdev/autohook to automatically process Twitter's webhook for you asynchronously. This bot will detect a Direct Message event which will take the message that someone Direct Message'd your Twitter account as an input, and then check it whether or not it contains an image/link or just a message, and will process it to post as your own tweet. You are able to filter to only process messages that contains certain keyword, as an example inside is using /tst/ keyword as a filter. See how it works here.

Requirements

  • Operating System: Linux or Windows

I used Linux solely while developing this bot, so if there's a problem running this bot on Windows, you're on your own. But in theory there shouldn't be any problem anyway.

This bot uses Node.js in order to run the codes. Install the current version of Node.js.

  • Git

To clone the repository.

Make a new Twitter account for your autobase, don't use your personal Twitter account. Create the app for your bot to use here, register your app, and then put your authentication information to the .env file.

You can deploy the bot to Heroku or Glitch so you don't have to host it on your computer. Note: Heroku and Glitch have its own limitations, read more about it yourself.

Dependencies

This javascript program depends on three packages:

$ npm install twitter-autohook

$ npm install request

$ npm install dotenv

Or you can just do this on terminal inside the cloned repository.

$ npm install

Usage

$ node index.js

TODO

  • Put in more features, like put limitations on minimal followers, tweets, or other things other people had to have in order to use your autobase.
  • Put catch error function to catch more errors/anomalies.
  • Other improvements and features that is not in my mind right now.

Updates

  • Updated script to attach the URL of the posted tweet in direct message to users.
  • Updated script to be able to set followers and tweets requirements from user sending message to the bot.
  • Updated script with catch error functions.

autohookbase_twitter's People

Contributors

opemvbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

autohookbase_twitter's Issues

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.