1.0.0 • Published 12 months ago
disc-ling v1.0.0
Disc Ling
NPM : [
https://www.npmjs.com/package/disc-ling ]
Support : [
https://discord.gg/gdxnfwvpqr ]
Dev Package : Mohamed_Hisham#5659
Installation
npm install disc-ling
EmbedBuilder
...
const { Azkar, Colors, EmbedBuilder } = require("disc-ling"); // npm i disc-ling
...
try {
const Embed = new EmbedBuilder()
.setTitle(`Azkar`)
.setDescription(`Arabic: ${Azkar.Arabic()} \nEnglish: ${Azkar.English()}`)
.setColor(Colors.Automatic());
return interaction.reply({ embeds: [Embed], ephemeral: true });
} catch (error) {
return;
}
...
Azkar Arabic
...
const { Azkar, Colors, EmbedBuilder } = require("disc-ling"); // npm i disc-ling
...
const Embed = new EmbedBuilder() // Create A New Embed
let Channel = client.channels.cache.get("Channel Id"); // Channel Id
if (!Channel) return console.log("[Error] Noting Channel Azkar..."); // Client Noting Channel For All Server Form Bot
setInterval(() => {
Channel.send({ // Send Azkar For Channel
embeds: [
Embed.setDescription(Azkar.Arabic())
.setTimestamp()
.setColor(Colors.Automatic()),
],
});
}, 50000);
...
Azkar English
...
const { Azkar, Colors, EmbedBuilder } = require("disc-ling"); // npm i disc-ling
...
const Embed = new EmbedBuilder() // Create A New Embed
let Channel = client.channels.cache.get("Channel Id"); // Channel Id
if (!Channel) return console.log("[Error] Noting Channel Azkar..."); // Client Noting Channel For All Server Form Bot
setInterval(() => {
Channel.send({ // Send Azkar For Channel
embeds: [
Embed.setDescription(Azkar.English())
.setTimestamp()
.setColor(Colors.Automatic()),
],
});
}, 50000);
...
Database (db
)
...
const { Database } = require("disc-ling"); // npm i disc-ling
const db = new Database() // To define the Database to function properly
...
db.set('key','value'); // to set a data to database.
db.get('key'); // to get the data by key.
db.delete('key'); // to delete key from database.
db.has('key','value'); // return "true" or "false".
db.add('key', 10;); // to add a number to the key.
db.substract('key', 5); // to subtract a number from the key.
db.push('key', 10); // to set a data at the end.
db.math("key","+",5); // to math the numbers.
db.fetch(); // to fetch the data from database.
db.fetchAll(); // to fetchAll data.
db.all(); // to get all data in database.
db.backup("Filename"); // to make a backup file.
db.reset(); // to delete all data and database.
...
Generate
...
const { Generate } = require("disc-ling"); // npm i disc-ling
...
let One = Generate({
length: 10,
}); // 10 Length [ 0123456789 ]
console.log(One)
...
let Two = Generate({
length: 10,
prefix: '!',
}); // !Code
console.log(Two)
...
let Three = Generate({
length: 10,
postfix: '!',
}); // Code!
console.log(Three)
...
let Four = Generate({
length: 10,
prefix: '!',
postfix: '!',
}); // !Code!
console.log(Four)
...
Colors
...
const { Colors } = require("disc-ling"); // npm i disc-ling
...
Colors.LuminousVividPink
Colors.DarkButNotBlack
Colors.NotQuiteBlack
Colors.DarkVividPink
Colors.DarkerGrey
Colors.DarkOrange
Colors.LightGrey
Colors.DarkPurple
Colors.Automatic()
Colors.DarkGreen
Colors.DarkAqua
Colors.DarkBlue
Colors.DarkGold
Colors.DarkGrey
Colors.DarkNavy
Colors.Blurple
Colors.DarkRed
Colors.Greyple
Colors.Default
Colors.Fuchsia
Colors.Yellow
Colors.Purple
Colors.Orange
Colors.Green
Colors.White
Colors.Aqua
Colors.Blue
Colors.Gold
Colors.Grey
Colors.Navy
Colors.Red
...
- Discord Server Support:
[
https://discord.gg/gdxnfwvpqr]
- Dev Package:
Mohamed_Hisham#5659
1.0.0
12 months ago