Skip to content

アドベントカレンダーの新着記事を twitter へポストする

License

Notifications You must be signed in to change notification settings

osm-tc159/advent-notifier-for-twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-notifier-for-twitter

アドベントカレンダーの新着記事を twitter へポストします。これはadvent-notifierとして稼働しています。

Requirements

  • FindBin
  • JSON
  • YAML::Tiny
  • LWP::UserAgent
  • Net::Twitter::Lite::WithAPIv1_1

Setup

Installing perl modules

% cpan FindBin JSON YAML::Tiny LWP::UserAgent Net::Twitter::Lite::WithAPIv1_1

Edit config.yml

% cat <<EOF > config.yml
TWITTER_CONSUMER_KEY:           'your_consumer_key'
TWITTER_CONSUMER_SECRET:        'your_consumer_secret'
TWITTER_ACCESS_TOKEN:           'your_access_token'
TWITTER_ACCESS_TOKEN_SECRET:    'your_access_token_secret'
EOF

Edit crontab

実行する時間は適宜調整してください。

+*/10 * * * *  sh -c "cd ~/advent-notifier-for-twitter && ./run.sh"

License

MIT

Author

sasairc (https://github.com/sasairc)

About

アドベントカレンダーの新着記事を twitter へポストする

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published