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 adminBot = new DiscordClient(adminConfig)
let hackerCommands = hackerBattleBot.UseSlashCommands() let hackerCommands = hackerBattleBot.UseSlashCommands()
let jpegCommands = jpegBot.UseSlashCommands() //let jpegCommands = jpegBot.UseSlashCommands()
//let stealCommands = stealBot.UseSlashCommands() //let stealCommands = stealBot.UseSlashCommands()
let inviterCommands = inviterBot.UseSlashCommands() //let inviterCommands = inviterBot.UseSlashCommands()
let slotsCommands = slotsBot.UseSlashCommands() //let slotsCommands = slotsBot.UseSlashCommands()
let adminCommands = adminBot.UseSlashCommands() let adminCommands = adminBot.UseSlashCommands()
hackerCommands.RegisterCommands<HackerBattle.HackerGame>(guild); hackerCommands.RegisterCommands<HackerBattle.HackerGame>(guild);
jpegCommands.RegisterCommands<Store.JpegStore>(guild); //jpegCommands.RegisterCommands<Store.JpegStore>(guild);
//stealCommands.RegisterCommands<Thief.StealGame>(guild); //stealCommands.RegisterCommands<Thief.StealGame>(guild);
inviterCommands.RegisterCommands<InviteTracker.Inviter>(guild); //inviterCommands.RegisterCommands<InviteTracker.Inviter>(guild);
//slotsCommands.RegisterCommands<SlotMachine.SlotMachine>(guild); //slotsCommands.RegisterCommands<SlotMachine.SlotMachine>(guild);
adminCommands.RegisterCommands<Admin.AdminBot>(guild) adminCommands.RegisterCommands<Admin.AdminBot>(guild)

View File

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