diff --git a/.gitignore b/.gitignore index 93428e1..47b5316 100644 --- a/.gitignore +++ b/.gitignore @@ -39,5 +39,5 @@ coverage.xml *.pot # Sphinx documentation docs/_build/ -src/сonfig.json +src/config.json .idea/ \ No newline at end of file diff --git a/src/config.py b/src/config.py index 82d1990..b2b1fc1 100644 --- a/src/config.py +++ b/src/config.py @@ -12,7 +12,7 @@ logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)-29s - %(le class Config: # noinspection PyTypeChecker - def __init__(self, config_file="сonfig.json"): + def __init__(self, config_file="config.json"): self.log = logging.getLogger(__name__) self.debug = self.log.debug diff --git a/src/keyboard.py b/src/keyboard.py index d1dcfe2..257ad89 100644 --- a/src/keyboard.py +++ b/src/keyboard.py @@ -1,8 +1,8 @@ from aiogram.types import ReplyKeyboardMarkup, KeyboardButton, ReplyKeyboardRemove -network = KeyboardButton('Сеть') -subnet = KeyboardButton('Подсети') -help = KeyboardButton('Помощь') +network_button = KeyboardButton('Сеть') +subnet_button = KeyboardButton('Подсети') +help_button = KeyboardButton('Помощь') kb = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True) -kb.row(network, subnet, help) \ No newline at end of file +kb.row(network_button, subnet_button, help_button) diff --git a/src/main.py b/src/main.py index 449a668..4ec2547 100644 --- a/src/main.py +++ b/src/main.py @@ -13,7 +13,7 @@ from aiogram.utils import executor from config import Config from keyboard import * -config = Config("сonfig.json") +config = Config("config.json") log = logging.getLogger("Bot") bot = Bot(token=config.token) dp = Dispatcher(bot)