Hi. This is the repository of my bot (Miss_duckbot). This bot is written in typescript.
/start
- starting bot/setlang
- setting current language/ocrts
- tesseractjs ocr/ocr
- ocr space/tr
- translate text
and any more.
- OCR
- Translate
- Duckbot Mata
- Anti Spam
and any more.
Available on https://duckbot.now.sh
git clone https://github.com/butthx/duckbot
cd duckbot
npm i -g yarn
opsional if you don't have yarnyarn install
touch .env
fill.env
file with env valueyarn build
yarn start
To update all dependencies
you can use yarn upgrade
To deploy on replit when a build not found module error appears, please run the command yarn build
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"
You can submit a pull request or an opened issue.
This repo is still in beta dev if there are bugs or incomplete features please understand!