You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can add sounds with no problem, I can list them. But when I restart errbot the sound is sometimes not persisted. I say "sometimes" because I didn't find yet a pattern that makes it persist and sometimes not.
Steps to reproduce
!soundbox list
It shows:
file.mp3 something, stuff
Then add a sound
!soundbox add somefile.mp3 alias1 alias2
You can then see that is was successful by typing:
I am...
I am running...
Issue description
I wrote a soundbox plugin that enables you to play sounds from a given set. Find the full code here https://gist.github.com/raspbeguy/b65e26430af9f6a5a308f7cc1a1556c2
A sound is a small object:
In the plugin class, I'm trying to use a persistent attribute
self['SOUNDS']
to store the list of the sounds.Here is the function to add a sound:
I also have a function to list the sounds:
I can add sounds with no problem, I can list them. But when I restart errbot the sound is sometimes not persisted. I say "sometimes" because I didn't find yet a pattern that makes it persist and sometimes not.
Steps to reproduce
It shows:
Then add a sound
You can then see that is was successful by typing:
It shows:
Then restart errbot:
Print the list again:
It shows:
The sound that we added is gone.
The text was updated successfully, but these errors were encountered: