Skip to content

Commit

Permalink
reintroduce .server
Browse files Browse the repository at this point in the history
  • Loading branch information
barryoneill committed Apr 19, 2023
1 parent 65e7ade commit 48e53ab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class SlashCommandBotBuilder[F[_]: Async] private[slashcmd] (
def withCommandMapper(commandParser: CommandMapper[F]): Self =
copy(commandParser = Some(commandParser))

final def serve: F[Nothing] = build.useForever

final def build: Resource[F, Server] = {

def mkHttpService(cmdRunner: CommandRunner[F]): Resource[F, Server] =
Expand Down

0 comments on commit 48e53ab

Please sign in to comment.