🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@quick.eco/mongo

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quick.eco/mongo

Mongodb manager for Quick.eco

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
2
Created
Source

Quick.eco Mongo Manager

Mongo Manager for Quick.eco

Quick.Eco

Quick Example

const { EconomyManager } = require('quick.eco');
const { Client } = require('discord.js');
const client = new Client();
const eco = new EconomyManager({
    adapter: 'mongo'
    adapterOptions: {
        collection: 'money', // => Collection Name
        uri: 'mongodb://localhost/quickeco' // => Mongodb uri
    }
});

client.on('ready', () => console.log('connected'));

client.on('message', (message) => {
    if(message.author.bot) return;
    if(!message.guild) return;

    if(message.content === '!bal') {
        let money = eco.fetchMoney(message.author.id);
        return message.channel.send(`${message.author} has ${money} coins.`);
    }
})

Adapter Options

  • Collection - Mongodb collection name
  • uri - Mongodb URI
  • additionalOptions - Additional Options to pass into mongoose
  • Discord Support Server
  • Quick.eco
  • Mongoose

© Snowflake Studio ❄️ - 2020

Keywords

quick.eco

FAQs

Package last updated on 31 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts