Skip to content

Conversation

@topic2k
Copy link

@topic2k topic2k commented Apr 1, 2023

  • Add option to play a list of messages and/or audio files
  • Add option repeat_playlist to post_action: repeat whole playlist. repeat_message will repeat only the last item in case of a playlist.
  • Add option repeat_wait for an extra delay between repeated messages (in seconds).

closes #37

- Added option `repeat_playlist` to `post_action`: repeat whole playlist. `repeat_message` will repeat only the last item in case of a playlist.
- Added option `repeat_wait` for an extra delay between repeated messages (in seconds).
@arnonym arnonym changed the base branch from main to next April 3, 2023 16:51
Copy link
Owner

@arnonym arnonym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a first round of review, and you've done a good job! Looking forward to your update!

pl = self.menu['playlist']
if pl:
item_type, content = pl[-1].split(':', 1)
self.menu[item_type] = content.lstrip()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here you're mutating the in-memory menu and if you come back later through some return action you don't get the original playlist anymore?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's so only the last item of the playlist will be repeated. Didn't thought about nested menus. I will see how i can handle this. (only applys to repeat_message).

@topic2k
Copy link
Author

topic2k commented Apr 10, 2023

When i have the nested menu thing done, i will update the PR.

@arnonym arnonym force-pushed the next branch 10 times, most recently from aed8c83 to e9d69d1 Compare May 8, 2023 06:14
@arnonym arnonym force-pushed the next branch 2 times, most recently from d628a66 to a86f63c Compare May 9, 2023 05:57
@ralphschuler
Copy link

Is this still ongoing?

@arnonym arnonym force-pushed the next branch 2 times, most recently from e409580 to 6074c80 Compare July 30, 2023 17:24
@arnonym arnonym force-pushed the next branch 4 times, most recently from 819873b to b87ef63 Compare September 7, 2023 16:39
@arnonym arnonym force-pushed the next branch 15 times, most recently from 3e837e5 to d3f0c2f Compare July 23, 2025 17:55
@arnonym arnonym force-pushed the next branch 14 times, most recently from 01d4ce2 to cf2a672 Compare August 28, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple audio_file and/or message

3 participants