BudWorks / Akaei

A fun, cute, and modern Discord bot featuring pets, economy, leveling, and more. Built with Discord.js and written in Typescript.
Mozilla Public License 2.0
1 stars 0 forks source link

Create `pet` subdocument and add it to `User` schema #28

Open JustYourBud opened 2 years ago

JustYourBud commented 2 years ago

The pet subdocument will include info about a user's pet such as its name, stats, moves, etc.

Interface

pets: [{
{
  _id: number;
  name: string;
  animal: string;
  stats: {
    health: number;
    speed: number;
    strength: number;
    looting: number;
  };
  state: number;
  buff: number;
  moneyFound: number;
  battlesWon: number;
  moves: [];
}