Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azel

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azel - npm Package Compare versions

Comparing version 8.8.8 to 8.8.9

2

package.json
{
"name": "azel",
"version": "8.8.8",
"version": "8.8.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,1 +1,3 @@

const { MessageEmbed } = require("discord.js")
class slots {

@@ -12,2 +14,7 @@ /**

* @param {String} [options.emojiThree] For emoji three
* @param {String} [options.title]
* @param {String} [options.description]
* @param {String} [options.color]
* @param {Boolean} [options.authorImage]
* @param {Boolean} [options.timestamp]
*/

@@ -21,2 +28,3 @@ constructor(options) {

if(!options.emojiTwo) throw new TypeError('Weky Error: Missing argument emojiTwo')
if(!options.description) throw new TypeError('Weky Error: Missing argument description')

@@ -29,2 +37,7 @@ /* Typeof options */

if(typeof options.emojiThree !== 'string') throw new TypeError('Weky Error: emojiThree must be a string')
if(typeof options.title !== 'string') throw new TypeError('Weky Error: title must be a string')
if(typeof options.description !== 'string') throw new TypeError('Weky Error: description must be a string')
if(typeof options.color !== 'string') throw new TypeError('Weky Error: color must be a string')
if(typeof options.authorImage !== 'string') throw new TypeError('Weky Error: authorImage must be a boolean')
if(typeof options.timestamp !== 'string') throw new TypeError('Weky Error: timestamp must be a boolean')

@@ -37,2 +50,8 @@ this.message = options.message;

this.emojiThree = options.emojiThree;
// Embeds btw
this.title = options.title;
this.description = options.description;
this.color = options.color;
this.authorImage = options.authorImage;
this.timestamp = options.timestamp;
}

@@ -42,2 +61,12 @@

async start() {
const embed = new MessageEmbed()
.setDescription(`**>** ${slotOne} | ${slotTwo} | ${slotThree} **<**\n${this.winMessage}`)
// Embed
const embed1 = new MessageEmbed()
.setDescription(`**>** ${slotOne} | ${slotTwo} | ${slotThree} **<**\n${this.loseMessage}`)
// Embed1
if(this.title && this.description) {
const slots = [this.emojiOne, this.emojiTwo, this.emojiThree]

@@ -50,9 +79,20 @@

if(slotOne === slotTwo && slotOne === slotThree) {
this.message.channel.send(`**>** ${slotOne} | ${slotTwo} | ${slotThree} **<**\n${this.winMessage}`)
this.message.channel.send(embed)
} else {
this.message.channel.send(`**>** ${slotOne} | ${slotTwo} | ${slotThree} **<**\n${this.loseMessage}`)
this.message.channel.send(embed1)
}
if(this.title) embed.setTitle(this.title)
if(this.color) embed.setColor(this.color)
if(this.authorImage === true) embed.setFooter(`${this.message.author.nickname || this.message.author.username}`, this.message.author.displayAvatarURL({ dynamic: true, format: "png" }))
if(this.timestamp === true) embed.setTimestamp()
// Embed
if(this.title) embed1.setTitle(this.title)
if(this.color) embed1.setColor(this.color)
if(this.authorImage === true) embed1.setFooter(`${this.message.author.nickname || this.message.author.username}`, this.message.author.displayAvatarURL({ dynamic: true, format: "png" }))
if(this.timestamp === true) embed1.setTimestamp()
}
}
}
module.exports = slots;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc