azamaulanaaa / botkaca

Bot that leech (re-upload) internet contents including torrent to telegram
GNU General Public License v3.0
134 stars 611 forks source link

Custom bot commands #11

Closed rahul-instinct closed 4 years ago

rahul-instinct commented 4 years ago

Please add support of custom commands for bot

azamaulanaaa commented 4 years ago

can you explain more? what its? and how it works?

rahul-instinct commented 4 years ago

can you explain more? what its? and how it works?

we can use our commands for leech or thumbnail set and remove for example instead of leech command I want to use dl or any other command

azamaulanaaa commented 4 years ago

you can modified command at /bot/__init__.py for default one or you can modified it using environment variable. COMMAND_ + command key, check on /bot/__init__.py. Ex. for leech set env var COMMAND_LEECH.

btw I miss something, let me fix a moment

azamaulanaaa commented 4 years ago

sorry wrong issue reference for https://github.com/azamaulanaaa/botkaca/commit/b9da7eb2c7c7a24413e5f7f14064d5128d2c0748 it should be for #13