mirror of
https://git.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-24 22:40:57 +01:00
poll logging level changed
This commit is contained in:
parent
8e3253fd50
commit
a949ecd9b6
|
@ -28,7 +28,7 @@ def create_poll_movies(text=text_create_poll, poll_expires=345600):
|
||||||
formated_poll_options.append(poll_option_string)
|
formated_poll_options.append(poll_option_string)
|
||||||
poll_status_id = post_status(text, None, formated_poll_options,
|
poll_status_id = post_status(text, None, formated_poll_options,
|
||||||
poll_expires=poll_expires, attachments=[upload_attachment('src/FMN.png')])
|
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_expires_at', int(time.time()) + poll_expires)
|
||||||
add_state('poll_status_id', poll_status_id['id'])
|
add_state('poll_status_id', poll_status_id['id'])
|
||||||
return poll_status_id
|
return poll_status_id
|
||||||
|
@ -76,7 +76,7 @@ def get_winner_movie(poll_status_id=str):
|
||||||
{win_variant}
|
{win_variant}
|
||||||
'''.replace('\t', '')
|
'''.replace('\t', '')
|
||||||
|
|
||||||
logger.warning("Победил " + str(movie))
|
logger.success("Победил " + str(movie))
|
||||||
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
|
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
|
||||||
clear_all_states()
|
clear_all_states()
|
||||||
reset_poll()
|
reset_poll()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user