1.5.6 • Published 2 years ago

xoppack v1.5.6

Weekly downloads
-
License
CC BY-NC-ND 4.0
Repository
github
Last release
2 years ago

📥 | Installation

npm i xoppack
  • Now Supports Discord.js v12 and v13 very soon 🥳

📤 | Update

npm i xoppack@latest
  • Updates Your Package Version To The Latest (ex. v2 > v3)

📸 | XOP IMAGES

Version 12 Example

client.on('message', async (message) => {
if (message.content === "clown"){
   new XOPClown({ // Just Edit The Name With Any Of The Above
            message: message,
            mention: true, // Rewrite To False To Not Mention
            embed: {
                color: `PURPLE`, // HEX OR RED, GREEN etc.
                title: "Clown" // Title For The Embed
            }
        }).startFunction();
    },
});

🤳 | Outcome

Version 12 Example

client.on('message', async (message) => {
if (message.content === "ad"){
   new XOPAD({ // Just Edit The Name With Any Of The Above
            message: message,
            mention: true, // Rewrite To False To Not Mention
            embed: {
                color: `PURPLE`, // HEX OR RED, GREEN etc.
                title: "AD" // Title For The Embed
            }
        }).startFunction();
    },
});

🤳 | Outcome

🎮 | XOP RPS GAME

Version 12 Function

const lineReplyNoMention = require('discord-reply')  //<----Install To Work!---->
const { XOPRockPaperScissors } = require('xoppack') //<----Always Define XOPPACK---->
client.on('message', async (message) => {
if (message.content === "rps") {
        if (!args[0]) {
            const noch = new Discord.MessageEmbed()
                .setTimestamp()
                .setColor('#34b7db')
                .setAuthor(`${message.author.username}`, message.author.displayAvatarURL({ dynamic: true }))
                .setDescription(`**\`(prefix)rps <@user>\`**`)
            return message.lineReplyNoMention(noch)
        }
        new XOPRockPaperScissors({
            message: message,
            opponent: message.mentions.users.first(),
            embed: {
                description: '**Press A Button Below To Start!**', // Text To Display On Embed
                color: '#c30202', // HEX OR RED, GREEN etc.
            },
            buttons: {
                rock: '🗻', // The Emoji For The Rock
                paper: '📄', // The Emoji For The Paper
                scissors: '✂', // The Emoji For The Scissors
            },
            othersuserMessage: '**You Are Not Allowed To Use Buttons For This Message!**', // Message To Display To Other Users
            chooseMessage: '**You Choose {emoji}!**', // The Message When A Emoji Is Chosen
            noChangeMessage: '**You Cannot Change Your Button Selection!**', // The Message When A User Tries To Change Selection
            askerMessage: '**Hey {opponent}, {challenger} Challenged You For A Game Of Rock Paper Scissors!**', // The Ask Message To A Opponent
            cancelMessage: '**Looks Like They Didn\`t Want To Play!**', // The Cancel Message
            timerEndMessage: '**Since The Opponent Didnt Answer, I Ended The Game!**', // The Message When The Time Ends
            drawMessage: '**The Game Ended With a Draw!**', // The Message When The Game Ends With A Draw
            winMessage: '**{winner} Won The Game!**', // The Message When A User Wins
            gameEndMessage: '**The Game Was Unfinished!**', // The End-Game Message
        }).startGame();
    },
});

🤳 | Outcome

🎮 | XOP SNAKE GAME

Version 12 Function

const lineReplyNoMention = require('discord-reply') //<----Install To Work!---->
const { XOPSnake } = require("xoppack") //<----Always Define XOPPACK---->
client.on('message', async (message) => {
if (message.content === "snake") {
        new XOPSnake({
            message: message,
            embed: {
                color: '#34b7db', // HEX OR RED, GREEN etc.
                OverTitle: "**Game Over!**", // End-Game Title
            },
            snake: { head: '🔴', body: '🟥', tail: '🔴' }, // Characteristics For The Snake
            emojis: {
                board: '⬛', // Background Emoji
                food: '🍌', // Food To Display
                up: '⬆️', // Up Button
                right: '➡️', // Right Button
                down: '⬇️', // Down Button
                left: '⬅️', // Left Button
            },
            othersuserMessage: '**You Are Not Allowed To Use The Buttons For The Snake Game!**', // Message To Display For Other Users
        }).startGame();
    },
});

🤳 | Outcome

📯 | Announcments

V1.4.8-bfix / V1.4.9

👥 | Discord Server

You Can Visit The Issues Page Of XOPPACK To Report Bugs Or Errors Found! Also Dont Be Afraid To Ping Me 'Once' On My Server Just Click The Image And It Will Send You To The Server ⏬

A Package Owned By XOPBOT.INC

1.4.6

2 years ago

3.2.6

2 years ago

3.2.5

2 years ago

1.4.8-bfix

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

3 years ago

1.3.8-1.5

3 years ago

1.3.8-1.4

3 years ago

1.3.8-1.05-beta

3 years ago

1.3.9

3 years ago

1.3.8-1.3

3 years ago

1.3.8-1.2

3 years ago

1.3.8-1.03-beta

3 years ago

1.3.7

3 years ago

1.3.8-1.1

3 years ago

1.3.8-1.0

3 years ago

1.3.6-2.2

3 years ago

1.3.8

3 years ago

1.3.6-2.0

3 years ago

1.3.6-2.1

3 years ago

1.3.6-1.9

3 years ago

1.3.6-1.8

3 years ago

1.3.6-1.5

3 years ago

1.3.6-1.4

3 years ago

1.3.6-1.7

3 years ago

1.3.6-1.6

3 years ago

1.3.6-1.3

3 years ago

1.3.6-1.2

3 years ago

1.3.6-1.1

3 years ago

1.3.6-1.0

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.5

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago