Skip to content

spbpython/spb_python_bot

Repository files navigation

SPb Python Bot

spbpython bot statustag

The Zen of SPb Python Chat

importthis

Read Zen of SPb Python Chat

Help with this

help(this) >>>fromthisimporthi# hello, introShortintroductionofyourselfisbetterthan"hello". >>>fromthisimportgist# sourceLinktogistisbetterthansourcepaste. >>>fromthisimportspam# long_betterOnelongmessageisbetterthanmanyshort. >>>fromthisimportedit# correctEditingthemessageisbetterthancorrectingviaanotherone. >>>fromthisimporttopic# offtopicStayingontopicisbetterthanofftopic. Goodtopicisworthdiscussingthough. UnlessitisstartedbyalinktoHabrahabr. >>>fromthisimportaskDon'tasktoaskjustask.

Hello world

import__hello__

Let me google for you

Google

Команда разрешена только для модератора

/google query /g query 

Wiki

Команда разрешена только для модератора

/wiki query /w query 

PEPs link

Match peps in messages and send links for them.

Chats

Показывает чаты и ссылки

/chats /links 

Environment variables

BOT_TOKEN # telegram bot token BOT_LOGGING_LEVEL # logging level MODERATORS # moderators identifiers splited by space DEBUG # bot autoreload on file save 

Run with condo

Condo — reliable and simple idempotent supervisor for Docker containers.

{:spec{:Name"spb_python_bot":Image"nonamenix/spb_python_bot:latest":Env [ "BOT_TOKEN=339614247:************************************""MODERATORS=132982472 59323058""HEALTHCHECKIO_TOKEN=********-****-****-****-************""BOT_LOGGING_LEVEL=ERROR""MONGO_URL=mongodb://spbpythonbot:[email protected]:46677/spb_python_bot""MONGO_HEALTHCHECKIO_TOKEN=fb6c17b8-a64a-41bf-83c7-267ee5124368" ] :HostConfig{:RestartPolicy{:Name"always"} :NetworkMode"petprojects_default" } } :health-timeout45 }

About

Telegram bot for SPb Python Chat

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python97.0%
  • Dockerfile3.0%