aboutsummaryrefslogtreecommitdiff
path: root/AudioBackend/QueueSystem.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-17 00:07:31 -0500
committerGitHub <noreply@github.com>2024-02-17 00:07:31 -0500
commit214a83c0f696ac731c54b00bf7503f87e497afa6 (patch)
tree15d57b08e69d19fb4c2f3effb9937aec8d042bdc /AudioBackend/QueueSystem.js
parentb29ab06623fd24cfc2a611bdd658b4d2ef934335 (diff)
parentc848f1d90fef40ffa81915d7dd875a2ee6d6c8d5 (diff)
downloadDLAP-214a83c0f696ac731c54b00bf7503f87e497afa6.tar.gz
DLAP-214a83c0f696ac731c54b00bf7503f87e497afa6.tar.bz2
DLAP-214a83c0f696ac731c54b00bf7503f87e497afa6.zip
Merge pull request #17 from Alee14/testing
Merging testing branch
Diffstat (limited to 'AudioBackend/QueueSystem.js')
-rw-r--r--AudioBackend/QueueSystem.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/AudioBackend/QueueSystem.js b/AudioBackend/QueueSystem.js
index 0cd6ded..2bab8eb 100644
--- a/AudioBackend/QueueSystem.js
+++ b/AudioBackend/QueueSystem.js
@@ -20,6 +20,8 @@
***************************************************************************/
import { playAudio, updatePlaylist } from './PlayAudio.js';
import { files } from './AudioControl.js';
+import i18next from '../Utilities/i18n.js';
+const t = i18next.t;
function shuffleArray(array) {
// Durstenfeld Shuffle
@@ -29,16 +31,16 @@ function shuffleArray(array) {
}
}
export async function orderPlaylist(bot) {
- console.log('Playing beats by order...');
+ console.log(t('musicPlayOrder'));
updatePlaylist('reset');
console.log(files);
return await playAudio(bot);
}
export async function shufflePlaylist(bot) {
- console.log('Shuffling beats...');
+ console.log(t('musicShuffling'));
shuffleArray(files);
- console.log('Playing beats by shuffle...');
+ console.log(t('musicPlayShuffle'));
updatePlaylist('reset');
console.log(files);
return await playAudio(bot);