Disable commands
This commit is contained in:
parent
231c559b1d
commit
d1fac0457e
10
Bot/Bot.fs
10
Bot/Bot.fs
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user