Tweet a strange and whimsical genre idea per day
This is a twitter bot which generates and tweets a new video game genre every day for the purposes of sparking intelligent and interesting conversations and building up a community around discussions of video game genres.
This bot runs entirely within Github Actions!
You can use this repo as an example of setting up a twitter bot on a schedule.
All you need:
- A twitter account
- An idea
- Here's where we generate a game genre.
- Here's a script which tweets a single genre.
- Here's the Github Actions workflow which automatically tweets once a day.
To get set up with your own bot:
- Fork or copy this repo
- Update the
generate()
function in./generator.ts
to generate any kind of tweet you like. - Create a developer account for which ever twitter account you want to interact with.
- Create a project in your developer account. Collect your API Key and Secret
- Generate an Access token & Secret for your project.
- Set your
API_KEY
,API_SECRET
,ACCESS_TOKEN_KEY
, andACCESS_TOKEN_SECRET
as environment variables in the Secrets tab of your repo settings so they are accessible to the main script - Update the "schedule" frequency to tweet as often as you like! This site is helpful for picking your CRON frequency.
- You can test out your workflow on its "Actions" page using a manual trigger.