mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-22 20:43:32 +02:00
poll logging level changed
This commit is contained in:
parent
8e3253fd50
commit
a949ecd9b6
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ def create_poll_movies(text=text_create_poll, poll_expires=345600):
|
|||
formated_poll_options.append(poll_option_string)
|
||||
poll_status_id = post_status(text, None, formated_poll_options,
|
||||
poll_expires=poll_expires, attachments=[upload_attachment('src/FMN.png')])
|
||||
logger.info('Голосовалка создана')
|
||||
logger.success('Голосовалка создана')
|
||||
add_state('poll_expires_at', int(time.time()) + poll_expires)
|
||||
add_state('poll_status_id', poll_status_id['id'])
|
||||
return poll_status_id
|
||||
|
@ -76,7 +76,7 @@ def get_winner_movie(poll_status_id=str):
|
|||
{win_variant}
|
||||
'''.replace('\t', '')
|
||||
|
||||
logger.warning("Победил " + str(movie))
|
||||
logger.success("Победил " + str(movie))
|
||||
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
|
||||
clear_all_states()
|
||||
reset_poll()
|
||||
|
|
Loading…
Reference in a new issue