New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ogmatrix

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ogmatrix

A NPM Package for your Discord Bot

latest
npmnpm
Version
1.1.52
Version published
Maintainers
1
Created
Source

🪐 PARTNER: 🪐

Discord BotList

View discord-botlist.eu - your Discord Bot List! We give you the availability to apply your bot and give your bot a page on our website.

discord website

❓ ogmatrix

A simple api to configure and improve youre Discord Bot.

🌸Latest updates:

18th March => README Update.

📝 Package Index

Installation

First you have to install NodeJS. Then you can install the Package with NPM:

$ npm install ogmatrix

❗️❓ Usages

  • Giveaways - Giveaway Client, easy way to manage your giveaways

✈ Importing

// Using Node.js `require()`
const ogmatrix = require("ogmatrix");

// Using ES6 imports
import ogmatrix from "ogmatrix";

🙋‍♂️ Support

If you need help with the NPM Package you can easily join my Discord Server, click here

Usages

--

GiveawayClient

Initialising the client

Create a file named "giveaway.js" and put this in it:

const Discord = require('discord.js')
const client = new Discord.Client();
const { GiveawayClient } = require('ogmatrix');

const giveaway = new GiveawayClient(client, {
  mongoURI: "mongoURL",
  emoji: "Emoji",
  defaultColor: "#FFF"
});

module.exports = giveaway;

Methods

start

giveaway.start(
    {
        channel: message.mentions.channels.first(),
        time: ms(time),
        hostedBy: message.author,
        winners: parseInt(args[3]),
        prize: args.slice(4).join(" ")
    }
)

end

// args[1] will be the Message ID!
giveaway.end(args[1], true)

reroll

// args[1] will be the Message ID!
giveaway.reroll(args[1]).catch((err) => message.channel.send(err));

getCurrentGiveaways

giveaway.getCurrentGiveaways(true, false, message).then(data => {
  message.channel.send(data);
});

removeCachedGiveaways

giveaway.removeCachedGiveaways(true, message.guild.id)

Keywords

ogmatrix

FAQs

Package last updated on 24 Mar 2021

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