StackBot Logo

StackBot

What is StackBot?

StackBot is a small .Net application that tweets popular questions from StackExchange sites according to specified parameters.

StackBot on Launchpad

Downloads:
How to use:
  1. Build the project and run it.
  2. Follow the prompts to authorize the application to post status updates to a Twitter account.
  3. The application will create a file config.xml and quit.
  4. Customize config.xml (including setting the desired site)
  5. Start StackBot again. It will now run, posting questions as it finds them.
  6. To stop the application, push a key.

Configuration settings:

twitter_access_token This is set when StackBot connects to Twitter for the first time and authorizes itself to post to the specified Twitter account.
This value should not be changed.
twitter_access_token_secret This is also set when StackBot connects to Twitter for the first time. It is used in conjunction with 'twitter_access_token'.
This value should not be changed.
desired_site This setting indicates the StackExchange site that you want to retrieve questions from. This value can be part of the name of the site (as returned by StackAuth) or part of the URL.
format_string This value tells StackBot how to format the tweets. The values {title}, {link}, and {tag} will be replaced with the question title, shortened URL to the question, and a tag from the question respectively.
q_pagesize This setting indicates to StackBot the number of questions to retrieve from the API at a time. Smaller numbers can be used on sites that have lower traffic or if the polling interval is set to a high value.
The valid range for this setting is 1-100.
poll_interval This setting indicates the minimum time (in seconds) that must elapse between each API call. (Note that this does not necessarily indicate the time between tweets. There will always be at least 30 seconds between tweets.)
This value should not be set below 60.
min_post_score This setting indicates the minimum internal score that a post must match or exceed in order to be tweeted. (Note that values equal to or lower than 10 will post all questions.)
The range for this setting is 1-100.

Copyright 2011 - Nathan Osman

Valid XHTML 1.0 Strict Valid CSS!