Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chouffe/twitter-bot

Tweets tweets at the provided times. Easy to use, build and deploy
https://github.com/chouffe/twitter-bot

Last synced: about 8 hours ago
JSON representation

Tweets tweets at the provided times. Easy to use, build and deploy

Awesome Lists containing this project

README

        

# Twitter Bot in Clojure

Tweets the provided tweets at the provided times. Easy to use, build and deploy.

## How to build it?

Install boot and then run
> boot build

## How to add my twitter credentials to tweet on my behalf?
Make a file resources/credentials.edn based on the sample resources/credentials.sample.edn

## How to add tweets?
Open the file resources/tweets.edn and add your tweets
```
[{:status "Hello World 1", :type :text, :tweet-at "2015-03-10T16:42:07.766Z", :tweeted? true}
{:status "Hello World media", :type :image, :tweet-at "2015-03-10T16:42:07.766Z", :tweeted? true, :image "twitter-logo.png"}
{:status "Test hashtag #test", :type :text, :tweet-at "2015-03-11T12:00:07.766Z", :tweeted? false}
{:status "Hello World 2", :type :text, :tweet-at "2016-03-10T16:42:07.766Z", :tweeted? false}
{:status "Hello World 3", :type :text, :tweet-at "2017-03-10T16:42:07.766Z", :tweeted? false}]
```

## How to change the timezone I want to tweet at?

Open the file core.clj and change the time-zone-ids
By default, the server-time-zon is configured to be in the "US/Los_Angleles"
The time-zone to tweet at is "Europe/Paris"