node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

discord-twitter-streaming-bot

discord-twitter-streaming-bot

Create live streams from twitter users to discord channels

Install

npm install --save discord-twitter-streaming-bot

Configure

Create and populate a ~/.config/discord-twitter-streaming-bot/config.json file from the following template

{
    "discord_token" : "xxxx.xxxx.xxxx",
    "twitter" : {
        "consumer_key" : "xxxx",
        "consumer_secret" : "yyyy",
        "token_key" : "zzzz-zzzz",
        "token_secret" : "honeypot"
    },
 
    "streams" : {
        "favorite_user" : {
            "twitter_id" : "123456789",
            "discord_channel_id" : "09876543211234567890"
        },
        "favorite_news" : {
            "twitter_id" : "246886422",
            "discord_channel_id" : "10293847565748392010"
        }
    }
}

Note that all queries to external services rely on id numbers, and all labels are for human convenience only.

Use

discord-twitter-streaming-bot

Or launch with docker-compose to ensure the process stays alive

npm run docker