Skip to content

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)

Notifications You must be signed in to change notification settings

wikimedia/labs-tools-Commons-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published