25 lines
		
	
	
		
			583 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			583 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* ----------------------- */
 | 
						|
/* STREAMER.BOT CONNECTION */
 | 
						|
/* ----------------------- */
 | 
						|
 | 
						|
const streamerBotServerAddress = "127.0.0.1";
 | 
						|
const streamerBotServerPort = "8080";
 | 
						|
 | 
						|
const streamerBotClient = new StreamerbotClient({
 | 
						|
	host: streamerBotServerAddress,
 | 
						|
	port: streamerBotServerPort,
 | 
						|
 | 
						|
	onConnect: (data) => {
 | 
						|
		console.log(`Streamer.bot successfully connected!`)
 | 
						|
		console.debug(data);
 | 
						|
		
 | 
						|
        notifySuccess({
 | 
						|
            title: 'Connected to Streamer.bot',
 | 
						|
            text: ``
 | 
						|
        });
 | 
						|
	},
 | 
						|
 | 
						|
	/*onDisconnect: () => {
 | 
						|
		console.error(`Streamer.bot disconnected`);
 | 
						|
	}*/
 | 
						|
}); |