Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandontorreglosa/xoppack
ᴀ ɢᴀᴍᴇ ᴄʜᴀɴɢᴇʀ ꜰᴏʀ ᴅᴇᴠᴇʟᴏᴘᴇʀꜱ
https://github.com/brandontorreglosa/xoppack
discord-js discordapp opensource
Last synced: 4 days ago
JSON representation
ᴀ ɢᴀᴍᴇ ᴄʜᴀɴɢᴇʀ ꜰᴏʀ ᴅᴇᴠᴇʟᴏᴘᴇʀꜱ
- Host: GitHub
- URL: https://github.com/brandontorreglosa/xoppack
- Owner: brandontorreglosa
- License: other
- Created: 2021-09-10T14:23:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T11:17:08.000Z (over 1 year ago)
- Last Synced: 2025-01-26T04:33:50.300Z (13 days ago)
- Topics: discord-js, discordapp, opensource
- Language: JavaScript
- Homepage: https://xopbot.glitch.me/api?xoppack
- Size: 279 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license.md
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
XOPPACK
A Fun Game NPM Package Made For Discord.js Developers!
## **📥 | Installation**
```js
npm i xoppack
```- Supports Discord.js v12
## **📤 | Update**
```js
npm i xoppack@latest
```- Update Your Package Version
## **📸 | XOP IMAGES**
Function
Information
ExampleXOPAD
Displays A User As A Advertisement
XOPAD({}) // The Same As BelowXOPBlur
Displays A Blurry Image Of The User
XOPBlur({}) // The Same As BelowXOPClown
Displays A User As A Clown
XOPClown({}) // The Same As BelowXOPDOF
Displays A Shameless User On The Dock
XOPDOF({}) // The Same As BelowXOPDrip
Displays A Drippy User
XOPDrip({}) // The Same As BelowXOPGrave
Displays A User In A Grave
XOPGrave({}) // The Same As BelowXOPGun
Displays A User Holding A Gun
XOPGun({}) // The Same As BelowXOPHeaven
Displays A User In Heaven
XOPHeaven({}) // The Same As BelowXOPIAS
Displays A User As Mc'queen
XOPIAS({}) // The Same As BelowXOPMNM
Displays A User As A MNM
XOPMNM // The Same As BelowXOPPET
Displays A User Getting Petted
XOPPET({}) // The Same As BelowXOPSimp
Displays A User As A Simp
XOPSimp({}) // The Same As BelowXOPStonks
Displays A User Getting High Stonks
XOPStonks({}) // The Same As BelowXOPTABFLIP
Displays A User Tableflipping
XOPTABFLIP({}) // The Same As BelowXOPWanted
Displays A User Being Wanted
XOPWanted({}) // The Same As BelowXOPWPFP
Displays A User's PFP Wide
XOPWPFP({}) // The Same As Below**Version 12 Example**
```js
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**
```js
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**
```js
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**
```js
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**
A Package Owned By XOPBOT.INC