How can I make a script, which checks the first letter of a joining user's nickname and accordingly to the first letter of the nickname starts a sound via /splay? Example: If a user's nickname starts with F, /splay should start a .wav which says "F".

Any idea?