respeak / rust-ts3plugin Goto Github PK
View Code? Open in Web Editor NEWRust bindings to easily create a TeamSpeak3 plugin
License: Apache License 2.0
Rust bindings to easily create a TeamSpeak3 plugin
License: Apache License 2.0
Moin!
Ich komme aus der Java Welt und meine Erfahrungen mit C Sprachen, Rust und ähnliche beglichen sich auf Null^ Nun muss/will ich ein Teamspeak Plugin programmieren.. Mit der offiziellen Teamspeak SDK habe ich in 2 Stunden nichtmal geschafft Deren Beispiel zu kompilieren.. Mit deiner Lib habe ich es nach 2 Minuten geschafft.. Somit steht schonmal fest das Rust meine nächste Sprache wird die ich angucke, Danke ;)
Die Events habe ich soweit schon verstanden.. Jedoch bleibt mir die Frage wie ich Nachrichten wieder zurückschreiben kann? Ich arbeite mit Privaten Chats.. Somit brauche ich lediglich die Funktion schreiben zu können, und Leute poken zu können. Ich habe gerade nicht wirklich viel dafür gefunden, was mir sagt wie ich das richtig implementiere ;)
Im Hintergrund arbeite ich dann noch mit nem HTTP Server und Client.. Das werde ich aber schon selber implementiert kriegen^
Vielen Dank,
Mfg Marcel
PS: Ich denke mal du bist der deutschen Sprache mächtig ;) Das Herkunftsland hat mir das verraten
First of all, this wrapper is pretty handy as I want to use Ruby to code a TS3 bot (much more convenient than C).
I'd like to record what a user says when whispering to the bot and previously implemented that in C using the void ts3plugin_onEditPlaybackVoiceDataEvent(uint64 serverConnectionHandlerID, anyID clientID, short* samples, int sampleCount, int channels)
function.
Unfortunately, this isn't available in rust-ts3plugin and I have no idea how to wrap the samples in Rust.
Maybe you have one? :)
Hello,
I'm a bit puzzled by the static mut TS3_FUNCTIONS
.
For once there is a static reference to the Ts3Functions and all calls in TsApi are referring to it.
Not one is using any internal reference ( self.api... for example), so the whole struct seems kinda useless. Still you can't call any TS functions from any other thread, as you don't have a reference to this object as a user, though that's not entirely true, you can call the static logger function from any other thread, so it's inconsistent.
So my question is: What exactly is the reason for the const mut and still using some struct which has to be implemented, it feels wrong and makes it impossible to call functions from the outside (not ts event initiated).
Hi, thanks for the lib first of all.
I currently get the this errors all over the place when using the clean plugin example:
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
10/22/18 22:38:54 rust-ts3plugin Error Error NotConnected (Can't get channel information) in in ts3interface.rs:L438
Any ideas what I'm doing wrong ?
The commit closing #6 3d6ac43 Crashes teamspeak on a blank plugin with free(): invalid pointer
.
I'm assuming the new string free-function is not working as intended. Again, a blank plugin, you don't need to call get_client_property_as_string
at all.
(I was just trying to move production to the current master to add more features, which is why it took so long to appear.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.