случайные числа add
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-04 19:05:33 +10:00
parent e458da2f55
commit 1683e23232

9
bot.py
View File

@ -1,6 +1,7 @@
from cgitb import text from cgitb import text
import datetime import datetime
import logging import logging
from random import randint
from aiogram import Bot, Dispatcher, executor, types from aiogram import Bot, Dispatcher, executor, types
from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton
@ -34,6 +35,14 @@ async def send_time(message: types.Message):
await message.reply(f'Сегодня {cd} \nВремя: {ct2} \nДо Нового Года осталось {num}') await message.reply(f'Сегодня {cd} \nВремя: {ct2} \nДо Нового Года осталось {num}')
#####______________________ПИПИСА БОТ БУДЕТ ЗДЕСЬ__________________________________
@dp.message_handler(commands=["DickUp"])
async def dickup(message: types.Message):
numb = (f"Рандомное число - {randint(-7,10)}")
await dickup.send(numb)
""""async def set_default_commands(dp): """"async def set_default_commands(dp):