From 746dcbbc87ef39d1e071ee2efcfc7f163826c4d5 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 10 Mar 2022 22:56:20 +0700 Subject: [PATCH] Delays and text --- Bot/Embeds.fs | 2 +- Bot/Games/Trainer.fs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Bot/Embeds.fs b/Bot/Embeds.fs index dffcb9d..d86644b 100644 --- a/Bot/Embeds.fs +++ b/Bot/Embeds.fs @@ -140,7 +140,7 @@ let getAchievementEmbed rewards description achievement = .WithColor(DiscordColor.Gold) // .AddField("Achievement", $"🏆 {achievement}") .AddField("Achievement", $"{achievement}", true) - .AddField("Rewards", rewards |> String.concat "\n", true) + .AddField("Gifts", rewards |> String.concat "\n", true) // TODO: Once we add another achievement, fix this .WithImageUrl("https://s10.gifyu.com/images/MasterTraining_Degenz.gif")) .AsEphemeral(true) \ No newline at end of file diff --git a/Bot/Games/Trainer.fs b/Bot/Games/Trainer.fs index c94a3ae..e8b3f94 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 2000 + do! Async.Sleep 1000 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 3000 do! sendMessage' $"❌ HACKING FAILED!\n\n{playerName} defended hack from <@{Sensei.Id}>!" - do! Async.Sleep 2000 + do! Async.Sleep 1500 do! sendFollowUpMessageWithButton ctx (handleDefenseMsg defaultHack.Item.Name) } |> Async.StartAsTask :> Task @@ -168,7 +168,7 @@ 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""" +type the `/arsenal` command NOW""" let! completed = DbService.checkHasAchievement player.DiscordId TrainerAchievement if not completed then @@ -215,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 rewards." TrainerAchievement + let embed = Embeds.getAchievementEmbed rewards "You completed the Training Dojo and collected some gifts." TrainerAchievement do! ctx.FollowUp(embed) |> Async.AwaitTask let role = ctx.GetGuild().GetRole(GuildEnvironment.roleTrainee)