A utility package for Discord Bots!

Overview

Nuggies

A utility package for Discord Bots!

NPM Info

For errors and questions you can join our support server

Installation download

Table of content:

- installation

- database connect

- Giveaways

- Button Roles

- Dropdown Roles

- handle interactions

- applications

npm:

npm i nuggies

yarn:

yarn add nuggies

connect to database

features like giveaways require a database connection, you can connect to database using

Nuggies.connect(mongodburi)

params

uri - the mongoDB connection string

Giveaways

click here for giveaways bot code using nuggies package

Preview

Usage hmmm

connect

You can connect to the mongoDB database

const Nuggies = require('nuggies');
Nuggies.connect(mongURI);

params

mongoURI: the mongo URI

Create

You can create giveaways with .create

Example code can be found below

       const Nuggies = require('nuggies')
       Nuggies.giveaways.create({
           message: message,
           prize: 'test',
           host: message.author.id,
           winners: 1,
           endAfter: '10s',
           requirements: { enabled: false },
           channel: message.channel.id,
       });

options

message: Discord Message

prize: String, prize of the giveaway

host: the host of the giveaway

winners: Number, the winners count

endAfter: String, The time after the giveaway will end

requirements: Object, the requirements for the giveaway. example: requirements: {enabled: true, roles: ['role']}

channel: the channel ID the embed will be sent to

drop

you can create drops with .drop, first to click the button gets the win!

example:

Nuggies.giveaways.drop({
  		message: message,
  		prize: 'test',
  		channel: message.channel.id,
  		host: message.author.id,
  	});

options

message: Discord Message

prize: String, prize of the giveaway

host: the host of the giveaway

channel: The channel where the drop will be sent

End

End is a function which will help you end giveaways easily

You can end giveaways with .end

   Nuggies.giveaways.end(message, data, giveawaymsg);

params

message: Discord Message

data: data from the database, can be obtained by using the .getByMessageID property

giveawaymsg: fetched giveaway message

Reroll

You can reroll giveaways easily with .reroll

You can simply use this function by writing a line of code.

    (async () => {   
    const win = await Nuggies.giveaways.reroll(client, messageID);
    }()

params

client: The Discord Client

messageID: The message ID of the giveaway

startTimer

you can start the timer again after restart, note that it automatically starts the timer when the giveaway start.

You can simply use this function by writing a line of code.

    await Nuggies.giveaways.startTimer(message, data);

params

message: Discord Message

data: mongoose document, can be obtained by using .getByMessageID

GotoGiveaway

returns a url button leading to the giveaway.

    (async () => {   
    const button = await Nuggies.giveaways.gotoGiveaway(data);
    }()

params:

data: mongoose document, can be obtained by using .getByMessageID

getByMessageID

This gets the mongoose document for the giveaway

   (async () => {   
   const doc = await Nuggies.giveaways.getByMessageID(messageID);
   }()

params

messageID: the message ID of the giveaway

startAgain

starts the giveaway again after restart, put this in ready event to start All the giveaways again.

Nuggies.giveaways.startAgain(client)

params

client: Discord Client

Customize Messages

customize the messages that users see

const Nuggies = require('nuggies');
 Nuggies.giveaways.Messages(client, {
   dmWinner: true,
   giveaway: '🎉🎉 **GIVEAWAY MOMENT** 🎉🎉',
   giveawayDescription: '🎁 Prize: **{prize}**\n🎊 Hosted by: {hostedBy}\n⏲️ Winner(s): \`{winners}\`\n\nRequirements: {requirements}',
   endedGiveawayDescription : '🎁 Prize: **{prize}**\n🎊 Hosted by: {hostedBy}\n⏲️ Winner(s): {winners}',
   giveawayFooterImage: 'https://cdn.discordapp.com/emojis/843076397345144863.png',
   winMessage: '{winners} you won {prize} Congratulations! Hosted by {hostedBy}',
   rerolledMessage: 'Rerolled! {winner} is the new winner of the giveaway!', // only {winner} placeholder
   toParticipate: '**Click the Enter button to enter the giveaway!**',
   newParticipant: 'You have successfully entered for this giveaway', // no placeholders | ephemeral
   alreadyParticipated: 'you already entered this giveaway!', // no placeholders | ephemeral
   nonoParticipants: 'There are not enough people in the giveaway!', // no placeholders
   nonoRole: 'You do not have the required role(s)\n{requiredRoles}\n for the giveaway!', // only {requiredRoles} | ephemeral
   dmMessage: 'You have won a giveaway in **{guildName}**!\nPrize: [{prize}]({giveawayURL})',
   noWinner: 'Not enough people participated in this giveaway.', // no {winner} placerholder
   alreadyEnded: 'The giveaway has already ended!', // no {winner} placeholder
   dropWin: '{winner} Won The Drop!!' // only {winner} placeholder
})

params

dmWinner - Boolean - If bot should dm the winners of giveaway

giveaway - String - Title text of giveaway message

giveawayDescription - String - Giveaway embed description

endedGiveawayDescription - String - Ended giveaway embed description

giveawayFooterImage - String - Image/Gif in embed footer

winMessage - String - Message to send when winner is declared

rerolledMessage - String - Message to send when giveaway is rerolled

toParticipate - String - Instruction on how to participate the giveaway

newParticipant - String - Ephemeral message that participant sees when they participate

alreadyParticipated - String - Ephemeral message that participant sees if they have already participated

nonoParticipants - String - Message when there are not enough participants for giveaway

nonoRole - String - Ephemeral message when participants doesn't have required roles

dmMessage - String - Message to send to winners of giveaway (only works in dmWinner is true)

noWinner - String - Message when giveaway is ended/rerolled and there are not enough participants

alreadyEnded - String - If giveaway is already ended

dropWin - String - Message sent when drop winner is declared

Placeholders - {guildName}, {prize}, {giveawayURL}, {hostedBy}, {winners}, {requiredRoles}(only works for nonoRole)



Button Roles

click here for fully functional button-roles bot

constructor

constructor. use .setrole() on it to create buttons

const something = new Nuggies.buttonroles().addrole({
  color: 'red', 
  label: 'test', 
  role: '781061040514269185',
  });

options

color: the button color. Optional. Defaults to grey

label: Button label

role: role that would be added on click

emoji: ID of the emoji on the button, optional.

create

creates the button roles

Nuggies.buttonroles.create({ 
  message: message, 
  role: something,  /*buttonroles constructor*/ 
  content: new Discord.MessageEmbed().setTitle('xd').setDescription('xdxd') });

options

message: Discord Message

role: The object recieved from the buttonroles constructor.

content: content, can be a string or a Discord Embed

dropdown roles

constructor. use .setrole() on it to create dropdown options

const something = new Nuggies.dropdownroles().addrole({ 
  label: 'test', 
  role: 'roleID',
  emoji: 'emojiID'
  });

options

label: dropdown option label

role: role that would be added on click

emoji: ID of the emoji on the dropdown option, optional.

create

creates the dropdown roles

Nuggies.dropdownroles.create({ 
  message: message, 
  role: role, /*dropdownroles constructor*/ 
  content: new Discord.MessageEmbed().setTitle('xd').setDescription('xdxd') });

handle interactions

features including buttons and dropdown menus require certain functions to handle the interaction

handleInteractions

Nuggies.handleInteractions(client)

params

client: Discord Client

Applications

Applications help you make your life easier with different types of applications you might have to handle! Here's how you can implement it
click here for a fully function applications bot

setup

a pre made template for your bot.

Nuggies.applications.setup(message)

params

message: message callback from message event

addApplication

Creates a application for which anyone can make a response.

Nuggies.applications.addApplication(
  { guildID, questions, name, emoji, channel, description, label, maxApps, cooldown, responseChannelID },
)

params

guildID: The ID of the guild in which the application is to be added questions: An array of questions to be asked in DM, Example: js ['How old are you?', 'How much time would you devote to it?']; name: The name of the application\

emoji: The emoji to be put in the menu

channel: The ID of the channel in which the message is to be sent

description: The description of the application

label: The label of the application in the menu

maxApps: The maximum amount of application 1 can create before it gets accepted/declined

cooldown: The cooldown before creating another response

responseChannelID: The channel to send responses in

deleteApplication

Deletes an application for the guild

Nuggies.applications.deleteapplication({ guildID, name });

params

guildID: The ID of the guild name: The name of the application to remove

create

Creates/Initializes the application system for the guild

Nuggies.applications.create({ guildID, content, client })

params

guildID: The ID of the guild to be created in content: The content of message to be sent in the channel client: The discord.js client used

getDataByGuild

Gets the data from database for you

Nuggies.applications.getDataByGuild(guildID);

params

guildID: The ID of the guild

License

Nuggies npm licensed under the terms of Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International ("CC-BY-NC-SA-4.0"). Commercial use is not allowed under this license. This includes any kind of revenue made with or based upon the software, even donations.

The CC-BY-NC-SA-4.0 allows you to:

  • Share -- copy and redistribute the material in any medium or format
  • Adapt -- remix, transform, and build upon the material

Under the following terms:

  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial — You may not use the material for commercial purposes.
  • ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

More information can be found here.

Comments
  • Buttons not showing

    Buttons not showing

    The Buttons of Discord are not showing in Embed

    Hey there. I was playing around with this package and this ashtonished me. But i have a problem which is that the buttons of the embed are not showing. Here is a quick screenshot

    image

    Expected behavior The buttons are supposed to show here in the embed

    Screenshots image

    Desktop (please complete the following information):

    • OS: Windows 10
    • Package Version: 1.2.6
    • Node Version: 14

    Additional context Nothing else. Love the Package <3. Keep on the work

    bug good first issue 
    opened by hasib-rashid 13
  • Added slash command support & custom messages to other stuff

    Added slash command support & custom messages to other stuff

    CHANGES:

    Giveaways- - Nuggies.giveaways.create({ message, prize, hostID, winners, endAfter, requirements = { enabled: false }, channelID }) + Nuggies.giveaways.create(client, { prize, hostID, winners, endAfter, requirements = { enabled: false }, channel })

    - Nuggies.giveaways.drop({ message, prize, channelID, hostID }) + Nuggies.giveaways.drop(client, { prize, channel, hostID })

    Button Roles- - Nuggies.buttonroles.create({ message, role, content, channelID }) + Nuggies.buttonroles.create(client, { content, role, channelID })

    DropDown Role- - Nuggies.dropdownroles.create({ message, role, content, channelID }) + Nuggies.dropdownroles.create(client, { content, role, channelID })

    Custom Messages Function- - Nuggies.giveaways.Messages(client, {}); +https://sourceb.in/w2BsAi6EZM it big

    there can be some stuff that I forgor to mention

    enhancement 
    opened by ChopChoP534 11
  • Type Error: Cannot read property 'send' of undefined

    Type Error: Cannot read property 'send' of undefined

    Describe the bug Type Error:
    message.guild.members.cache.get(user).send(dmEmbed); ^

    TypeError: Cannot read property 'send' of undefined at \nuggies\src\classes\giveaways.js:109:43

    To Reproduce Simply just run a giveaway

    Expected behavior Supposed to run smoothly

    Desktop -Windows

    • Latest Version
    • Node Version - v16.4.0

    Additional context Was working fine a day ago, then I think after a new update in giveaways, a bug happened

    bug help wanted good first issue 
    opened by skibop 7
  • Read description

    Read description

    You can not access the object key, if the property itselfs is undefined, however, i use this in v13 and i still get the error, hosting a bot now on repl because i can not find a good hosting, and can not access the node_modules to fix it myself.

    bug help wanted 
    opened by face-hh 5
  • Fixed the giveaway redirect link.

    Fixed the giveaway redirect link.

    Discord had updated the format of message links. So I updated it for you guys.

    Summary

    Updated giveaway.js

    Extra details

    Format of message has changed from https://discord.com/${msg.guild.id}/${msg.channel.id}/${data.messageID} to https://discord.com/channels/${msg.guild.id}/${msg.channel.id}/${data.messageID}

    enhancement waiting 
    opened by Monochromish 4
  • New Feature

    New Feature

    Summary

    Added a new feature, paginates an array of embeds with 2 buttons!

    created functions folder inside of src folder for functions

    Edited index file for the new feature / function

    Extra details

    I added an example of the readME

    References

    video / gif example

    Link: https://cdn.discordapp.com/attachments/840619319921737750/870009196173738074/2021-07-28_14-25-11.mp4

    wontfix 
    opened by SuperSweatyTejas 4
  • build(deps-dev): bump discord.js from 14.0.2 to 14.7.1

    build(deps-dev): bump discord.js from 14.0.2 to 14.7.1

    Bumps discord.js from 14.0.2 to 14.7.1.

    Release notes

    Sourced from discord.js's releases.

    14.7.1

    Bug Fixes

    14.7.0

    Bug Fixes

    • MessageMentions: Add InGuild generic (#8828) (f982803)
    • Activity: Fix equals() not checking for differing emoji (#8841) (7e06f68)
    • Fixed react/astro/guide/discord.js build, updated dependencies, fix crawlvatar (#8861) (d0c8256)
    • escapeMarkdown: Fix double escaping (#8798) (d6873b7)
    • Transfomers: Call .toJSON in toSnakeCase (#8790) (017f9b1)
    • Censor token in debug output (#8764) (53d8e87)
    • Pin @​types/node version (9d8179c)

    Documentation

    Features

    Refactor

    • Embed: Use embedLength function from builders (#8735) (cb3826c)

    14.6.0

    Bug Fixes

    • ClientOptions: Make ClientOptions#intents returns an IntentsBitField (#8617) (4c2955a)
    • Correctly construct a builder (#8727) (e548e6a)
    • Components: Error with unknown components (#8724) (6fd331d)
    • Client: Don't auth for webhook fetches with token (#8709) (01d75c8)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 3
  • fixed amari req

    fixed amari req

    Summary

    Give an overview Amari reqs were a bit weird fixed that

    Extra details

    Give extra details to describe the changes wamari req wasnt shown in embed and neither amari level nor wamari req not being met stopped user from entering so fixed that.

    References

    Text

    Related Issue

    Issue Name

    Checks

    • [x] Does the bot package work as intended?
    bug good first issue 
    opened by Lightninbolt986 3
  • People won't be able to enter giveaways when the bot would be down.

    People won't be able to enter giveaways when the bot would be down.

    Description

    Discord still needs to improve buttons as if the bot would be down, people won't be able to enter giveaway, it would just reply with 'this interaction failed'. It would be better if you could also add reactions support in the package.

    misc 
    opened by Monochromish 3
  • Bump discord-buttons from dev to 4.0.0

    Bump discord-buttons from dev to 4.0.0

    Bumps discord-buttons from dev to 4.0.0. This release includes the previously tagged commit.

    Release notes

    Sourced from discord-buttons's releases.

    4.0.0

    Changelog ✨

    • Added MessageMenu, MessageMenuOption, MenuCollector. (64a8c30) (8512bc5) (8c095b4)
    • Supports Embeds + Components.
    • Added InteractionReply manager. (9abf6da)
    • Fixed Cannot send an Empty Message Bug.
    • Fixed Typings. (7f1a17b)

    Updates 🎉

    • b.defer --> b.reply.defer
    • b.think --> b.reply.think
    • b.webhook --> b.reply.webhook
    • b.reply.send('content', { type: 7 }); --> b.message.update('content');

    Thanks to @​JacProsser, @​RagnarLothbrok-Odin & @​Tolfx

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 3
  • Bump mongoose from 5.13.8 to 5.13.9

    Bump mongoose from 5.13.8 to 5.13.9

    Bumps mongoose from 5.13.8 to 5.13.9.

    Changelog

    Sourced from mongoose's changelog.

    5.13.9 / 2021-09-06

    • fix(populate): avoid setting empty array on lean document when populate result is undefined #10599
    • fix(document): make depopulate() handle populated paths underneath document arrays #10592
    • fix: peg @​types/bson version to 1.x || 4.0.x to avoid stubbed 4.2.x release #10678
    • fix(index.d.ts): simplify UpdateQuery to avoid "excessively deep and possibly infinite" errors with extends Document and any #10647
    • fix(index.d.ts): allow specifying weights as an IndexOption #10586
    • fix: upgrade to mpath v0.8.4 re: security issue #10683

    6.0.4 / 2021-09-01

    • fix(schema): handle maps of maps #10644
    • fix: avoid setting defaults on insert on a path whose subpath is referenced in the update #10624
    • fix(index.d.ts): simplify UpdateQuery to avoid "excessively deep and possibly infinite" errors with extends Document and any #10617
    • fix(index.d.ts): allow using type: [documentDefinition] when defining a doc array in a schema #10605
    • docs: remove useNewUrlParser, useUnifiedTopology, some other legacy options from docs #10631 #10632
    • docs(defaults): clarify that setDefaultsOnInsert is true by default in 6.x #10643
    • test: use async/await instead of co #10633 AbdelrahmanHafez

    6.0.3 / 2021-08-30

    • fix: handle buffering with find() now that find() no longer accepts a callback #10639 #10634 #10610

    6.0.2 / 2021-08-26

    • fix(query): handle find() when buffering on initial connection #10610
    • fix(populate): get doc schema using $__schema to avoid paths named schema #10619
    • docs: use async/await in the quickstart #10610
    • docs: fix links to guide, schematypes, connections in v5.x docs #10607
    • docs: add link to 6.x migration guide to schemas guide #10616
    • docs: add migration to 6.x in Migration Guides section #10618 HunterKohler
    • docs: fix missing URL part on layout.pug #10622 ItsLhun

    6.0.1 / 2021-08-25

    • fix(aggregate): allow calling Model.aggregate() with options #10604 amitbeck
    • fix(index.d.ts): add instance, options, schema properties to SchemaType class #10609
    • fix(index.d.ts): allow querying array of strings by string #10605
    • fix(index.d.ts): allow using type: SchemaDefinitionProperty in schema definitions #10605
    • fix(index.d.ts): remove strictQuery option #10598 thiagokisaki
    • docs: add link to migration guide in changelog #10600 AbdelrahmanHafez
    • docs: fix docs build for v5.x docs #10607
    • docs(query): add note about strict option to setOptions() #10602

    6.0.0 / 2021-08-24

    • Follow the migration guide to get a list of all breaking changes in v6.0.
    • BREAKING CHANGE: remove the deprecated safe option in favor of write concerns
    • fix: upgrade to mongodb driver 4.1.1
    • fix: consistently use $__parent to store subdoc parent as a property, and $parent() as a getter function #10584 #10414

    ... (truncated)

    Commits
    • 07946be chore: release v5.13.9
    • 264554f fix: upgrade to mpath v0.8.4 re: security issue
    • fc5fc7e fix: peg @​types/bson version to 1.x || 4.0.x to avoid stubbed 4.2.x release
    • 1f28237 fix(populate): avoid setting empty array on lean document when populate resul...
    • 1dc9b45 style: fix lint
    • 3f7dfc5 fix(document): make depopulate() handle populated paths underneath document...
    • b34d1d5 fix(index.d.ts): simplify UpdateQuery to avoid "excessively deep and possibly...
    • 2a3399e docs: another layout fix for 5.x docs
    • 5bf3c29 chore: update makefile again
    • 191678c chore: update makefile re: #10607
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
Releases(v3.0.0)
  • v3.0.0(Sep 28, 2021)

    Nuggies now supports slash commands! both in v12 and v13!

    changes

    giveaways!

    - Nuggies.giveaways.create({ message, prize, hostID, winners, endAfter, requirements: { enabled: false }, channelID })
    + Nuggies.giveaways.create(client, { prize, hostID, winners, endAfter, requirements: { enabled: false }, channel })
    
    - Nuggies.giveaways.drop({ message, prize, channelID, hostID })
    + Nuggies.giveaways.drop(client, { prize, channel, hostID })
    

    dropdown roles!

    - Nuggies.dropdownroles.create({ message, role, content, channelID })
    + Nuggies.dropdownroles.create(client, { content, role, channelID })
    

    button roles!

    - Nuggies.buttonroles.create({ message, role, content, channelID })
    + Nuggies.buttonroles.create(client, { content, role, channelID })
    

    Customizability!

    - Nuggies.giveaways.Messages(client, {});
    + Nuggies.Messages(client, {
    + giveawayOptions: {
    +	dmWinner: true,
    +	giveaway: '🎉🎉 **GIVEAWAY MOMENT** 🎉🎉',
    +	giveawayDescription: '🎁 Prize: **{prize}**\n🎊 Hosted by: {hostedBy}\n⏲️ Winner(s): `{winners}`\n\nRequirements: {requirements}',
    +	endedGiveawayDescription: '🎁 Prize: **{prize}**\n🎊 Hosted by: {hostedBy}\n⏲️ Winner(s): {winners}',
    +	giveawayFooterImage: 'https://cdn.discordapp.com/emojis/843076397345144863.png',
    +	winMessage: '{winners} you won {prize} Congratulations! Hosted by {hostedBy}',
    +	rerolledMessage: 'Rerolled! {winner} is the new winner of the giveaway!', // only {winner} placeholder
    +	toParticipate: '**Click the Enter button to enter the giveaway!**',
    +	newParticipant: 'You have successfully entered for this giveaway', // no placeholders | ephemeral
    +	alreadyParticipated: 'you already entered this giveaway!', // no placeholders | ephemeral
    +	noParticipants: 'There are not enough people in the giveaway!', // no placeholders
    +	noRole: 'You do not have the required role(s)\n{requiredRoles}\n for the giveaway!', // only {requiredRoles} | ephemeral
    +	dmMessage: 'You have won a giveaway in **{guildName}**!\nPrize: [{prize}]({giveawayURL})',
    +	noWinner: 'Not enough people participated in this giveaway.', // no {winner} placerholder
    +	alreadyEnded: 'The giveaway has already ended!', // no {winner} placeholder
    +	dropWin: '{winner} Won The Drop!!', // only {winner} placeholder
    + },
    + buttonRolesOptions: { // {role} placeholder only
    + 	addMessage: 'I have added the {role} role to you!',
    + 	removeMessage: 'I have removed the {role} role from you!',
    + }
    + dropdownRolesOptions: { // {role} placeholder only
    + 	addMessage: 'I have added the {role} role to you!',
    + 	removeMessage: 'I have removed the {role} role from you!',
    + }
    + })
    

    Examples

    slash giveaways slash button roles slash dropdown roles slash applications

    Source code(tar.gz)
    Source code(zip)
  • v2.0.6(Sep 19, 2021)

    bug fixes

    • fixed all bugs in giveaways, stable and wont be touched.
    • fixed bugs with "customMessages of undefined" error, can be fixed via using Messages function
    • readme changes
    • dropdown roles errors fixed
    • button roles fixed
    Source code(tar.gz)
    Source code(zip)
  • 2.0.0(Aug 23, 2021)

    NUGGIES SUPPORTS V13

    After about 1-2 week(s) of testing and coding, nuggies package finally supports discord.js v13! There were no new features in this update. We will also get typings soon! Here are some changes that were made to the way the package worked:

    NPM will no longer install discord.js or discord-buttons you will have to install it yourself. Some bugs were fixed in giveaways, and applications

    As stated above, no new features were added

    The code related to nuggies will be same as previous, that is, the code as per user's perspective does not change only the package's code changes

    If anything does not work(errors, bugs, etc.) you can report it to us in #✨〢npm-support :)

    That's all for this update people, until next time then 💃

    Source code(tar.gz)
    Source code(zip)
  • 1.3.6(Aug 6, 2021)

    bug fixes! last v12 release.

    • fixed applications running one behind
    • button roles customizable with buttonroles.Message function
    • dropdown roles customizable with dropdownroles.Message function
    • no more message of undefined errors on startAgain function
    • drops not working fixed
    Source code(tar.gz)
    Source code(zip)
  • 1.3.3(Jul 29, 2021)

    bug fixes:

    • fixed giveaways not working without Messages function
    • dropdowns example repo outdated, fixed.
    • giveaways example repo outdated, fixed.
    • button roles not working fixed
    • button roles example repo outdated, fixed.

    you are sus

    Source code(tar.gz)
    Source code(zip)
  • 1.3.0(Jul 26, 2021)

    handle interactions

    features including buttons and dropdown menus require certain functions to handle the interaction

    handleInteractions

    Nuggies.handleInteractions(client)
    

    params

    client: Discord Client

    Applications

    Applications help you make your life easier with different types of applications you might have to handle! Here's how you can implement it
    click here for a fully function applications bot

    setup

    a pre made template for your bot.

    Nuggies.applications.setup(message)
    

    params

    message: message callback from message event

    addApplication

    Creates a application for which anyone can make a response.

    Nuggies.applications.addApplication(
      { guildID, questions, name, emoji, channel, description, label, maxApps, cooldown, responseChannelID },
    )
    

    params

    guildID: The ID of the guild in which the application is to be added questions: An array of questions to be asked in DM, Example: js ['How old are you?', 'How much time would you devote to it?']; name: The name of the application\

    emoji: The emoji to be put in the menu

    channel: The ID of the channel in which the message is to be sent

    description: The description of the application

    label: The label of the application in the menu

    maxApps: The maximum amount of application 1 can create before it gets accepted/declined

    cooldown: The cooldown before creating another response

    responseChannelID: The channel to send responses in

    deleteApplication

    Deletes an application for the guild

    Nuggies.applications.deleteapplication({ guildID, name });
    

    params

    guildID: The ID of the guild name: The name of the application to remove

    create

    Creates/Initializes the application system for the guild

    Nuggies.applications.create({ guildID, content, client })
    

    params

    guildID: The ID of the guild to be created in content: The content of message to be sent in the channel client: The discord.js client used

    getDataByGuild

    Gets the data from database for you

    Nuggies.applications.getDataByGuild(guildID);
    

    params

    guildID: The ID of the guild

    Source code(tar.gz)
    Source code(zip)
  • v1.2.0(Jul 2, 2021)

    dropdown roles

    constructor. use .setrole() on it to create dropdown options

    const something = new Nuggies.dropdownroles().addrole({ 
      label: 'test', 
      role: 'roleID',
      emoji: 'emojiID'
      });
    

    options

    label: dropdown option label

    role: role that would be added on click

    emoji: ID of the emoji on the dropdown option, optional.

    create

    creates the dropdown roles

    Nuggies.dropdown.create({ 
      message: message, 
      role: role, /*dropdownroles constructor*/ 
      content: new Discord.MessageEmbed().setTitle('xd').setDescription('xdxd') });
    

    Other changes

    • moved Nuggies.giveaways.connect to Nuggies.connect
    • moved Nuggies.giveaways.buttonclickand Nuggies.buttonroles.buttonclick to Nuggies.buttonclick
    • new function Nuggies.dropclick, handles dropMenu interactions
    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Jun 23, 2021)

  • 1.0.5(Jun 19, 2021)

    New function!

    startAgain

    starts the giveaway again after restart, put this in ready event to start All the giveaways again.

    Nuggies.giveaways.startAgain(client)
    

    params

    client: Discord Client

    Source code(tar.gz)
    Source code(zip)
  • 1.0.1(Jun 18, 2021)

A utility package for making discord-bot commands much easier to write with discord.js.

Cordmand About A utility package for making discord-bot commands much easier to write with discord.js. Usage Example Install this package: npm i @rein

Reinforz 15 Sep 28, 2022
Whatscode.js is a package to create Whatsapp bots easily and quickly

whatscode.js is a package to create Whatsapp bots easily and quickly, even coding experience is not needed...

JstnLT 21 Dec 30, 2022
Tutoriel en francais sur le framework Sheweny, création de bots discord pour les débutants

Tutoriel Sheweny ✨ Sheweny est un framework pour créer des bots sur discord avec discord.js. Bienvenue dans le repo du tutoriel sur le framework Shewe

Sheweny 5 Jul 29, 2022
a full functional discord bot to send MooMoo.io bots

MooMooBot a full functional discord bot to send moomoo.io bots commands !send <server> <name> ex: !send 8:0:0 Nuro !token (generates a token to test

null 1 Jan 7, 2022
A easy way for making bots using Discord.js/Node.js

Discord.js-Bot-Template This is a very simple template for making bots using Discord.js/Node.js Tutorial: To begin, Install Node.js here. After Node.J

Prosperity 4 Nov 8, 2022
✨ the template for all my discord bots!

my discord bot template ⚠️ if you are using this template: please credit me, be it in a command, or in the readme file, i'm not picky. so essentially

null 11 Oct 22, 2022
An simple package to create an Activity in Discord Voice Channel using Discord.js

discordjs-activity An simple package to create an Activity in Discord Voice Channel using Discord.js ?? | Installation npm install discordjs-activity

Sudhan 55 Nov 15, 2022
A Discord bot project made with the npm package discord.js version 14

A Discord bot project made with the npm package discord.js version 14 and it's job to manage mails on a server, and this project includes only one Database: Quick.db. This project also handles Slash commands.

T.F.A 33 Jan 6, 2023
As you can tell from the name of the Bots+, it looks like a Members+ bot

Info As you can tell from the name of the Bots+, it looks like a Members+ bot. Usage First step: "!help" You must set your language with this command.

Custy 4 Feb 21, 2022
When new tokens gets listed on a DEX, bots are able to detect this and be one of the first to buy the token for a low price. This is an example of such bot.

Listing Sniping Bot When a new token gets listed on a DEX, bots are able to detect the PairCreated event emitted from the DEX's factory contract. This

MouseLess.eth 15 Dec 21, 2022
Katsushika: A REVERSED VERSION OF ASUNA & CHITOGE BOTS

Katsushika: A REVERSED VERSION OF ASUNA & CHITOGE BOTS A Fully Modular and Efficient Bot Button : If you are deploying normally Button : If you are de

 İşşa 3 Aug 23, 2022
A NodeJS package for voice channel interactions on Revolt. This package lets you join voice channels, play music and more!

Revoice.js - A Voice Module for Revolt This package is still in developement and lacks many features. You still are able to play sound to a voice chan

ShadowLp174 13 Dec 25, 2022
ALi a powerful Discord bot that includes Utility, Fun, Music, Moderation, and much more! (Beta)

ALi ALi a powerful Discord Bot Invite ALi · Report Bug · Request Feature ?? Futures Music Moderation Fun Economy Utility More ?? Installation You can

S Dip 97 Oct 17, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022