• 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 Song name to be in the nickname of the bot.

Status
Not open for further replies.

Velaxers

Member
Okay had an old thread from ts2... changed it.

Code:
registerPlugin({
    name: 'SetBotSongName',
    version: '1.01',
    description: 'Implements the function of setting the nick to current title.',
    author: 'Bjoern T',
    vars: {}
},    function (sinusbot, config)    {

            sinusbot.on('track', function(ev) {
     
                var nick = ev.title + ' - ' + ev.artist;
             
                if (nick.length > 30){
                    nick = nick.substring(0,29);
                }
                setNick(nick);
         
         
        });


});
where to place this script lol? sorry I'm a noob :oops:

Edit: oh forgot scripts only works for Linux, I'm windows.
 
Last edited:
Status
Not open for further replies.
Top