Code and tools for FPAdventuresBot on Twitter.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
tools
.gitignore
LICENSE
README.md
Util.pm
config.pl
main.pl
png-test.pl

README.md

FPAdventuresBot

Twitter bot for posting screenshots.

Overview

This repository contains the source code for the Twitter bot @FPAdventuresBot. The bot posts a random screenshot from first-person adventure games, once every 6 hours.

In addition to the code for the bot, there is a tools/ subfolder. Within tools/ are any custom tools I've written to extract data from specific games.

Usage

main.pl is the master script. It reads in config.pl for API info to connect to Twitter, and selects a screenshot at random from the data/ subfolder. It will make a single post, if enough time has passed since the last status update.

Of course you shouldn't run it manually. Edit your crontab file and add a line like the following:

0 4,10,16,22 * * * cd /home/userid/FPAdventuresBot && ./main.pl >/dev/null 2>&1

This line will kick the bot off at 4 AM, 10 AM, 4 PM and 10 PM each day.