Added install script and fixed line spacing in sound.pl. this is only a basic install script.
This commit is contained in:
		
							
								
								
									
										7
									
								
								install
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										7
									
								
								install
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#Basic Install Script
 | 
			
		||||
echo "This will install to~/.irssi/scripts and create a simlink to autostart the script."
 | 
			
		||||
mkdir -p ~/.irssi/scripts/autorun/
 | 
			
		||||
cp sound.pl ~/.irssi/scripts/
 | 
			
		||||
ln -s ~/.irssi/scripts/sound.pl ~/.irssi/scripts/autorun/sound.pl
 | 
			
		||||
echo "Done!"
 | 
			
		||||
							
								
								
									
										2
									
								
								sound.pl
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								sound.pl
									
									
									
									
									
								
							@@ -42,7 +42,7 @@ sub pri_msg {
 | 
			
		||||
#--------------------------------------------------------------------
 | 
			
		||||
# The sound playing function for nick mensioning message
 | 
			
		||||
#--------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
sub nick_msg {
 | 
			
		||||
        my ($server,$msg,$nick,$address,$target) = @_;
 | 
			
		||||
        system("play -qn -V0 synth 0.5 tri A3:D3 tri D3:A3 remix - &");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user