An open API service indexing awesome lists of open source software.

https://github.com/greg-kennedy/fpadventuresbot

Code and tools for FPAdventuresBot on Twitter.
https://github.com/greg-kennedy/fpadventuresbot

adventure-game file-format perl reverse-engineering twitter twitter-bot

Last synced: 7 months ago
JSON representation

Code and tools for FPAdventuresBot on Twitter.

Awesome Lists containing this project

README

          

# FPAdventuresBot
_Greg Kennedy 2018-2021_

Twitter bot for posting screenshots.

![MYST Book - Myst, 1993](https://repository-images.githubusercontent.com/132262139/b850ed80-d413-11ea-9fd5-6957c9325fa4)

## Overview
This repository contains the source code for the Twitter bot [@FPAdventuresBot](https://twitter.com/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/`](./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.