diff --git a/Bot/InviteTracker.fs b/Bot/InviteTracker.fs index a821fe9..c8ac2a9 100644 --- a/Bot/InviteTracker.fs +++ b/Bot/InviteTracker.fs @@ -153,7 +153,7 @@ let private getInviteAttributions userId = |> Sql.executeRowAsync (fun read -> read.int "count") |> Async.AwaitTask -let private getInvitedUsers userId = +let getInvitedUsers userId = connStr |> Sql.connect |> Sql.parameters [ "did" , Sql.string (string userId) ] @@ -244,13 +244,9 @@ let getAttributions userId (ctx : IDiscordContext) = let getInvitedUsersForId (ctx : IDiscordContext) = task { - printfn "1" do! Messaging.defer ctx - printfn "2" let! users = getInvitedUsers (ctx.GetDiscordMember().Id) - printfn "3" let! total = getInvitedUserCount (ctx.GetDiscordMember().Id) - printfn "4" let sb = StringBuilder() let mutable count = 0 for user in users do @@ -266,10 +262,8 @@ let getInvitedUsersForId (ctx : IDiscordContext) = .AsEphemeral(true) .WithContent(str) do! ctx.FollowUp(msg) - printfn "5" let user = ctx.GetDiscordMember() do! Analytics.recruitedCommand total user.Id user.Username (ctx.GetChannel()) - printfn "6" } :> Task let clearInvites (ctx : IDiscordContext) = task {