# phoenix.eco

> A simple mongoose economy

Latest version **0.0.1** (published 2021-02-10) · GPL -3.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install phoenix.eco
pnpm add phoenix.eco
yarn add phoenix.eco
bun add phoenix.eco
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-02-10 |
| First published | 2021-02-10 |
| Weekly downloads | 0 |
| License | GPL -3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 43.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tatsumaki |
| Maintainers | tatsumaki |
| Keywords | mongoose, economy, discord-eco, mongoose-economy |

## Links

- npm: https://www.npmjs.com/package/phoenix.eco
- npm.io page: https://npm.io/package/phoenix.eco

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2021-02-10

## README

# ✨ Phoenix.eco

 [![downloadsBadge](https://img.shields.io/npm/dt/phoenix.eco?style=for-the-badge)](https://npmjs.com/phoenix.eco)
[![versionBadge](https://img.shields.io/npm/v/phoenix.eco?style=for-the-badge)](https://npmjs.com/phoenix.eco)

 # Features
- 🔋 Global Economy
- 🔌 Simple And Easy To Get Started
- 🚀 Super-powerful
- 🕸️ User Friendly
 # 📌 Installation
```bash
npm i phoenix.eco
```
# 🔋 Examples
- Bal command
```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
 
    const member = message.mentions.members.first() || message.member;
 
    const user = await eco.find(member.id); // Get the user from the database.
 
    const embed = new MessageEmbed()
    .setTitle(`${member.user.username}'s Balance`)
    .setDescription(`Wallet: ${user.wallet}
    Bank: ${user.coinsInBank}/${user.bankSpace}
    Networth: ${user.coinsInBank + user.wallet}`);
    
    message.channel.send(embed);
    ```
    
 - Give money
 
 ```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function givecoins() {
eco.give(message.author.id, 12)

}
giveCoins()
```
- Deduct Money
 ```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function deductcoins() {
eco.deductCoins(message.author.id, 12)

}
deductCoins()
```
- Add bank space
```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function hmm() {
await eco.addbankspace(message.author.id, 12)

}
hmm()
```

- New User
```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function user() {
await eco.newUser(message.author.id)

}
user()
```
- Delete User
```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function user() {
await eco.deleteUser(message.author.id)

}
user()
```
- Leaderboard
```js
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function user() {
await eco.generateLeaderboard(10)

}
user()
```

---
_Source: https://npm.io/package/phoenix.eco · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
