Giter VIP home page Giter VIP logo

add-frame-bot's Introduction

Docker Image CI

Add frame bot

Bot for simply adding a frame to the photos

Bot is made just for fun and coded 'in 5 minutes'. It is intended to work in groups.

Usage

  1. Deploy
  2. Add bot to a group
  3. See commands section

Deployment

Simple

  1. Make sure nodejs 16+ is installed in your system and available in the path
  2. Install dependencies using npm install
  3. Create .env file and write to it your bot token in the following format: TG_BOT_TOKEN="${your token}"
  4. Run using npm start
  5. Enjoy!

Docker

  1. Make sure Docker is installed in your system and available in the path
  2. Create .env file and write to it your bot token in the following format: TG_BOT_TOKEN="${your token}"
  3. Run using docker compose up or docker compose up -d for detached mode
  4. Enjoy!

Commands

You have to reply to message with an image with this command in order to use it

add_frame parameters

Optional parameters:

Parameters can be combined. Just specify as much as you want separating them with space

  • Frame width: a frame width in pixels. 8px by default. Example:
    /add_frame 10
    
    will add a 10px white frame to the photo
  • Frame color: a frame color specified as a 3- or 6-byte value after hash symbol. White by default. Example:
    /add_frame #ff0000
    
    or
    /add_frame #f00
    
    will add a 8px red frame to the photo

bw parameters

At the moment there aren't any parameters available

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.