chore(misc): tiny improvements (#233)

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
serg06
2020-09-23 11:02:44 -04:00
committed by GitHub
parent 22fd22fe74
commit 8466f9f398
4 changed files with 25 additions and 3 deletions
+8
View File
@@ -4,7 +4,15 @@ import fs from 'fs';
import playerLib from 'play-sound';
const notificationSound = Config.notifications.playSound;
Logger.info('Searching for sound player...');
const player = playerLib();
if (player.player === null) {
Logger.warn('No sound player found.');
} else {
const playerName: string = player.player;
Logger.info(`Sound player found: ${playerName}`);
}
export function playSound() {
// Check if file exists