Skip to content

nonamenix/spb_python_bot

Repository files navigation

SPb Python Bot

spbpython bot status tag

The Zen of SPb Python Chat

import this

Read Zen of SPb Python Chat

Help with this

help(this)

>>> from this import hi  # hello, intro
Short introduction of yourself is better than "hello".

>>> from this import gist  # source
Link to gist is better than source paste.

>>> from this import spam  # long_better
One long message is better than many short.

>>> from this import edit  # correct
Editing the message is better than correcting via another one.

>>> from this import topic  # offtopic
Staying on topic is better than offtopic.
Good topic is worth discussing though.
Unless it is started by a link to Habrahabr.

>>> from this import ask
Don't ask to ask just ask.

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

How to run

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

Put it to .env file and run with do docker-compose up