diff --git a/Bot/Games/Trainer.fs b/Bot/Games/Trainer.fs index 8572f60..c94a3ae 100644 --- a/Bot/Games/Trainer.fs +++ b/Bot/Games/Trainer.fs @@ -98,11 +98,11 @@ let handleDefense (ctx : IDiscordContext) = let playerName = tokens.[4] let embed = Embeds.responseCreatedShield defaultShield do! ctx.FollowUp embed |> Async.AwaitTask - do! Async.Sleep 4000 + do! Async.Sleep 2000 do! sendMessage' $"Ok, good, let me make sure that worked.\n\nI'll try to **hack** you now with **{defaultHack.Item.Name}**" - do! Async.Sleep 5000 + do! Async.Sleep 3000 do! sendMessage' $"❌ HACKING FAILED!\n\n{playerName} defended hack from <@{Sensei.Id}>!" - do! Async.Sleep 4000 + do! Async.Sleep 2000 do! sendFollowUpMessageWithButton ctx (handleDefenseMsg defaultHack.Item.Name) } |> Async.StartAsTask :> Task @@ -146,26 +146,33 @@ let handleHack (ctx : IDiscordContext) = do! Async.Sleep 1000 let embed = Embeds.responseSuccessfulHack false Sensei.Id defaultHack.Power defaultHack do! ctx.FollowUp(embed) |> Async.AwaitTask - do! Async.Sleep 4000 + do! Async.Sleep 2000 do! sendMessage' ("🎉 **Congratulations**\n\n" + "You successfully **HACKED** me, and are now an **Elite Haxor!**\n\n" + "When you **HACK** other Degenz, you **TAKE** their 💰$GBT.\n" + "But remember, hacks take time to recover, so use them wisely.") - do! Async.Sleep 5000 + do! Async.Sleep 3000 - let sb = StringBuilder("Here, ") + let message = + $""" +**🎁 FREE GIFTS:** +Here, I'm going to gift you: + +1. A hack - `{defaultHack.Item.Name}`, +2. A shield - `{defaultShield.Item.Name}`, +3. `{CurrencyGift} 💰 $GBT`, + +I'm also going to give you some **TEMPORARY SHIELDS** until you buy your own. +They will **ONLY** protect you from hacks for **{BeginnerProtectionHours} hrs**... + +To finish your training and collect all your **GIFTS**, +type the /arsenal command NOW""" let! completed = DbService.checkHasAchievement player.DiscordId TrainerAchievement if not completed then - sb.Append($"I'm going to gift you a hack,`{defaultHack.Item.Name}`, a shield, `{defaultShield.Item.Name}`, and `{CurrencyGift} 💰$GBT`") |> ignore - sb.Append(", you'll need this to survive\n\n") |> ignore - sb.Append($"I'm also going to give you some **TEMPORARY SHIELDS** to protect you for the next **{BeginnerProtectionHours} hours**\n\n") |> ignore - sb.AppendLine("To finish your training and collect your prizes, type the `/arsenal` command **NOW**") |> ignore - do! Async.Sleep 1000 - - do! sendFollowUpMessage ctx (sb.ToString()) + do! sendFollowUpMessage ctx message else do! sendFollowUpMessage ctx ($"Your training is now complete. If you want to buy more **HACKS & SHIELDS**, go to the <#{GuildEnvironment.channelArmory}> and type the `/buy-hack` and `/buy-shield` commands!") }) @@ -208,7 +215,7 @@ let handleArsenal (ctx : IDiscordContext) = PlayerInteractions.executePlayerActi do! Async.Sleep 2000 let rewards = [ $"{defaultHack.Item.Name} Hack" ; $"{defaultShield.Item.Name} Shield" ; $"{CurrencyGift} 💰$GBT"] - let embed = Embeds.getAchievementEmbed rewards "You completed the Training Dojo and collected some prizes." TrainerAchievement + let embed = Embeds.getAchievementEmbed rewards "You completed the Training Dojo and collected some rewards." TrainerAchievement do! ctx.FollowUp(embed) |> Async.AwaitTask let role = ctx.GetGuild().GetRole(GuildEnvironment.roleTrainee)