Ts3audiobot: Develop Version error

Created on 29 Jul 2018  路  27Comments  路  Source: Splamy/TS3AudioBot

Hello, when I try to launch the develop version of TS3AudioBot I get this error:

Severity    Code    Description Project File    Line    Suppression State
Error   MSB4044 The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion".  TS3AudioBot C:\Program Files\dotnet\sdk\2.1.202\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.GenerateAssemblyInfo.targets 146 

Then, when I try to launch the master version of TS3AudioBot, it connects to the TeamSpeak but after few seconds it loses connection.

2018-07-29 00:45:57.8861| INFO|Core.InitializeCore [============ TS3AudioBot started =============]
2018-07-29 00:45:57.9379| INFO|Core.InitializeCore [=== Date/Time: Sunday, July 29, 2018 12:45:57 AM
2018-07-29 00:45:57.9629| INFO|Core.InitializeCore [=== Version: <?>/<?>/<?>
2018-07-29 00:45:57.9629| INFO|Core.InitializeCore [=== Platform: Windows 6.2.9200.0 (64bit)
2018-07-29 00:45:57.9629| INFO|Core.InitializeCore [=== Runtime: .NET Framework 4.0.30319.42000
2018-07-29 00:45:58.0297| INFO|Core.InitializeCore [=== Opus: libopus 1.2.1-fixed (x64)
2018-07-29 00:45:58.0297| INFO|Core.InitializeCore [==============================================]
2018-07-29 00:45:58.0297| INFO|Core.InitializeCore [============ Initializing Modules ============]
2018-07-29 00:45:58.3219| INFO|RightsManager.ReadFile No rights file found. Creating default.
2018-07-29 00:45:58.5204| INFO|Core.InitializeCore [==================== Done ====================]
2018-07-29 00:45:58.5274| INFO|Bot.InitializeBot Bot connecting...
2018-07-29 00:45:58.7439| INFO|HistoryManager.Initialize Database table "audioLogEntries" upgraded to 1
2018-07-29 00:46:00.8555| INFO|Bot.OnBotConnected Bot connected.
2018-07-29 00:46:30.8005|DEBUG|Ts3Full.TsFullClient_OnDisconnected Bot disconnected. Reason: Timeout
2018-07-29 00:46:30.8075| INFO|Bot.Dispose Bot disconnecting.
2018-07-29 00:46:30.8075| WARN|Bot.LoggedUpdateBotStatus Internal error (me==null)

Sorry for creating a new issue btw.

bug needs investigation

All 27 comments

You could just reopen the other issue, but it doesn't matter.

Can you run with trace logs: https://github.com/Splamy/TS3AudioBot/wiki/Troubleshooting#more-logs

Sorry, but I had to put the log file on a hosting because it was very large for paste websites.
https://www21.zippyshare.com/v/RS9Rg1tY/file.html

Anything?

Hey, sorry, I'm more or less on vacation right now and not whole lot on my pc. I will answer when I get to it; thanks for your patience.

Which version did you actually take master or develop?

Master.
I can't even build the Develop version since I get an error:

Severity    Code    Description Project File    Line    Suppression State
Error   CS0006  Metadata file 'D:\Desktop\TS3AudioBot-develop1\TS3AudioBot\bin\Debug\net46\TS3AudioBot.exe' could not be found  TS3ABotUnitTests(netcoreapp2.0) D:\Desktop\TS3AudioBot-develop1\TS3ABotUnitTests\CSC    1   Active
Error   MSB4044 The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion".  TS3AudioBot C:\Program Files\dotnet\sdk\2.1.202\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.GenerateAssemblyInfo.targets 146 

You can simply download the prebuilt develp verison from here: https://splamy.de/api/nightly/ts3ab/develop/download
Otherwise if you want to build it yourself, can you download the repo via the git clone ... (as in the readme) and try to build again?

Thanks, cloning it helped.

I did git clone https://github.com/Splamy/TS3AudioBot.git, however, the bot is still losing connection.

have you have to switched to develop after you cloned?
Can you give me a debug/trace log once again when you made sure it's the develop branch.

When I change branches, the git link doesn't change unless I'm doing something wrong.

No, what I meant was something like git checkout develop (or in the ui)

Version: 0.8.1-origin-develop.1
Branch: origin/develop
CommitHash: 63dc0ee2fcf3eb498a33d4c65db00a583c690ca8

I changed the branch, but isn't the version supposed to be like 0.9?

GitVersionTask decides how to name the version :P but the commit is corect as I see.

Will the same version run on ubuntu? Because I'm getting these errors:

root@vps5638:/home/TS3AudioBot# mono /home/TS3AudioBot/TS3AudioBot.exe
17:47:45.7262| INFO [============ TS3AudioBot started =============]
17:47:45.8613| INFO [=== Date/Time: Saturday, 11 August 2018 17:47:45
17:47:45.8670| INFO [=== Version: 0.8.1-origin-develop.1/origin/develop/63dc0ee2
17:47:45.8675| INFO [=== Platform: Ubuntu 16.04.5 LTS (Xenial Xerus) (64bit)
17:47:45.8675| INFO [=== Runtime: Mono (5.14.0.177 (tarball Mon Aug  6 09:13:43 UTC 2018))
17:47:45.8684| INFO [=== Opus: libopus 1.1.2 (x64)
17:47:45.8684| INFO [==============================================]
17:47:46.2098| INFO Bot connecting...
18:00:26.7181| INFO Trying to reconnect. Delaying reconnect for 1 seconds
18:00:27.7361| INFO Trying to reconnect. Delaying reconnect for 2 seconds
18:00:29.7415| INFO Trying to reconnect. Delaying reconnect for 5 seconds
18:00:34.7468| INFO Trying to reconnect. Delaying reconnect for 10 seconds
18:00:37.5846| INFO TS3AudioBot shutting down.
18:00:37.5864| INFO Bot disconnecting.
18:00:37.6002| WARN Unknown Teamspeak Error. (Connection closed)
18:00:37.6069| WARN Could not save avatar: Unknown Teamspeak Error. (Connection closed)

Could you give me a Debug/Trace log once again
Is the server public? I could try connecting and try to see if I have the same probem/ debug it.

IP is flamespeak.pl. I'm only having this problem when I'm connecting from my Ubuntu VPS.

root@vps5638:/home/TS3AudioBot# mono TS3AudioBot.exe
18:20:12.0653| INFO [============ TS3AudioBot started =============]
18:20:12.2093| INFO [=== Date/Time: Saturday, 11 August 2018 18:20:12
18:20:12.2166| INFO [=== Version: 0.8.1-origin-develop.1/origin/develop/63dc0ee2
18:20:12.2166| INFO [=== Platform: Ubuntu 16.04.5 LTS (Xenial Xerus) (64bit)
18:20:12.2174| INFO [=== Runtime: Mono (5.14.0.177 (tarball Mon Aug  6 09:13:43 UTC 2018))
18:20:12.2182| INFO [=== Opus: libopus 1.1.2 (x64)
18:20:12.2182| INFO [==============================================]
18:20:12.5535| INFO Bot connecting...
18:20:12.7102|DEBUG DisconnectInternal wasExit:True error: oldStatus:Disconnected newStatus:
18:20:12.7128|DEBUG Trying to look up 'flamespeak.pl'
18:20:12.8126|DEBUG [O] InitID: 0
18:20:12.8270|DEBUG DisconnectInternal wasExit:False error: oldStatus:Connecting newStatus:Disconnected
18:20:12.8321|DEBUG Bot disconnected. Reason: LeftServer
18:20:12.8327| INFO Trying to reconnect. Delaying reconnect for 1 seconds
18:20:13.8367|DEBUG DisconnectInternal wasExit:True error: oldStatus:Disconnected newStatus:
18:20:13.8367|DEBUG Trying to look up 'flamespeak.pl'
18:20:13.8411|DEBUG [O] InitID: 0
18:20:13.8429|DEBUG DisconnectInternal wasExit:False error: oldStatus:Connecting newStatus:Disconnected
18:20:13.8435|DEBUG Bot disconnected. Reason: LeftServer
18:20:13.8435| INFO Trying to reconnect. Delaying reconnect for 2 seconds
18:20:14.6852| INFO TS3AudioBot shutting down.
18:20:14.6871| INFO Bot disconnecting.
18:20:14.7063| WARN Unknown Teamspeak Error. (Connection closed)
18:20:14.7133| WARN Could not save avatar: Unknown Teamspeak Error. (Connection closed)
18:20:14.7197|DEBUG DisconnectInternal wasExit:True error: oldStatus:Disconnected newStatus:
18:20:14.7197|DEBUG DisconnectInternal wasExit:True error: oldStatus:Disconnected newStatus:


After some time debugging with my friend, looks like the bot will connect through IPv4.

Also, !bot save only creates a config file. Is there another command that saves it in the main config? Also, how can I get bot name by command? For ex: !bot name would return name if the third parameter is empty(for nickname change)

That's an interesting find, thanks, I will try to see if I can find any problems with ipv6

@Splamy How can I change so each bot is using a separate rights file? If that isn't possible then I think like multi-instancing is very useless without separate rights files tbh. Not trying to be disrsispectful or anything btw.

Also, I was wondering what this is

 case "bot":
    var bot = tomlObj.TryGetValueArray<string>();
    if (bot == null) ctx.Errors.Add("<bot> Field has invalid data.");
    else MatchBot ?
bot matches when the request goes to a Bot instance with the given template name.

You can't use a separate file for each bot yet, however the rights.toml allows you to configure each bot separately:

Lets say you have a bot named mybot1, you can create a rule which matches on this name, and put the other rules nested into it (note that all indentation is optional and just for clarification):

[[rule]]
    bot = "mybot1"

    [[rule.rule]]
        groupid = [ 17 ]
        "+" = [
            "cmd.play"
        ]

    [[rule.rule]]
        groupid = [ 12 ]
        "+" = [
            "*"
        ]

Is there another command that saves it in the main config?

If you want to edit the global settings use !settings global set, !bot save is only useful when you create a new bot and want to save it permanently afterwards.

Also, how can I get bot name by command?

What do you mean with that? You just provided your own answer?
Or do you want to read it form the config? !settings get connect.name for your current bot or !settings bot get <botname> connect.name for an other one.

@Splamy Hi, another issue. For example, when I have more than 7 bots(I think), the bot won't send the message with bot list because the message is longer than maximum characters. My idea was to send each bot in a separate line.

One each line would probably trigger the spam protection really fast. But we already had an idea of smart splitting which is in planning.

@Splamy Could you tell me how to do it? Spam protection is not a really problem for me.

If you just want a hacky workaround you can replace those lines: https://github.com/Splamy/TS3AudioBot/blob/master/TS3AudioBot/MainCommands.cs#L178-L183
with

[Command("bot list")]
public static void CommandBotId(BotManager bots, ExecutionInformation info)
{
    foreach (var x in bots.GetBotInfolist())
        info.Write(x.ToString());
}

Note that this _will_ break the api for this command.

Hello, I'm currently writing a web panel for the musicbots and it seems that you cannot get or play a playlist from the web API.
```{
"url":"https:\/\/www.youtube.com\/watch?v=UuxyIZEGGbk&start_radio=1&list=RDUuxyIZEGGbk",

"get":{"data":{"ErrorCode":17,"ErrorName":"MissingContext","ErrorMessage":"Command 'CommandListGet' missing execution context 'UserSession'"}},

"play":{"data":{"ErrorCode":17,"ErrorName":"MissingContext","ErrorMessage":"Command 'CommandListPlay' missing execution context 'UserSession'"}},```

Yes, I know, this is not implemented yet. The tracking issue for this feature is here: #227

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Thomseeen picture Thomseeen  路  5Comments

dalexhd picture dalexhd  路  5Comments

officialtaxz picture officialtaxz  路  6Comments

Splamy picture Splamy  路  4Comments

bennetgallein picture bennetgallein  路  4Comments