• 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.

Rise

New Member
So maybe a feature where the nickname of the bot would change to the music that's currently playing? It would be a cool feature.
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Already possible via scripting. I'll move it there.
 

kapabac

Active Member
Contributor
Insider
So maybe a feature where the nickname of the bot would change to the music that's currently playing? It would be a cool feature.
Join you, this script would be useful. Perhaps, someone of the guys will take up writing this script...:rolleyes:
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Should be possible via a combination of .on('track', ...) or .on('trackInfo', ...) and setNick(...).
About that documentation... as soon as the next version is out, I'll get it cleaned up a bit. The latest version should be available inside the bot itself: Help -> Scripting.
 

TheBash

New Member
Code:
registerPlugin({
    name: 'SetBotSongName',
    version: '1.0',
    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 > 20){
                    nick = nick.substring(0,19);
                }
                setNick(nick);
           
           
        });


});


There you go.
A Teamspeak Nickname only supports 20 chars, so the nick will be cut if too long. Also you need the newest version of Sinusbot to get the setNick() function to work.
Have fun,


Bjoern
 

Seph29

Donor
is awesome!
A Teamspeak Nickname only supports 20 chars
Nop, teamspeak supports 30 chars
HHlWLcl.png
 
Last edited:

TheBash

New 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);
           
           
        });


});
 

rialTresH

Member
How to refresh bot name, one time per 30sec?
95% time i listen online radio.
And how to delete UNDERFINED from bot name?
123123123123.PNG
 

qwertz

New 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);
          
          
        });


});

Hey man, this is great! Thanks for taking the time to do this!
Is there any way to apply this as a stand alone plugin in teamspeak 3?
For example, I have a song playing on a player in windows and i would activate this plugin and it would show the name of the song in my nickname.
The player in question, if it's not asking too much, is Music Bee. But if it's easier to do on VLC for example I'm ok with that. But even for your personal use, I always recommend Music Bee, it's free and has all the features you could want :)

Thanks for taking the time to read this!
 

rvdns11

Member
I got a little issue with this: When i play a Webstream from a Icecast Server, it shows ,,undefined" instead of the song name. Announcing and title description are working normally. Anyone got an idea why it does show ,,undefined"?
 
Last edited:
Status
Not open for further replies.
Top