xDefcon / sinusbot-scripts

Scripts for SinusBot (sinusbot.com)
GNU General Public License v3.0
14 stars 10 forks source link

fixed clacks issue #1

Closed irgendwr closed 8 years ago

irgendwr commented 8 years ago

now the nick gets updated even if no change is detected

xDefcon commented 8 years ago

This will be a good idea, but sinusbot.setNick() just set nick in the web interface... Example: TS3 Real nick: BOT1111 WebInterface nick: BOT

sinusbot.setNick("BOT") does anything, because it is the same of the webinterface config. i tested it probably 2 or 3 weeks ago, maybe this is different at the moment

To fix this problem there are 2 solutions: a) get real ts3 nick by iterating on ts3-channels b) every X sec, set a different nick, and immediatly change with the default one, (setNick("BOT.") then setNick("BOT"))

irgendwr commented 8 years ago

did you try it? it worked for me ^^

xDefcon commented 8 years ago

I can re-test but this needs some time, because to replicate this situation i have to wait to a bot crash

irgendwr commented 8 years ago

you could also disconnect the bot, join with a client named "test" and rename the bot to "test". If you connect the bot again the bot is called "test1" and if you disconnect the client "test" the bot renames itself to "test".

xDefcon commented 8 years ago

Yes, it did the same.

sinusbot.setNick() really sets a nick via TS3. sinusbot.getNick() gets the nick by webinterface, and not the real one on TS3.

Thanks for suggesting me that!