Giter Site home page Giter Site logo

t-hawk's Introduction

T-Hawk

Simple Twitter bot that auto likes and retweets based on a configured hashtag. Use for a special event or conference (like a DevFest!) to help increase social engagement and awareness.

This project derives its name from a small drone (UAV) of the same name with no other affiliation or association.

Getting Started

  • Log in and create a Twitter app
    • NOTE: Use the account you wish to like & retweet with (which most likely isn't your personal account)
    • NOTE: You do not need a Callback URL for this app
  • Start a new Google Apps Script project by clicking on "Start Scripting"
  • Copy the code from code.gs into the new file created for you
  • Enter the appropriate Twitter keys you received from your new Twitter app in lines 3-6
  • Enter your hashtag on line 7 (include "-RT" to exclude retweets from being liked and retweeted)
    • example: "#DevFest -RT"
  • From the Apps Script menu, choose "Resources" and then "Libraries"
    • In the "Add a library" field, enter the following project key to load the Twitter library:
      • 11dB74uW9VLpgvy1Ax3eBZ8J7as0ZrGtx4BPw7RKK-JQXyAJHBx98pY-7
    • Click the "Add" button
    • Change the "Identifier" field to Twitter
    • Change the "Version" to 23 (or the most recent)
    • Click "Save"
  • Create a trigger to continually monitor the hashtag
    • From the Apps Script menu, choose "Edit" and then "Current project's triggers"
    • Follow instructions to add a new trigger
    • Setup your trigger to match the following settings:
      • hashtag_twitterBot
      • Time-driven
      • Hour timer
      • Every hour
  • Enjoy!

Contributing

This project is open for contributions, suggestions, and ideas. Feel free to submit a PR and/or create an Issue with bugs, suggestions, and ideas. Stars are always welcome too!

See list of contributors.

License

Project is published under the MIT license.
Feel free to clone and modify repo as you want, but don't forget to add reference to original authors, thanks!

The T-Hawk Project is not endorsed and/or supported by Google, the corporation.

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.