nuggies-npm

A utility package for Discord Bots!

OTHER License

Downloads
630
Stars
44
Committers
12

Bot releases are hidden (Show)

nuggies-npm - FULL SLASH SUPPORT! FULL CUSTOMIZABILITY! Latest Release

Published by Assassin-1234 about 3 years ago

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

nuggies-npm - v2.0.6 bug fixes

Published by Assassin-1234 about 3 years ago

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
nuggies-npm - v2.0.0 [DJS V13 SUPPORT!]

Published by Assassin-1234 about 3 years ago

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 💃

nuggies-npm - v 1.3.6 [ customizability! ]

Published by Assassin-1234 about 3 years ago

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
nuggies-npm - v 1.3.3 MAJOR BUG FIXES!

Published by Assassin-1234 about 3 years ago

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

nuggies-npm - dropdown applications! v1.3.0

Published by Assassin-1234 about 3 years ago

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

nuggies-npm - v1.2.0 [DROPDOWN ROLES!]

Published by Assassin-1234 over 3 years ago

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.buttonclick and Nuggies.buttonroles.buttonclick to Nuggies.buttonclick
  • new function Nuggies.dropclick, handles dropMenu interactions
nuggies-npm - button roles!

Published by Assassin-1234 over 3 years ago

This update includes

  • major bug fixes
  • new class buttonroles

TBbPNb4S7a

nuggies-npm - 1.0.5

Published by Assassin-1234 over 3 years ago

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

nuggies-npm - release!

Published by Assassin-1234 over 3 years ago

Nuggies npm!! there is alot to come to this but starting off with the easiest discord giveaways with buttons!
dbPdcey4