๐ Limericks from Star Trek Scripts
See it in action: https://twitter.com/TrekLimerickBot
-
Copy the
.envtemplatecp .env.template .env -
Create a Twitter app and note your credentials.
-
Use the credentials from the last step to fill in the following fields in
.env:CONSUMER_KEYCONSUMER_SECRETACCESS_TOKENACCESS_TOKEN_SECRET
- Create a set of parsed Star Trek scripts using tng-parser.
- Place this set of parsed scripts in a new
scripts/directory. - Run
./trek-limerick-bot.js process, and the scripts will be converted and placed intoprocessed/, - Now you can run the
generateandpostcommands, andtrek-limerick-bot.jswill use the processed scripts.
First, install dependencies:
npm install
Local usage:
Usage: trek-limerick-bot [options] [command]
Commands:
process Processes scripts in "scripts/"
generate Generate a limerick
post Post a limerick as a tweet stream
Options:
-h, --help output usage information
Example:
$ ./trek-limerick-bot.js generate
He is protected by a force field...
So someone did sabotage the shield...
I got the com panel...
They have closed the channel.
that proud core of him that would not yield...
-
Build the .zip package:
npm run package -
Upload
./dist/trek-limerick-bot.zipto Lambda -
Setup a CloudWatch Schedule with a
rate(1 hour)activation schedule.