Comments (3)
I think a safe assumption would be to cache the list for something like 1-2 minutes.
from botamusique.
How about reloading when a song...
- starts
- ends
- is uploaded (via web interface)
- is deleted (via web interface) (could be implemented as command as well)
or/and when a command like !reload
or !list
or !refresh
is issued ?
from botamusique.
I wouldn't create a new command for that - I would just do it silently in the background. We should definitely update the list when songs are added or deleted. However, care should be taken when we add this at too many places, as there might be race conditions then.
We definitely need a safe guard preventing race conditions for that.
from botamusique.
Related Issues (20)
- Prettify display of queued items in playlist
- Perform a security check of the application HOT 1
- Add command line option to use other (non-default) configuration files
- Improve command handling structure HOT 2
- Queue/Now playing: Add 'user' info
- Add client certificate support
- Some paths incorrectly contain double-slashes HOT 3
- Add 'now playing' info to mumble comment HOT 3
- Collect and display statistics about songs HOT 2
- Register bot on mumble server to save server settings HOT 2
- Pentest the bot commands HOT 1
- Write log to file
- Implement a REST interface HOT 2
- Merge back to upstream repo HOT 1
- Allow manual reordering of queued items HOT 1
- Bot sends no mumble reply if text message is too long. HOT 3
- 500 Internal Server Error when removing songs from playlist via web interface
- Try to reconnect on connection loss HOT 5
- Deleting duplicate items in the playlist always removes the first item HOT 1
- Bot crashes on receiving !playurl command without HTML formatting HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botamusique.