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.
- Host: GitHub
- URL: https://github.com/greg-kennedy/fpadventuresbot
- Owner: greg-kennedy
- License: unlicense
- Created: 2018-05-05T15:47:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-05T14:09:52.000Z (almost 4 years ago)
- Last Synced: 2025-02-05T16:47:48.787Z (8 months ago)
- Topics: adventure-game, file-format, perl, reverse-engineering, twitter, twitter-bot
- Language: Perl
- Homepage: https://twitter.com/FPAdventuresBot
- Size: 34.2 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FPAdventuresBot
_Greg Kennedy 2018-2021_Twitter bot for posting screenshots.

## 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.