1.3.0 • Published 2 years ago
ezcodes v1.3.0
ezcodes
Just one Line for 30 lines in Reality ! (The Package is in Creation)
More Options comming soon...
The Package is in Creation with only ONE Person.
v1.3.0
Examples of Codes:
UserCard Builder
const ez = require("ezcodes")
const Discord = require("discord.js")
const bot = new Discord.Client({intents: ["MessageContent", "GuildMembers", "GuildMessages", "Guilds"]}) // with discord.js v14 the 'Discord.Intents(32767)' was deleted...
bot.login("YOUR_TOKEN") // your Token
bot.on("ready", async () => {
ez.function.consoleLog("I'm Login")
})
bot.on("messageCreate", async message => {
if(message.author.bot) return;
if(message.content === "!usercard") {
const userCard = await new ez.discordUserCard()
.setUsername(message.author.username)
.setAge(13)
.setNationality("french")
.setBackground("./background.png")
.setLogo("./logo.jpg")
.setColorFont("#ffffff") // optional
.toCard()
message.reply({files: [userCard.toBuffer()]})
}
})
createId() Function
const ez = require("ezcodes") // to import the Package
const createId = ezcodes.function.createId() // Enter String enter parenthesis is Optional
ez.function.consoleLog(createId) // to log the Id
createToken() Function
const ez = require("ezcodes") // to import the Package
const createToken = ezcodes.function.createToken() // Enter String enter parenthesis is Optional
ez.function.consoleLog(createToken) // to log the Token
createPassword() Function
const ez = require("ezcodes") // to import the Package
const createPassword = ezcodes.function.createPassword() // Enter String enter parenthesis is Optional
ez.function.consoleLog(createPassword) // to log the Password
consoleLog() Function
const ez = require("ezcodes") // to import the Package
ez.function.consoleLog("to Log") // to log with my Function
random() Function
const ez = require("ezcodes") // to import the Package
ez.mathFunction.random(100) // to log a Number between 0 and your Limit (here 100)
add() Function
const ez = require("ezcodes") // to import the Package
ez.mathFunction.add(1, 1) // to add 1 to 1 (the result is logged in the console automaticaly)
divide() Function
const ez = require("ezcodes") // to import the Package
ez.mathFunction.add(5, 2) // to divide 5 by 2 (the result is logged in the console automaticaly)
multiply() Function
const ez = require("ezcodes") // to import the Package
ez.mathFunction.add(2, 2) // to multiply 2 per 2 (the result is logged in the console automaticaly)
substract() Function
const ez = require("ezcodes") // to import the Package
ez.mathFunction.substract(2, 1) // to substract 1 to 2 (the result is logged in the console automaticaly)