Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chouffe/twitter-bot
- Owner: Chouffe
- Created: 2015-03-11T12:09:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T12:16:28.000Z (over 9 years ago)
- Last Synced: 2023-03-29T05:35:09.413Z (over 1 year ago)
- Language: Clojure
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"