importthishelp(this)
>>>fromthisimporthi# hello, introShortintroductionofyourselfisbetterthan"hello".
>>>fromthisimportgist# sourceLinktogistisbetterthansourcepaste.
>>>fromthisimportspam# long_betterOnelongmessageisbetterthanmanyshort.
>>>fromthisimportedit# correctEditingthemessageisbetterthancorrectingviaanotherone.
>>>fromthisimporttopic# offtopicStayingontopicisbetterthanofftopic.
Goodtopicisworthdiscussingthough.
UnlessitisstartedbyalinktoHabrahabr.
>>>fromthisimportaskDon'tasktoaskjustask.import__hello__Команда разрешена только для модератора
/google query
/g query
/wiki query
/w query
Match peps in messages and send links for them.
Показывает чаты и ссылки
/chats
/links
/about
/version — show current bot version
/ping — moderator-only ping/pong check
/rules — show all chat rules (also: /zen, import this)
BOT_TOKEN # telegram bot token (required)
BOT_LOGGING_LEVEL # logging level: DEBUG, INFO, WARNING, ERROR (default: DEBUG)
MODERATORS # moderator Telegram user IDs separated by spaces
HEALTHCHECKIO_TOKEN # healthcheck.io ping token (optional)See .env.example for a ready-to-use template.
Build and run locally:
cp .env.example .env
# edit .env and set BOT_TOKEN
docker compose up --buildDeploy to a remote server:
The image is built and pushed to GitHub Container Registry on every push to master.
# Copy deploy/docker-compose.yml and .env to the server, then:
DEPLOY_HOST=user@yourserver ./deploy/deploy.shOr manually on the server:
docker compose pull
docker compose up -d