NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

const Discord = require("discord.js");
const bot = new Discord.Client();
const moment = require('moment');
const client = new Discord.Client();
const db = require('quick.db');
require('moment-duration-format');


let prefix = "!!";//botun ön eki
let owner = "123453123126789";// sizin id'niz

bot.on("ready", guild => {
bot.user.setActivity('OYNUYOR KISMI', { type: 'WATCHING' })
.then(presence => console.log(`Activity set to ${presence.game ? presence.game.name : 'none'}`))
.catch(console.error);
console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an ` + bot.channels.size + ` adet kanala, ` + bot.guilds.size + ` adet sunucuya ve ` + bot.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + ` kullanıcıya hizmet veriliyor!`);
console.log("Bağlandım!")
});

bot.on("message", message => {
if (message.content.toLowerCase() === prefix + "avatarım") {
message.channel.sendEmbed(new Discord.RichEmbed()
.setDescription(`Avatarınız:`)
.setImage(`${message.author.avatarURL} `)
.setColor("RANDOM"));
}
});

bot.on("message", message => {
if (message.content.toLowerCase() === prefix + 'kurulum') {
if (message.author.id !== `${owner}`) {
message.reply('Kurucumun izni olması lazım. Kurucum');
} else {
message.channel.sendMessage(` :white_check_mark: Gerekli şeyleri başarılı bir şekilde kurdum.`).then(msg => {
console.log(`Yeniden başlıyorum..`);
message.guild.createChannel('notech-log');// notech-log adında kanal kuracaktır.
})
}
}
});

bot.on('message', msg => {
if (msg.content.startsWith(prefix + "yaz")) {
let mesaj = msg.content.substring(2 + 3);
msg.delete();
msg.channel.send(mesaj);
}
});

bot.on('message', msg => {
if (msg.content.startsWith(prefix + "çekiliş")) {
msg.channel.send(`Çekilişi Kazanan: ${msg.guild.members.random().displayName}`);
}
});

bot.on('message', msg => {
if (msg.content.startsWith(prefix + "sikayet")) {//sunucu kurucusuna yazdığınız mesajı gönderir.
msg.reply("Şikayetiniz Bildirilmiştir")
let mesaj = msg.content.substring(2 + 3);
msg.delete();
msg.guild.owner.send(`Şikayet Bildiren: **${msg.author.tag}** nŞikayet: ` + mesaj);
}
});

bot.on('message', message => {
if (message.content.toLowerCase() === prefix + "özlüsöz") {
var sans = ["Affetmek geçmişi değiştirmez ama geIeceğin önünü açar","İnsanIar seninIe konuşmayı bıraktığında, arkandan konuşmaya başIarIar","Hayattan korkmayın çocuklar;iyi ve doğru bir şeyler yaptığınız zaman hayat öyle güzel ki","Mutluluğu tatmanın tek çaresi, onu paylaşmaktır.","Küçük şeylere gereğinden çok önem verenler, elinden büyük iş gelmeyenlerdir.","Bize yeni düşmanlar lazım. Eskileri hayranımız oldular.","Asla vazgeçmeyin, kaybedenler yalnızca vazgeçenlerdir.","10 kilitli kapıdan daha güvenlidir babanın evde oluşu.","Sevmek için “yürek” sürdürmek için “emek” gerek.","Bir insanın, bir insana verebileceği en güzel hediye; ona ayırabileceği zamandır."," Benim neden kardeşim yok baba Seni görünce ikincisine cesaret edemedik.","Kendini Ne Kadar Büyük Görürsen Gör. Bende Sadece Gözümün Gördüğü Kadarsın. Ötesi yok.","Mutlu olmayı yarına bırakmak, karşıya geçmek için nehrin durmasını beklemeye benzer ve bilirsin, o nehir asla durmaz.– Grange"];
var sonuc = sans[Math.floor((Math.random() * sans.length))];
const embed = new Discord.RichEmbed()
.addField(`¡ ¡ ¡ ¡ ¡ `, `${sonuc}`)
.setColor("RANDOM");
return message.channel.sendEmbed(embed);
}
});


bot.on('message', msg => {
if (msg.content.toLowerCase() === prefix + "futboloyna") {
msg.channel.send(':soccer :soccer: :goal: :soccer')
.then(nmsg => nmsg.edit(':soccer: :goal: :soccer:'))
.then(nmsg => nmsg.edit(':soccer: :goal: :goal:'))
.then(nmsg => nmsg.edit(':soccer: :goal: :soccer:'))
.then(nmsg => nmsg.edit(':soccer: :goal:'))
.then(nmsg => nmsg.edit('**Güzel Maçtı Bro Bidaha Oynayalım :)**'));
}
});

bot.on("message", message => {


if (message.content.toLowerCase() === 'sa') {
message.reply('Aleyküm selam!');
}
if (message.content.toLowerCase() === 'selamun aleykum') {
message.reply('Aleyküm selam!');
}

if (message.content.toLowerCase() === prefix + 'yenile') {
if (message.author.id !== `${owner}`) {
message.reply('Bu komudu sadece **Bot Sahibi** kullanabilir!');
} else {
message.channel.sendMessage(`Yeniden Başlıyorum`).then(msg => {
console.log(`Yeniden başlıyorum..`);
process.exit(0);
})
}
}


if (message.content.toLowerCase() === prefix + "sunucubilgi") {
const embed = new Discord.RichEmbed()
.addField("Sunucu Adı", message.guild.name, true)

.addField("Sunucu ID", message.guild.id, true)

.addField("Sunucu Sahibi", message.guild.owner, true)

.addField("Toplam Üye Sayısı", message.guild.memberCount, true)

.addField("AFK Süresi", message.guild.afkTimeout, true)

.setFooter("Oluşturulma Tarihi " + message.guild.createdAt)

.setColor("RANDOM")

return message.channel.sendEmbed(embed)
}

if (message.content.toLowerCase() === prefix + "ping") {
const embed = new Discord.RichEmbed()
.setColor("RANDOM")
.setDescription("Pingim :ping_pong: **" + bot.ping + "** Milisaniye")
return message.channel.sendEmbed(embed)
}

if (message.content.toLowerCase() === prefix + "botbilgi") {
const embed = new Discord.RichEmbed()
.addField("Bot Sahibi", `<@${owner}>`, true)

.addField("Version", "2.0.1", true)

.addField("Toplam Sunucu Sayısı", bot.guilds.size, true)

.addField("Toplam Kullanıcı Sayısı", bot.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString(), true)

.addField("Toplam Kanal Sayısı", bot.channels.size, true)

.addField("Çalışma Süresi", moment.duration(bot.uptime).format('D [gün], H [saat], m [dakika], s [saniye]'), true)

.addField("Kitaplık Türü", "discord.js")

.setColor("RANDOM")

return message.channel.sendEmbed(embed)
}


bot.login(process.env.TOKEN); //değiştirmeyin.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.