/sts-twitter-bot

Twitter bot for the Steam Translation Server

Primary LanguageJavaOtherNOASSERTION

STS Twitter Bot

This project is a Twitter bot that posts the list of recent language file changes from the Steam Translation Server.

Setup

In order to setup the application, please follow these instructions:

  1. Copy the application 'jar' file and the 'lib' directory in a directory

  2. Create a file called config.xml in the directory where the application should write its configuration (see the Configuration section for more information about the content of this file). When running the application, you must pass the path to this directory in a system property called 'sts.twitter.config.dir'.

  3. Run the application with the twitter:authenticate command line parameter to setup your Twitter account with the application.

    java -jar twitter-bot-1.0.4.jar -Dsts.twitter.config.dir=/home/sts/config twitter:authenticate
  4. (Optionally) Run the application with the twitter:test command line parameter to check that the application can interact with your Twitter account.

    java -jar twitter-bot-1.0.4.jar -Dsts.twitter.config.dir=/home/sts/config twitter:test
  5. You're done! Now you can run the application to check for new updates on STS.

    java -jar twitter-bot-1.0.4.jar -Dsts.twitter.config.dir=/home/sts/config

Configuration

The application uses a configuration file called config.xml that has the following structure:

<configuration>
   <accessToken>loremipsum</accessToken>
   <accessSecret>loremipsum</accessSecret>
   <consumerToken>loremipsum</consumerToken>
   <consumerSecret>loremipsum</consumerSecret>
   <dryRun>[true|false]</dryRun>
</configuration>

Here is a short documentation:

  • accessToken / accessSecret : The access token & secret for the Twitter account from which updates are posted.
  • consumerToken / consumerSecret : The API Key & Secret for the Twitter app. These can be found in your Twitter application settings, over at https://apps.twitter.com/
  • dryRun : No tweets will be posted, even if new changes from STS are detected.

Release

To release a new version of this project, simply run the following maven command:

mvn release:prepare release:perform

This will change the project version, commit the changes, tag the release and set the version to the next SNAPSHOT version.

License

This project is released under the MIT License and uses work from the following projects:

For more information, please refer to the LICENSE.txt file.