From 2457719e872048abab46140861915a6ee157266d Mon Sep 17 00:00:00 2001 From: misanram Date: Wed, 22 Apr 2026 23:31:52 +0100 Subject: [PATCH] =?UTF-8?q?Correcci=C3=B3n=20en=20README.md=20y=20eliminac?= =?UTF-8?q?i=C3=B3n=20de=20ficheros=20.example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 8 -------- README.md | 18 ++++++++---------- pydeckard.service.example | 18 ------------------ 3 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 .env.example delete mode 100644 pydeckard.service.example diff --git a/.env.example b/.env.example deleted file mode 100644 index 59c8e7a..0000000 --- a/.env.example +++ /dev/null @@ -1,8 +0,0 @@ -TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -VERBOSITY=0.33 -LOG_LEVEL=WARNING -POLL_INTERVAL=3 -BOT_GREETING="Hi! I'm a friendly, crazy slightly psychopath robot" -MAX_HUMAN_USERNAME_LENGTH=100 -MAX_CHINESE_CHARS_PERCENT=0.15 -WELCOME_DELAY=330 diff --git a/README.md b/README.md index f83f01c..d942089 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,17 @@ example we are using python -m venv: $ python -m venv pydeckard $ cd pydeckard $ source ./bin/activate -$ ./bin/pip install git+https://github.com/misanram/pydeckard.git@Instalar-desde-GitHub +$ ./bin/pip install git+https://github.com/pythoncanarias/pydeckard.git ~~~ As a developer, you must install it in this other way: ~~~console -$ ./bin/pip install git+https://github.com/misanram/pydeckard.git@Instalar-desde-GitHub[dev] +$ git clone https://github.com/pythoncanarias/pydeckard.git +$ cd pydeckard +$ python3 -m venv venv +$ source ./venv/bin/activate +$ pip3 install -e .[dev] ~~~ After installation, the next step is to create the .env configuration file and @@ -50,13 +54,7 @@ using the instructions that setup has provided. You can view the bot log using: ~~~console -$ journalctl -u pydeckard.service -f systemd -~~~ - -You can use the flag `--verbose` (or `-v') to get more information in the console: - -~~~console -$ python3 bot.py --verbose +$ journalctl -u pydeckard.service -f ~~~ @@ -66,4 +64,4 @@ Use pytest: ~~~console $ python3 -m pytest -~~~ \ No newline at end of file +~~~ diff --git a/pydeckard.service.example b/pydeckard.service.example deleted file mode 100644 index c64515a..0000000 --- a/pydeckard.service.example +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=PyDeckard -After=network.target - -[Service] -User=el_que_ejecute_el_bot -Group=el_que_ejecute_el_bot -Restart=always -WorkingDirectory=/ruta_al_entorno_virtual -ExecStart=/ruta_al_entorno_virtual/bin/bot -# La onfiguración del bot puede hacerse: - A) Colocando el archivo .env en el WorkingDirectory - B) Colocando el archivo .env en cualquier directorio que User pueda leer y declarandolo en - EnvironmentFile=/cualquier_directorio/.env - -[Install] -WantedBy=multi-user.target -Alias=PyDeckard.service