Twitter Joker Bot
This is a Twitter Bot that Tweets Jokes. By default it only set to tweet coding jokes, but you can change it to anything.
To do that, you need to make changes to the jokes.go file. Refer JokeAPI Documentation
Sign up for a Twitter Developer Account and Create an App.
Make sure to setup Elevated Access to and enable Read and Write permissions.
Required External Packages:
To Install External Packages, run:
go get -u <Package Name>
go get -u github.com/dghubble/go-twitter/twitter
- Set your Twitter API Keys as Environment Variables.
export CONKEY=<Your Consumer Key> export CONSEC=<Your Consumer Secret Key> export ACTO=<Your Access Key> export ACTOSEC=<Your Access Secret Key>
- To run the code, run:
go run .
Love to have your Contribution!