- Yasaklandı
- #1
const keytr = require('keytr.js');
Banlı Üye
Öncelikle bir yeni metin belgesi açiyoruz sonra farklı kaydet tüm dosyalar seçiyoruz ve ismini örnek sunucubilgi.js yapiyoruz sonra edit olarak açiyoruz
JavaScript:
const Discord = require('discord.js');[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]const ayarlar = require('../ayarlar.json');[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)][/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]exports.run = (client, message, params) => {[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)][/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] if (!message.guild) {[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] const ozelmesajuyari = new Discord.RichEmbed()[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .setColor(0xFF0000)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .setTimestamp()[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .setAuthor(message.author.username, message.author.avatarURL)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField(':warning: Uyarı :warning:', '`sunucubilgi` adlı komutu özel mesajlarda kullanamazsın.')[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] return message.author.sendEmbed(ozelmesajuyari); }[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] if (message.channel.type !== 'dm') {[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] const sunucubilgi = new Discord.RichEmbed()[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .setColor(0x00AE86)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .setTimestamp()[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .setAuthor(message.guild.name, message.guild.iconURL)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Sunucu Adı:', message.guild.name)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Sunucu ID:', message.guild.id)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Ana kanal:', message.guild.defaultChannel)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Sunucu Bölgesi:', message.guild.region)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Üye sayısı:', message.guild.memberCount)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Sahibi:', message.guild.owner + ' (' + message.guild.ownerID + ')')[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('Kanal sayısı:', message.guild.channels.size)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] .addField('16.08.2018:', message.guild.createdAt)[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] return message.channel.sendEmbed(sunucubilgi);[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] }[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]};[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)][/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]exports.conf = {[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] enabled: true,[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] guildOnly: false,[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] aliases: ['sunucu', 'sunucu bilgi', 'sbilgi'],[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] permLevel: 0[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]};[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)][/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]exports.help = {[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] name: 'sunucubilgi',[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] description: 'Sunucu hakkında bilgi verir.',[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)] usage: 'sunucubilgi'[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]};[/COLOR][/B]
[B][COLOR=rgb(97, 189, 109)]
VERDİĞİM KODU YAPİŞTİRİYORUZ BUYRUN SİZE Discord sunucu bilgi kodu
Ve kodumuz çalşiyor