Splamy / TS3AudioBot

Advanced Musicbot for Teamspeak 3
https://splamy.de/TSAudioBot/Home
Open Software License 3.0
682 stars 138 forks source link

How to use TS3Audiobot Library in my Project #1028

Closed marv-th closed 1 year ago

marv-th commented 1 year ago

Hello,

Currently, I am trying to develop my own Teamspeak bot with custom features. For this, I wanted to use the library of this software to work with the different objects and methods. I have successfully implemented the TSLib.dll and TS3Audiobot.dll files into my Visual Studio project, and referenced the source code of TS3Audiobot. When creating a bot with the TSLib.dll, I am not receiving any error messages in the console, but I am also not getting a bot on my server. When I try it with the Ts3audiobot.dll, I receive the following error message when executing.

System.Exception: Could not load all bot modules
   at TS3AudioBot.Bot..ctor(Id id, ConfBot config, BotInjector injector) in C:\projects\ts3audiobot\TS3AudioBot\Bot.cs:line 110
   at ConsoleApp3.TSBot.create() in C:\VisualStudioProjekte\ConsoleApp3\ConsoleApp3\TSBot.cs:line 102

Can you please send me a simple example of how I can establish a connection to a Teamspeak server using the functionalities of the TSLib.dll in my project?

I appreciate any answers that can help me with my problem.