Skip to content

fono09/ttRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

git clone https://github.com/fono09/ttRelay
cd ttRelay
docker-compose run --rm node npm i

Getting Started

  1. Make 'config/default.json' as follows.
{
  "target_acct": "fono (Your screen name in the mastodon instance)",
  "redis_prefix": "hoge (Redis Prefix. anything)",
  "instance_domain": "ma.fono.jp (Your mastodon instance domain)",
  "mastodon_access_token": "1234afaf78191deea2a1b (Your token in mastodon(See below))",
  "consumer_key": "Q4VJIQofa13 (Your Twitter app's Consumer key)",
  "consumer_secret": "Ppc9feafjaq329u492aafa32 (Your Twitter app's Consumer secret)",
  "access_token_key": "1234657-f3I9104JJAKi (Your Twitter app's your access token key)",
  "access_token_secret": "FSAJ912FAaaSnhd (Your Twitter app's your access token secret)",
  "tag": "ttr (Relay tag for toot)"
}

The easiest way to get mastodon token: https://takahashim.github.io/mastodon-access-token/

Create your Twitter app : https://developer.twitter.com/

  1. Run docker-compose up

Testing

Run docker-compose run --rm -e NODE_ENV=development node npm run test

About

Toot Tweet Relay 特定の条件に該当するトゥートをリアルタイムでTwitterにも投げる

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published