DEV Community

loading...

Trivia Twitter Bot

virenb profile image Viren B ・1 min read

My Workflow

My GitHub Action starts my Node project, which installs the packages, and tweets out a trivia question. Five hours later, it tweets out the answer. The uses included in this action are

actions/checkout@v2
actions/setup-node@v1
allenevans/set-env@v1.0.0 (Sets environment variables)

Although this is geared for my trivia bot project, the yaml file can be used for any other Node + Twitter API project as it plugs in the API key and other tokens.

Submission Category:

Wacky Wildcards, Phone Friendly

Yaml File or Link to Code

https://github.com/virenb/fbot/blob/master/.github/workflows/tweetbot.yml

Additional Resources / Info

My Project: https://github.com/virenb/fbot

Discussion

pic
Editor guide