Skip to content

Commit 0b7cd90

Browse files
committed
refactor: move loose helper scripts into a dedicated utils package
1 parent 1eaa087 commit 0b7cd90

10 files changed

Lines changed: 5 additions & 5 deletions

File tree

bot_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from orga2Utils import noitip, asm
1+
from utils.orga2Utils import noitip, asm
22
from handlers.basic import start, help_command, estasvivo, colaborar
33
from handlers.info import campusvivo, flan, flanviejo, aulas, cuandovence, listarlabos
44
from handlers.admin import checodepers, checodeppers, sugerirNoticia, get_logs

handlers/crons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import random
44
import logging
55
from telegram.ext import ContextTypes
6-
import river
7-
import conciertos
6+
from utils import river
7+
from utils import conciertos
88
from tg_ids import DC_GROUP_CHATID, NOTICIAS_CHATID
99

1010
logger = logging.getLogger("DCUBABOT")

handlers/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from telegram import Update
22
from telegram.ext import ContextTypes
33
from telegram.constants import ParseMode
4-
from campus import is_campus_up
5-
from vencimientoFinales import calcular_vencimiento, parse_cuatri_y_anio
4+
from utils.campus import is_campus_up
5+
from utils.vencimientoFinales import calcular_vencimiento, parse_cuatri_y_anio
66
from handlers.media import responder_imagen, responder_documento
77

88
async def campusvivo(update: Update, context: ContextTypes.DEFAULT_TYPE):
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)