mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-24 01:11:27 +00:00
New year picture FMN and default format webp (compact)
This commit is contained in:
parent
b166016df8
commit
885bfb5a53
BIN
src/FMN.png
BIN
src/FMN.png
Binary file not shown.
Before Width: | Height: | Size: 788 KiB |
BIN
src/FMN.webp
Normal file
BIN
src/FMN.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 154 KiB |
|
@ -38,7 +38,7 @@ def create_poll_movies(text=text_create_poll(), poll_expires=345600):
|
|||
|
||||
attaches = []
|
||||
try:
|
||||
attaches = [upload_attachment('src/FMN.png')]
|
||||
attaches = [upload_attachment('src/FMN.webp')]
|
||||
except Exception as E:
|
||||
logger.error(f"attachements can't do upload: {E}")
|
||||
|
||||
|
@ -92,7 +92,7 @@ def get_winner_movie(poll_status_id=str):
|
|||
text_winned = f"{expired_poll_count} голосование завершилось! Победил вариант предложенный @{acct_suggested}:\n{win_variant}"
|
||||
|
||||
logger.success("Победил " + str(movie))
|
||||
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
|
||||
post_status(text_winned, attachments=[upload_attachment('src/FMN.webp')])
|
||||
write_states()
|
||||
reset_poll()
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ def get_control_mention():
|
|||
next_movie_watching = time_now + next_movie_watching_delta
|
||||
max_mute_time = time.mktime(time.struct_time(next_movie_watching.timetuple())) # Глушение до следующего сеанса FMN.
|
||||
next_movie_watching = next_movie_watching.strftime('%d.%m.%Y')
|
||||
post_status(start_collect_movies_text(movies_accept_time, next_movie_watching), st_id, attachments=[upload_attachment('src/FMN.png')])
|
||||
post_status(start_collect_movies_text(movies_accept_time, next_movie_watching), st_id, attachments=[upload_attachment('src/FMN.webp')])
|
||||
|
||||
time.sleep(0.2)
|
||||
mark_as_read_notification(i['id'])
|
||||
|
|
Loading…
Reference in a new issue