This commit is contained in:
ivanch committed 2023-07-31 20:47:44 -03:00
1 parent 9df9090812
commit 0b9f96460f
8 files changed
+84 -40

No files matched your search

@@ -6,7 +6,7 @@ using TextCommandFramework.Services;
namespace TextCommandFramework.Modules
{
public class PublicModule : ModuleBase<ShardedCommandContext>
public class CommandModule : ModuleBase<ShardedCommandContext>
{
public PictureService PictureService { get; set; }
public PlayerService PlayerService { get; set; }
@@ -31,7 +31,9 @@ namespace TextCommandFramework.Modules
throw new Exception("You must be connect in a voice channel!");
}
await PlayerService.Play(Context, text, new Flags(text));
var flags = new Flags();
var withoutFlags = flags.Parse(text);
await PlayerService.Play(Context, withoutFlags, flags);
}
[Command("join", RunMode = RunMode.Async)]