Have ideas to improve npm?Join in the discussion! »


    1.0.2 • Public • Published

    Bot-dac 📺

    On HFC networks we have Digital Addressable Controllers providing secured access control for digital video distribution systems. Bot-dac is a library on JavaScript To help non-administrators users. Makes it easy to extract information from the DAC.

    Installation 📚

    To install bot-dac you need to have installed NodeJs. Then you will type:

    npm i bot-dac

    The package installation will be installing a Chromium version. It due to we used puppeteer, a library on JavaScript for web scraping. And his default web explorer is Chromium.

    Deployment 📦

    Bot-dac uses two principal libraries. The first one is Puppeteer that made web scraping and the second is Telegraf that interacts with the Telegram Bot API. You need to configure nothing on them. As you know. The DAC stores all set-top boxes information. So to extract that information. Bot-dac realizes a web scraping to the principal tabs and returns it via telegram message.

    To reach to run the Bot-dac on your computer or server. You need to configure some environment variables on your operating system.

    Bot-dac uses a robot of Telegram to return the information. So you need to create a robot on Telegram with BotFather. When you ended the process Telegram will give you a TOKEN. Save it, it will be confidential. You can review the Telegram API Doc to learn how it works.

    1. The first one environment variable is the bot token:


      This is an example. The BotFather will give you your own and unique token.

    2. The DAC user:


    3. The DAC password:


    4. The DAC URL or IP:


    To configure the environment variables I used dotenv. Feel free to configure at your way these environment variables on your operating system.

    📌 Make sure to configure the name of the environment variables how I showed you ☝️


    npm i bot-dac

    DownloadsWeekly Downloads






    Unpacked Size

    51.4 kB

    Total Files


    Last publish


    • avatar