build.handlers.users.help   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A bot_help() 0 8 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