Skip to content
/ duckbot Public

Duckbot is a telegram bot that functions to manage groups and make admin tasks easier.

License

Notifications You must be signed in to change notification settings

butthx/duckbot

Repository files navigation

Overview

Hi. This is the repository of my bot (Miss_duckbot). This bot is written in typescript.

License

MIT LICENSE

Command

  • /start - starting bot
  • /setlang - setting current language
  • /ocrts - tesseractjs ocr
  • /ocr - ocr space
  • /tr - translate text
    and any more.

Features

  • OCR
  • Translate
  • Duckbot Mata
  • Anti Spam
    and any more.

Docs

Available on https://duckbot.now.sh

Deploy

  • git clone https://github.com/butthx/duckbot
  • cd duckbot
  • npm i -g yarn opsional if you don't have yarn
  • yarn install
  • touch .env
    fill .env file with env value
  • yarn build
  • yarn start

To update all dependencies you can use yarn upgrade

replit deploy Deploy

To deploy on replit when a build not found module error appears, please run the command yarn build

Env

BOT_TOKEN : Token bot from bot father.
MONGGODB : Mongoodb URI to connect database.
SPAMWATCH_TOKEN : Api key from spam watch.
OCR_API : OCR space api key.
ERROR_LOG : Channel/Groups/ID to report error.
WEBHOOK : running mode if true bot will running on webhook mode. if false bot will running on polling mode. The webhook in question here is to use expressjs. Open a webhook with a telegram server.
OWNER_ID : your user id
URL : webhook url. if webhook=true this env required.
USERNAME : username your bot.
BETA : If true bot will using beta script when the /update command is executed. If false, the bot will use the stable script.
API_HASH : from my.telegram.org
API_ID : from my.telegram.org

To keep the bot active and not sleeping I recommend using uptimerobot or cronjobs to ping your webhook url with the path "/cron"

Contribution

You can submit a pull request or an opened issue.

Notes

This repo is still in beta dev if there are bugs or incomplete features please understand!

About

Duckbot is a telegram bot that functions to manage groups and make admin tasks easier.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages