mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +00:00
chore(misc): tiny improvements (#233)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user