Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions apps/idlebiz/src/commands/game/building.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandOptionType, ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "building",
description: "View a building or purchase buildings",
type: ApplicationCommandType.ChatInput,
options: [
{
name: "purchase",
description: "Purchase a building",
type: ApplicationCommandOptionType.Subcommand,
options: [
{
name: "building",
description: "The building to purchase",
type: ApplicationCommandOptionType.String,
required: true,
},
],
},
{
name: "info",
description: "Get information about a building",
type: ApplicationCommandOptionType.Subcommand,
options: [
{
name: "building",
description: "The building to get information about",
type: ApplicationCommandOptionType.String,
required: true,
},
],
},
],
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});
18 changes: 18 additions & 0 deletions apps/idlebiz/src/commands/game/buildings.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "buildings",
description: "Show what buildings you own",
type: ApplicationCommandType.ChatInput,
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});
18 changes: 18 additions & 0 deletions apps/idlebiz/src/commands/game/collect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "collect",
description: "Collect the materials produced by your buildings",
type: ApplicationCommandType.ChatInput,
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});
33 changes: 33 additions & 0 deletions apps/idlebiz/src/commands/game/material.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandOptionType, ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "material",
description: "View info about a specific material",
type: ApplicationCommandType.ChatInput,
options: [
{
name: "info",
description: "Get information about a material",
type: ApplicationCommandOptionType.Subcommand,
options: [
{
name: "material",
description: "The material to get information about",
type: ApplicationCommandOptionType.String,
required: true,
},
],
},
],
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});
18 changes: 18 additions & 0 deletions apps/idlebiz/src/commands/game/materials.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "materials",
description: "View all materials you have in your inventory",
type: ApplicationCommandType.ChatInput,
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});
58 changes: 58 additions & 0 deletions apps/idlebiz/src/commands/game/vendor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { createCommand } from "@/lib/CommandHandler";
import { ApplicationCommandOptionType, ApplicationCommandType } from "discord.js";

export default createCommand({
metadata: {
options: {
name: "vendor",
description: "Buy or sell materials to the vendor",
type: ApplicationCommandType.ChatInput,
options: [
{
name: "buy",
description: "Buy materials from the vendor",
type: ApplicationCommandOptionType.Subcommand,
options: [
{
name: "material",
description: "The material to buy",
type: ApplicationCommandOptionType.String,
required: true,
},
{
name: "amount",
description: "The amount to buy",
type: ApplicationCommandOptionType.Integer,
required: true,
},
],
},
{
name: "sell",
description: "Sell materials to the vendor",
type: ApplicationCommandOptionType.Subcommand,
options: [
{
name: "material",
description: "The material to sell",
type: ApplicationCommandOptionType.String,
required: true,
},
{
name: "amount",
description: "The amount to sell",
type: ApplicationCommandOptionType.Integer,
required: true,
},
],
},
],
},
enabled: false,
},
chatInput: async (client, interaction) => {
await interaction.reply({
content: "Command not implemented yet.",
});
},
});