NovumBattle
New Member
Hello,
I try to script my own Support Plugin but I get an error.
Iif someone joins the Support Channel he should get a message, but I only get this error:
	
	
	
		
Thank you for your help! 
				
			I try to script my own Support Plugin but I get an error.
Iif someone joins the Support Channel he should get a message, but I only get this error:
Here is my code:2016/03/27 19:18:14 f818ba24 e2de1d52 WARN Sending private message failed
2016/03/27 19:18:14 f818ba24 e2de1d52 WARN invalid clientID
		Code:
	
	registerPlugin({
    name: 'Support Plugin',
    version: '0.1',
    description: 'This script will make your life as a supporter easier!',
    author: 'Gregor "NovumBattle" Lucka <[email protected]>',
    vars: {
        support: {
            title: 'Support Channel',
            type: 'channel'
        }
    }
}, function(sinusbot, config) {
    sinusbot.on('clientMove', function(ev) {
        if (ev.newChannel == config.support) {
            chatPrivate(ev.clientID, "Du bist im Support Channel!");
            return;
        }
    });
    sinusbot.log('Support Plugin initialisiert...');
});