- Katılım
- 1 Ocak 2020
- Mesajlar
- 914
- En iyi cevaplar
- 1
- Tepki puanı
- 449
- Puanları
- 825
- Discord
JavaScript:
const Discord = require('discord.js');
const shorten = require('isgd');
exports.run = (client, message, args, tools) => {
message.delete();
if (!args[0]) return message.channel.send(' ** \n » Kullanım: !!kısalt <URL> <isim> \n » Örnek: !!kısalt https://minecrafttr.com/ Pythonic ** ')
if(!args[1]) {
shorten.shorten(args[0], function(yedlix) {
if (yedlix.startsWith('Hata:')) message.channel.send('**Lütfen doğru URL adresi giriniz.**');
message.channel.send(`**<${yedlix}>**`);
})
} else {
shorten.custom(args[0], args[1], function(yedlix) {
if (yedlix.startsWith('Hata:')) message.channel.send(`**<${yedlix}>**`);
message.channel.send(`**<${yedlix}>**`);
})
}
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'kısalt',
description: 'İstediğiniz URLni Kısaltır. ',
usage: 'kısalt'
};