Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
150 stars 20 forks source link

Join event #122

Closed awesad closed 4 years ago

awesad commented 4 years ago

hi, I can't understand how to put the bot on hold until a user join event occurs in a particular channel

Multivit4min commented 4 years ago

what do you mean under "put the bot on hold"? the query still needs to send occasionally a keepalive packet in order to tell the teamspeak server that its still here

awesad commented 4 years ago

I mean, how do I perform an action when an event occurs such as: a user enters a certain channel and the bot sends him a poke

Multivit4min commented 4 years ago

events have been documented here: https://github.com/Multivit4min/TS3-NodeJS-Library#events an overview of all available events can be seen here: https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeak.html#on

awesad commented 4 years ago

thanks

awesad commented 4 years ago

i get this error: (node:1732) UnhandledPromiseRejectionWarning: Error: parameter not found at Command.getError (/root/node_modules/ts3-nodejs-library/lib/transport/Command.js:94:16) at TeamSpeakQuery.handleQueryError (/root/node_modules/ts3-nodejs-library/lib/transport/TeamSpeakQuery.js:155:52) at TeamSpeakQuery.handleLine (/root/node_modules/ts3-nodejs-library/lib/transport/TeamSpeakQuery.js:127:18) at ProtocolRAW.emit (events.js:198:13) at lines.forEach.line (/root/node_modules/ts3-nodejs-library/lib/transport/protocols/raw.js:56:36) at Array.forEach () at ProtocolRAW.handleData (/root/node_modules/ts3-nodejs-library/lib/transport/protocols/raw.js:56:15) at Socket.emit (events.js:198:13) at addChunk (_stream_readable.js:288:12) at readableAddChunk (_stream_readable.js:265:13) (node:1732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:1732) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Multivit4min commented 4 years ago

what are you trying to execute? with which parameters? please do not only post stack traces

Multivit4min commented 4 years ago

closing this issue for now