2.5.6-b • Published 3 years ago
ashcord.js v2.5.6-b
ASHCORD.JS
haha funny lib
Kullanım
const ashcord = require("ashcord.js")
const client = new ashcord.client("tokenin");
//mesaj örneği
client.on("message", async function(message) {
if(message.author.bot) return
ashcord.send(message,"selam")
});
Ping örneği
const ashcord = require("ashcord.js")
const client = new ashcord.client("tokenin");
const prefix = "!"
client.on("message", async function(message) {
let command = message.content.split(' ')[0].slice(prefix.length);
if(message.author.bot) return
if(command === "ping") {
return ashcord.send(message,`pingim:${ashcord.ping()}`)
}
});
Embed örneği
const ashcord = require("ashcord.js")
const client = new ashcord.client("tokenin");
const prefix = "!"
client.on("message", async function(message) {
let command = message.content.split(' ')[0].slice(prefix.length);
if(message.author.bot) return
if(command === "ping") {
return ashcord.sendEmbed(message, {
title: "Pingim",
description: `${ashcord.ping()}ms`,
thumbnail: client.user.displayAvatarURL()
})
}
});