omano
Member
Operating System: Linux Ubuntu 14.04
SinusBot Version: 0.9.18-8499d2c
TS3 Version: 3.0.19.4
Problem Description
I have a script I made which is supposed to play a track or say a sentence when someone leaves the channel where the bot is. Problem is that it only works sometimes as intended (play or say the corresponding track or sentence depending on the user which is leaving the bot channel). Most of the time it says "userXXX has left the channel" where 'userXXX' is a random user of the teamspeak server user database, not even connected on the TS server, or not connected since one year for example, totally random. I joined the script to the message in order to let you test. In the script, it knows a few people and have custom tracks/sentences for each user the script knows, or else it says a generic sentence with the user nickname.
Problem may be directly in my script (I'm not a coder, so.. yeah maybe), but I really think it is the bot which has a bug and does not correctly say the good "ev.clientNick", or have the good "ev.clientUid" when a user moves from the bot channel. I added logging to try to understand what happens but it does not really help it only proves the bot thinks the user who left the bot channel is the wrong one.
Link to my script: https://pastebin.com/WAVJWcQv
This problem is bugging me for a long time now I hoped for each new version the problem would be fixed but it is not. This thread may be a good starting point to let you investigate the problem. Thanks for replying in advance.
SinusBot Version: 0.9.18-8499d2c
TS3 Version: 3.0.19.4
Problem Description
I have a script I made which is supposed to play a track or say a sentence when someone leaves the channel where the bot is. Problem is that it only works sometimes as intended (play or say the corresponding track or sentence depending on the user which is leaving the bot channel). Most of the time it says "userXXX has left the channel" where 'userXXX' is a random user of the teamspeak server user database, not even connected on the TS server, or not connected since one year for example, totally random. I joined the script to the message in order to let you test. In the script, it knows a few people and have custom tracks/sentences for each user the script knows, or else it says a generic sentence with the user nickname.
Problem may be directly in my script (I'm not a coder, so.. yeah maybe), but I really think it is the bot which has a bug and does not correctly say the good "ev.clientNick", or have the good "ev.clientUid" when a user moves from the bot channel. I added logging to try to understand what happens but it does not really help it only proves the bot thinks the user who left the bot channel is the wrong one.
Link to my script: https://pastebin.com/WAVJWcQv
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 14.04.5 LTS
- OS x64 check: OK
- Kernel: Linux 3.13.0-85-generic x86_64
- Load Average: 0.64 0.55 0.65
- Uptime: 72 days, 4 hours, 39 minutes, 18 seconds
- OS Updates: 7 (updates available!)
- OS Missing Packages: None (v1)
- OS APT Last Update: 24.02.2017 23:50:22 CET +01:00:00
- Bot Start Script: not found
- DNS resolution check: sinusbot.com resolved to 104.18.40.220 -> OK
- HTTPS check with IPv4 mode: SUCCESS [Connection was established to sinusbot.com]
- HTTPS check with IPv6 mode: FAILED [Failed connecting to sinusbot.com]
- CPU:
Architecture: x86_64
CPU(s): 8
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
CPU MHz: 1600.000
Virtualization: VT-x
- RAM: B/15.64 GB in use (%)
- SWAP: B/ B in use (%)
- DISK: 216.23 GB/651.67 GB in use (33%)
- Package versions:
> libglib: 2.40.2-0ubuntu12.40.2-0ubuntu1
BOT INFORMATION
- Status: running (PIDs: 29063 29062, User: ogp_agent)
- Webinterface: port locally not reachable (Port: 8087)
- Binary: /home/ogp_agent/OGP_User_Files/HS_SinusBot/sinusbot (MD5 Hash: aa67b784b83f5a7e66c60496f58d4a92)
- Version: 0.9.18-8499d2c
- TS3 Plugin: installed (md5 hash match)
- Bot Plugin: d53693319c8922b95257ad4c6eacff69
- TS3 Client: d53693319c8922b95257ad4c6eacff69
- Config:
- LogLevel = 3
- TS3Path = /home/ogp_agent/OGP_User_Files/HS_SinusBot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.19.4)
- YoutubeDLPath = /usr/bin/youtube-dl (does exist, version: 2017.02.24.1)
- Installed scripts: backtodefault.js; customcomands.js; playonjoin.js; playonleave.js
OTHER INFORMATION
- Report date: 12.04.2017 00:34:45 CEST +02:00:00 (timezone: Europe/Paris)
- TeamSpeak 3 Version: 3.0.19.4
- youtube-dl Version: 2017.02.24.1
- DiagScript version: 0.5.1
==========================================================
This problem is bugging me for a long time now I hoped for each new version the problem would be fixed but it is not. This thread may be a good starting point to let you investigate the problem. Thanks for replying in advance.