build.handlers.users.help.bot_help()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
# -*- coding: utf-8 -*-
2
3
4
from aiogram.dispatcher.filters.builtin import CommandHelp
5
from aiogram import types
6
from loader import dp
7
8
9
"""
10
11
12
    Created on 10.09.2021
13
    
14
    @author: Nikita
15
16
17
"""
18
19
20
@dp.message_handler(CommandHelp())
21
async def bot_help(message: types.Message):
22
    text = ("Список команд: ",
23
            "/start - Начать диалог",
24
            "/help - Получить справку",
25
            "/dice - Подкинуть кубик")
26
    
27
    await message.answer("\n".join(text))
28