Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.
/ twitter-dm-memo Public archive

📨 Forward the message you sent to yourself in Twitter Direct Message to Discord.

License

Notifications You must be signed in to change notification settings

tomacheese/twitter-dm-memo

Repository files navigation

twitter-dm-memo

Forward the message you sent to yourself in Twitter Direct Message to Discord.

Installation

Works in Node.js or Docker (Compose) environment.

Docker (Recommended)

If you want to use Docker, write the following in docker-compose.yml:

version: '3.8'

services:
  app:
    image: ghcr.io/tomacheese/twitter-dm-memo:latest
    volumes:
      - type: bind
        source: ./data
        target: /data/
    init: true
    restart: always

After that, you can start it with docker-compose up -d after creating a configuration file with reference to Configuration section.

Node.js

If you are running in a Node.js environment, Node.js v18 is recommended.

Download and extract twitter-dm-memo_vX.Y.Z.zip from the release page in the latest release.
After that, you can start it with node index.js after creating a configuration file with reference to Configuration section.

Configuration

The configuration file data/config.json is used by default.
If the environment variable CONFIG_FILE is set, the specified value is taken as the path to the configuration file.

See here for the JSON Schema of the configuration file: schema/Configuration.json

{
  "$schema": "https://raw.githubusercontent.com/tomacheese/twitter-dm-memo/master/schema/Configuration.json"
}

License

The license for this project is MIT License.