Renamed gen_password.py into generate_password.py, fixed gen_password command
This commit is contained in:
@ -5,7 +5,7 @@ import time
|
||||
import telebot
|
||||
from sqlalchemy.future import Engine
|
||||
|
||||
from .. import cryptography, database
|
||||
from .. import cryptography, database, generate_password
|
||||
from ..account_checks import (
|
||||
check_account,
|
||||
check_account_name,
|
||||
@ -13,7 +13,6 @@ from ..account_checks import (
|
||||
check_password,
|
||||
)
|
||||
from ..account_parsing import accounts_to_json, json_to_accounts
|
||||
from ..gen_password import gen_password
|
||||
|
||||
Message = telebot.types.Message
|
||||
|
||||
@ -494,7 +493,7 @@ def _import3(
|
||||
def gen_password(bot: telebot.TeleBot, mes: Message) -> None:
|
||||
_base_handler(bot, mes)
|
||||
# Generate 10 passwords and put 'em in the backticks
|
||||
passwords = (f"`{gen_password()}`" for _ in range(10))
|
||||
passwords = (f"`{generate_password.gen_password()}`" for _ in range(10))
|
||||
text = (
|
||||
"Пароли:\n"
|
||||
+ "\n".join(passwords)
|
||||
|
Reference in New Issue
Block a user