Post the same content as Tweet of a specific Twitter application to Mastodon
253
特定のTwitterアプリから投稿されたツイートをMastodonにも投稿するアプリ
各環境変数に値を設定します。
TWITTER_CONSUMER_KEY: TwitterのConsumer KeyTWITTER_CONSUMER_SECRET: TwitterのConsumer SecretTWITTER_OAUTH_TOKEN: TwitterのAccess TokenTWITTER_OAUTH_TOKEN_SECRET: TwitterのAccess Token SecretMASTODON_URL: 投稿先のMastodonインスタンスのURLMASTODON_ACCESS_TOKEN: MastodonのアクセストークンAPPLICATION_#{n}: 対象のTwitterアプリケーション名(nは1〜10)$ bundle install --path vendor/bundle --deployment
$ cat > .env
TWITTER_CONSUMER_KEY=XXXXXXXX
TWITTER_CONSUMER_SECRET=XXXXXXXX
TWITTER_OAUTH_TOKEN=XXXXXXXX
TWITTER_OAUTH_TOKEN_SECRET=XXXXXXXX
MASTODON_URL=https://pawoo.net
MASTODON_ACCESS_TOKEN=XXXXXXXX
APPLICATION_1=Hatena
APPLICATION_2=Annict
^D
$ ruby main.rb .env
docker run \
-e "TWITTER_CONSUMER_KEY=XXXXXXXX" \
-e "TWITTER_CONSUMER_SECRET=XXXXXXXX" \
-e "TWITTER_OAUTH_TOKEN=XXXXXXXX" \
-e "TWITTER_OAUTH_TOKEN_SECRET=XXXXXXXX" \
-e "MASTODON_URL=https://pawoo.net" \
-e "MASTODON_ACCESS_TOKEN=XXXXXXXX" \
-e "APPLICATION_1=Hatena" \
-e "APPLICATION_2=Annict" \
abcang/sync-mstdn-twi
MIT
Content type
Image
Digest
Size
99.5 MB
Last updated
almost 7 years ago
docker pull abcang/sync-mstdn-twi