• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Channel Move Script?

Status
Not open for further replies.

kanalumaddela

Insider
Insider
this script is completely basic at its core, but I plan to add in group support (once I understand them lolz)
Code:
registerPlugin({
    name: 'Channel Move',
    version: '1.0',
    description: 'Simple move client script',
    author: 'kanalumaddela ([email protected])',
    vars: {
        channelone: {
            title: 'Channel to trigger moving client',
            type: 'channel'
        },
        channeltwo: {
            title: 'channel to move client to',
            type: 'channel'
        }
    }
}, function(sinusbot, config) {
sinusbot.log('Channel Move -  Loading...');
sinusbot.log('Channel Move -  Channel to move from: ' + config.channelone);
sinusbot.log('Channel Move -  Channel to move client to: ' + config.channeltwo);

    sinusbot.on('clientMove', function(ev) {
        if (ev.newChannel == config.channelone) {
            sinusbot.move(ev.clientId, config.channeltwo);
            return;
        }
    });

sinusbot.log('Channel Move -  Loaded!.');
});
 
this script is completely basic at its core, but I plan to add in group support (once I understand them lolz)
Code:
registerPlugin({
    name: 'Channel Move',
    version: '1.0',
    description: 'Simple move client script',
    author: 'kanalumaddela ([email protected])',
    vars: {
        channelone: {
            title: 'Channel to trigger moving client',
            type: 'channel'
        },
        channeltwo: {
            title: 'channel to move client to',
            type: 'channel'
        }
    }
}, function(sinusbot, config) {
sinusbot.log('Channel Move -  Loading...');
sinusbot.log('Channel Move -  Channel to move from: ' + config.channelone);
sinusbot.log('Channel Move -  Channel to move client to: ' + config.channeltwo);

    sinusbot.on('clientMove', function(ev) {
        if (ev.newChannel == config.channelone) {
            sinusbot.move(ev.clientId, config.channeltwo);
            return;
        }
    });

sinusbot.log('Channel Move -  Loaded!.');
});

Thanks. But that was not what i meant. Example, 1 groups for 1 channels, 1 groups for 1 channels, 1 groups for 1 channels .....
 
Last edited:
Status
Not open for further replies.
Top