Этот проект был сделан для русскоязычного сообщества. README на русском можно найти здесь.
In Vas3k Club chats, people like to build towers. Towers are one-letter messages from participants that can be combined to form a word. The main day for building towers is Wednesday. On Wednesday it is a tradition to build "ITSWEDNESDAYMYDUDES" and send pictures of frogs. It's not easy: someone always wants to send a message between the letters. A club member cannot be in the middle. He or she has to choose between creating and destroying.
wedne has two parts: wedne.server
and wedne.client
. The client connects to the public
server and receives instructions for the sending of a letter at a specific time.
You don't have to be a programmer. Read this section and find out how to get involved in construction.
- Download the Python installer to your computer,
- Go through the installation (if asked, check "Add python.exe to PATH"),
- Open the "Terminal" or "cmd.exe" application,
- Type
python -m pip install wedne
to install wedne, - Finally type
python -m wedne
and log in as in Telegram.
Your client is currently up and running. It will connect to the server and wait for a command. When the time is right, a message will be sent to your chat from your account.
You can close the instruction.
docker run qwskr/wedne:latest
It's easiest to clone and run using Docker Compose:
docker compose up
Without docker, you need to run the API and task handler:
python -m gunicorn -c wedne/server/gunicorn.py wedne.server.api:app
python -m wedne.server consume_tasks
wedne has to send a letter to chat from some account. When you log in, such an account is connected. The source code is open, you can check for yourself how the Telegram data is used.
You can't.
- Clone the repository (
git clone https://github.com/igoose1/wedne
), - Install poetry (
pip install poetry
), - Go to the source and install dependencies (
cd wedne; poetry install
), - Run wedne (
python -m wedne
).
Only a command with three variables: what letter to send, when to send it and after whom
to send it. The server cannot send a command to send a word or a phrase. The client will
not accept such a command. The server can't redirect clients to another chat. Chat ID is
stored locally on clients. Command scheme: wedne/commands.py
Ask for a help in the "Бар" chat.
You don't seem to know about the Vas3k Club. This project is written for it. If you are not a member, wedne will be of no use to you.