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.
A simple api to configure and improve youre Discord Bot.
18th March => README Update.
First you have to install NodeJS. Then you can install the Package with NPM:
$ npm install ogmatrix
- Giveaways - Giveaway Client, easy way to manage your giveaways
// Using Node.js `require()`
const ogmatrix = require("ogmatrix");
// Using ES6 imports
import ogmatrix from "ogmatrix";
If you need help with the NPM Package you can easily join my Discord Server, click here
--
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;
giveaway.start(
{
channel: message.mentions.channels.first(),
time: ms(time),
hostedBy: message.author,
winners: parseInt(args[3]),
prize: args.slice(4).join(" ")
}
)
// args[1] will be the Message ID!
giveaway.end(args[1], true)
// args[1] will be the Message ID!
giveaway.reroll(args[1]).catch((err) => message.channel.send(err));
giveaway.getCurrentGiveaways(true, false, message).then(data => {
message.channel.send(data);
});
giveaway.removeCachedGiveaways(true, message.guild.id)