This package has been deprecated

Author message:

The_package_is_no_longer_maintained

phoenix.eco
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Phoenix.eco

downloadsBadge versionBadge

Features

  • 🔋 Global Economy
  • 🔌 Simple And Easy To Get Started
  • 🚀 Super-powerful
  • 🕸️ User Friendly

📌 Installation

npm i phoenix.eco

🔋 Examples

  • Bal command
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
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
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
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function user() {
await eco.newUser(message.author.id)

}
user()
  • Delete User
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function user() {
await eco.deleteUser(message.author.id)

}
user()
  • Leaderboard
const { Client } = require('phoenix.eco')
const eco = new Client('mongodb://localhost/phoenixeco')
async function user() {
await eco.generateLeaderboard(10)

}
user()

Package Sidebar

Install

npm i phoenix.eco

Weekly Downloads

1

Version

0.0.1

License

GPL -3.0

Unpacked Size

44.8 kB

Total Files

6

Last publish

Collaborators

  • tatsumaki