UNPKG

discord-gamecord-ptbr

Version:

Discord-Gamecord-Ptbr Γ© um fork da package discord-gamecord um pacote poderoso com uma coleΓ§Γ£o de minigames para seu bot discord

50 lines (44 loc) β€’ 1.38 kB
# **🐟 Fishy** ```js const { Fishy } = require('discord-gamecord'); let player = {}; const Game = new Fishy({ message: message, isSlashGame: false, player: player, embed: { title: 'Fishy Inventory', color: '#5865F2' }, fishes: { junk: { emoji: 'πŸ”§', price: 5 }, common: { emoji: '🐟', price: 10 }, uncommon: { emoji: '🐠', price: 20 }, rare: { emoji: '🐑', price: 50 } }, fishyRodPrice: 10, catchMessage: 'You caught a {fish}. You paid {amount} for the fishing rod.', sellMessage: 'You sold {amount}x {emoji} {type} items for a total of {price}.', noBalanceMessage: 'You don\'t have enough balance to rent a fishing rod.', invalidTypeMessage: 'Fish type can only be junk, common, uncommon or rare.', invalidAmountMessage: 'Amount must be between 0 and fish max amount.', noItemMessage: 'You don\'t have any of this item in your inventory.' }); // Catch Fish Game.catchFish(); Game.on('catchFish', fishy => { player = fishy.player }); // Sell Fish Game.sellFish(fishType, amount); Game.on('sellFish', fishy => { player = fishy.player }); // FishType: junk || common || uncommon || rare // PLayer Inventory Game.fishyInventory(); ``` ## **πŸ”– Player** ```js { id: 'discord user id', fishes: { junk: 0, common: 0, uncommon: 0, rare: 0 }, balance: 50 } ```