Disable commands

This commit is contained in:
Joseph Ferano 2022-05-14 10:05:54 +07:00
parent 231c559b1d
commit d1fac0457e
2 changed files with 10 additions and 10 deletions

View File

@ -59,16 +59,16 @@ let slotsBot = new DiscordClient(slotsConfig)
let adminBot = new DiscordClient(adminConfig)
let hackerCommands = hackerBattleBot.UseSlashCommands()
let jpegCommands = jpegBot.UseSlashCommands()
//let jpegCommands = jpegBot.UseSlashCommands()
//let stealCommands = stealBot.UseSlashCommands()
let inviterCommands = inviterBot.UseSlashCommands()
let slotsCommands = slotsBot.UseSlashCommands()
//let inviterCommands = inviterBot.UseSlashCommands()
//let slotsCommands = slotsBot.UseSlashCommands()
let adminCommands = adminBot.UseSlashCommands()
hackerCommands.RegisterCommands<HackerBattle.HackerGame>(guild);
jpegCommands.RegisterCommands<Store.JpegStore>(guild);
//jpegCommands.RegisterCommands<Store.JpegStore>(guild);
//stealCommands.RegisterCommands<Thief.StealGame>(guild);
inviterCommands.RegisterCommands<InviteTracker.Inviter>(guild);
//inviterCommands.RegisterCommands<InviteTracker.Inviter>(guild);
//slotsCommands.RegisterCommands<SlotMachine.SlotMachine>(guild);
adminCommands.RegisterCommands<Admin.AdminBot>(guild)

View File

@ -250,11 +250,11 @@ let handleStealButton _ (event : ComponentInteractionCreateEventArgs) =
type StealGame() =
inherit ApplicationCommandModule ()
[<SlashCommand("steal", "Steal some money from another player, but you might go to prison if caught")>]
member this.Steal (ctx : InteractionContext,
[<Option("amount", "How much you would like to steal")>] amount : int64,
[<Option("target", "Who do you want to steal from?")>] target : DiscordUser) =
// [<SlashCommand("steal", "Steal some money from another player, but you might go to prison if caught")>]
// member this.Steal (ctx : InteractionContext,
// [<Option("amount", "How much you would like to steal")>] amount : int64,
// [<Option("target", "Who do you want to steal from?")>] target : DiscordUser) =
// enforceChannel (DiscordInteractionContext ctx) (steal target amount)
steal target (int amount) (DiscordInteractionContext ctx)
// steal target (int amount) (DiscordInteractionContext ctx)