Coder Social home page Coder Social logo

dox's Introduction

Dox

Dox is a automation system for Telegram.

Warning

This project is in early development state, so there are some bugs and some features are not yet implemented.

Get started

To get started you need an API_ID and API_HASH from https://core.telegram.org/api/obtaining_api_id

.env

Create .env file and fill it this way:

API_ID="YOUR_API_ID"
API_HASH="YOUR_API_HASH"
SESSION=

config.json

Create config.json file and fill it.

Example:

{
    "target": "@ElonMusk", // or ID,
    "messages": [
        {
            "text": ".next",
            "wait_message": { // DOX will wait **forever** until this message is received. Unless use set a timeout option(NOT YET IMPLEMENTED)
                "target": "@all",
                "reply": "Hello",
                "wait_message": {
                    "target": "@yes",
                    "reply": "Are you okay?",
                    "wait_message": {
                        "target": "@no",
                        "reply": "Oh.. Im sorry to hear that. How old are you?",
                        "wait_message": {
                            "target": "@num",
                            "reply": "@end"
                        }
                    }
                },
                "timeout": 5 // 5 seconds before stop  waiting
            },
            "delay": 1, // 1 second before next message
        }
    ],
    "parallel": [
        {
            "target": "f u",
            "reply": "What?!"
        },
        {
            "target": "stop",
            "reply": "@end" // This will end the chat and go back to the first message
        }
    ]
}

Usage

dox start

or

npm start -- start

Available commands:

  • start
    • --no-check or -nc (dox will not check whether the user is blocked)
    • --store-usernames(or -su) - Store all received usernames to usernames.json
    • --store-chats(or -sc) - Store all received chats to chats.json
  • help
  • logout (cleares the session)

Keywords

  • @all
    • Any images
  • @num
    • Any numbers inside the text
  • @yes
    • Yes word in different languages
  • @no
    • No word in different languages

Roadmap

  • timeout to not wait forever
  • keywords
    • @all, @num, @yes, @no, etc.
  • Sending media
    • Files
    • Images
    • Photos
    • Videos
    • Audios
    • Stickers
    • Gifs
  • Storing the messages
    • Options like google drive, sqlite db, local json file, or posting to channel
  • OpenAI API
    • Be able to use OpenAI API to do some actions with the messages
  • Group actions
    • Invite Users
    • Ban Users
  • Copying
    • Copy all messages from a chat
    • Copy all posts from a channel
    • Copy all messages from a group

Credits

gram.js

dox's People

Contributors

velaton618 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.