GithubHelp home page GithubHelp logo

wikimedia / labs-tools-commons-twitter-bot Goto Github PK

View Code? Open in Web Editor NEW
5.0 14.0 1.0 132 KB

Github mirror of "labs/tools/Commons-twitter-bot" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Shell 2.60% JavaScript 97.40%

labs-tools-commons-twitter-bot's Introduction

WM-Commons-Emoji-Bot

The source code for the WM-Commons-Emoji-Bot

Configuration

  1. Install dependencies:
npm install

npm install --save request-promise
  1. Copy the example .env file:
cp .env.example .env
  1. Get credentials for your bot and complete the .env. Note that TWITTER_SCREEN_NAME is case-sensitive.

Usage

To post a status

npm run status

To reply to posts

npm run reply

Testing

npm test

Contributing

Emoji additions, bug reports, fixes, and new features are welcomed. If you'd like to contribute code, please:

  1. Clone the project

    git clone https://gerrit.wikimedia.org/r/labs/tools/Commons-twitter-bot
    
  2. Start a branch named for your new feature or bug

    1. Contibution by adding emoji-images mapping in the data/images.json file ==The structure of the json==
      "emoji":[
      			"Image_url"
      		]
      
  3. Submit a patch to the gerrit repo

###More info

See the docs/devManual file for more information.

labs-tools-commons-twitter-bot's People

Contributors

rosalieper avatar somechris avatar sunyiming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

Forkers

rosalieper

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.