Skip to content

Latest commit

 

History

History
50 lines (44 loc) · 1.34 KB

Fishy.md

File metadata and controls

50 lines (44 loc) · 1.34 KB

🐟 Fishy

const { Fishy } = require('falgames');
let player = {};

const Game = new Fishy({
  message: message,
  isSlashGame: false,
  player: player,
  embed: {
    title: 'Fishy Inventory',
    color: '#551476'
  },
  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

{
  id: 'discord user id',
  fishes: { junk: 0, common: 0, uncommon: 0, rare: 0 },
  balance: 50
}