Ts3audiobot: Start autoplaying a PlayList instead a single song.

Created on 10 Nov 2018  路  5Comments  路  Source: Splamy/TS3AudioBot

Hi ^^.
How can i make my bots starting a playlist when onconnect event gets fired?
Currently I have

onconnect = "!xecute (!bot commander on) (!loop on) (!random on) (!list load soundcloud) (!list play)"

But seems not starting that playlist...

bug

Most helpful comment

Should be fixed. Please verify that on your side.

All 5 comments

Thats broken due to an internal error, I'll fix it soon.

Should be fixed. Please verify that on your side.

Working very nice!! ^^ Good work.

Hey, in the version of June 15, 2019 # 24892e5 in the developer is the playlist start at the onconnect event anymore?

Config:

[bot.events]

Called when the bot is connected.

onconnect = "!xecute (!list load playlist) (!list play)"

Console:
11:02:00.8181| WARN|0| Befehlsfehler (Command 'CommandListLoad' missing execution context 'ClientCall')

Log (Debug):

2019-06-20 11:05:01.3165|DEBUG|0|Bot.CallScript Calling script (skipRights:True, answer:False): !xecute (!plist load playlist) (!plist play)
2019-06-20 11:05:01.3815| WARN|0|Bot.TryCatchCommand Befehlsfehler (Command 'CommandListLoad' missing execution context 'ClientCall')
TS3AudioBot.CommandSystem.MissingContextCommandException: Command 'CommandListLoad' missing execution context 'ClientCall'
   bei TS3AudioBot.CommandSystem.Commands.FunctionCommand.FitArguments(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes, Int32& takenArguments) in D:\TS3AudioBot\CommandSystem\Commands\FunctionCommand.cs:Zeile 111.
   bei TS3AudioBot.CommandSystem.Commands.FunctionCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\FunctionCommand.cs:Zeile 164.
   bei TS3AudioBot.CommandSystem.BotCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\BotCommand.cs:Zeile 100.
   bei TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\CommandGroup.cs:Zeile 90.
   bei TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\CommandGroup.cs:Zeile 90.
   bei TS3AudioBot.CommandSystem.Commands.RootCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\RootCommand.cs:Zeile 33.
   bei TS3AudioBot.CommandSystem.Commands.AppliedCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\AppliedCommand.cs:Zeile 31.
   bei TS3AudioBot.CommandSystem.Commands.LazyCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\LazyCommand.cs:Zeile 33.
   bei TS3AudioBot.MainCommands.CommandXecute(ExecutionInformation info, IReadOnlyList`1 arguments) in D:\TS3AudioBot\MainCommands.cs:Zeile 1829.
--- Ende der Stapel眉berwachung vom vorhergehenden Ort, an dem die Ausnahme ausgel枚st wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei TS3AudioBot.CommandSystem.Commands.FunctionCommand.ExecuteFunction(Object[] parameters) in D:\TS3AudioBot\CommandSystem\Commands\FunctionCommand.cs:Zeile 69.
   bei TS3AudioBot.CommandSystem.Commands.FunctionCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\FunctionCommand.cs:Zeile 201.
   bei TS3AudioBot.CommandSystem.BotCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\BotCommand.cs:Zeile 100.
   bei TS3AudioBot.CommandSystem.Commands.CommandGroup.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\CommandGroup.cs:Zeile 90.
   bei TS3AudioBot.CommandSystem.Commands.RootCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\RootCommand.cs:Zeile 33.
   bei TS3AudioBot.CommandSystem.Commands.AppliedCommand.Execute(ExecutionInformation info, IReadOnlyList`1 arguments, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\Commands\AppliedCommand.cs:Zeile 31.
   bei TS3AudioBot.CommandSystem.XCommandSystem.Execute(ExecutionInformation info, String command, IReadOnlyList`1 returnTypes) in D:\TS3AudioBot\CommandSystem\XCommandSystem.cs:Zeile 88.
   bei TS3AudioBot.CommandSystem.XCommandSystem.Execute(ExecutionInformation info, String command) in D:\TS3AudioBot\CommandSystem\XCommandSystem.cs:Zeile 81.
   bei TS3AudioBot.Bot.<>c__DisplayClass40_0.<CallScript>b__0() in D:\TS3AudioBot\Bot.cs:Zeile 372.
   bei TS3AudioBot.Bot.TryCatchCommand(ExecutionInformation info, Boolean answer, Action action) in D:\TS3AudioBot\Bot.cs:Zeile 444.

@KD4888 While the commit you linked is not the one breaking it, I can confim, that the !list * commands currently don't work in events as I'm currently reworking the list feature to also work for api. Check #227 for infos and updates on this topic

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Americanu picture Americanu  路  3Comments

CookieCr2nk picture CookieCr2nk  路  4Comments

SuspiciousActivity picture SuspiciousActivity  路  6Comments

TykooHagen picture TykooHagen  路  4Comments

officialtaxz picture officialtaxz  路  6Comments