From c3e5fafd598995edddde33a1c6daec7da10c614e Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Mon, 28 Mar 2022 23:19:51 +0700 Subject: [PATCH] Grant hacker role --- Bot/Games/Trainer.fs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Bot/Games/Trainer.fs b/Bot/Games/Trainer.fs index 816d718..43ec543 100644 --- a/Bot/Games/Trainer.fs +++ b/Bot/Games/Trainer.fs @@ -177,6 +177,9 @@ type the `/arsenal` command NOW""" let role = ctx.GetGuild().GetRole(GuildEnvironment.roleTrainee) do! ctx.GetDiscordMember().RevokeRoleAsync(role) |> Async.AwaitTask + let role = ctx.GetGuild().GetRole(GuildEnvironment.roleHacker) + do! ctx.GetDiscordMember().GrantRoleAsync(role) |> Async.AwaitTask + 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!") }) @@ -236,6 +239,9 @@ let handleArsenal (ctx : IDiscordContext) = PlayerInteractions.executePlayerActi let role = ctx.GetGuild().GetRole(GuildEnvironment.roleTrainee) do! ctx.GetDiscordMember().RevokeRoleAsync(role) |> Async.AwaitTask + let role = ctx.GetGuild().GetRole(GuildEnvironment.roleHacker) + do! ctx.GetDiscordMember().GrantRoleAsync(role) |> Async.AwaitTask + 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!") })