More fixes to account checker, and test command
This commit is contained in:
@@ -387,7 +387,8 @@ async def status_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
|
||||
async def test_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
||||
telegram_user_id = helpers.get_telegram_user_id(update)
|
||||
telegram_user_name = helpers.get_telegram_user_name(update)
|
||||
if not walladb.is_user_valid(telegram_user_id):
|
||||
#if not walladb.is_user_valid(telegram_user_id):
|
||||
if walladb.get_user(telegram_user_id) == "NoName":
|
||||
until = helpers.get_date_ahead(7)
|
||||
walladb.add_test_user(telegram_user_id, telegram_user_name, until)
|
||||
message = f"Periodo de prueba activado hasta el {helpers.get_spanish_date(until)}."
|
||||
|
||||
Reference in New Issue
Block a user