NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

const Discord = require('discord.js');
const moment = require('moment');
const ms = require('ms')
exports.run = async (client, message) => {
var time = moment().format('Do MMMM YYYY , hh:mm');
var room;
var title;
var duration;
var currentTime = new Date(),
hours = currentTime.getHours() + 3 ,
minutes = currentTime.getMinutes(),
done = currentTime.getMinutes() + duration,
seconds = currentTime.getSeconds();
if (minutes < 10) {
minutes = "0" + minutes;
}
var suffix = "AM";
if (hours >= 12) {
suffix = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
var filter = m => http://m.author.id === message.author.id;



message.channel.send(`:eight_pointed_black_star:| **Çekilişin yapılacağı kanalın adını yaz**`).then(msg => {
message.channel.awaitMessages(filter, {
max: 1,
time: 20000,
errors: ['time']
}).then(collected => {
let room = message.guild.channels.find('name' , collected.first().content);
if(!room) return message.channel.send(':heavy_multiplication_x:| **Böyle bir kanal bulamadım**');
room = collected.first().content;
collected.first().delete();
msg.edit(':eight_pointed_black_star:| **Çekilişin süresini belirle (1s, 1m, 1h, 1d, 1w)**').then(msg => {
message.channel.awaitMessages(filter, {
max: 1,
time: 20000,
errors: ['time']
}).then(collected => {
if(!collected.first().content.match(/[1-60][s,m,h,d,w]/g)) return message.channel.send(':heavy_multiplication_x:| **Böyle bir süre bilmiyorum :(**');
duration = collected.first().content
collected.first().delete();
msg.edit(':eight_pointed_black_star:| **Şimdi de ödülü yaz bakalım**').then(msg => {
message.channel.awaitMessages(filter, {
max: 1,
time: 20000,
errors: ['time']
}).then(collected => {
title = collected.first().content;
collected.first().delete();
msg.delete();
message.delete();
try {
let giveEmbed = new Discord.RichEmbed()
.setColor("#f558c9")
.setDescription(`**Ödül: ${title}** n🎉'a Basarak Katıl nKalan Süre : ${duration} n **Başlama Zamanı :** ${hours}:${minutes}:${seconds} ${suffix}`)
.setFooter(message.author.username + " (TrexBot çekiliş sistemi)", message.author.avatarURL);
message.guild.channels.find("name" , room).send(' :heavy_check_mark: **ÇEKİLİŞ BAŞLADI** :heavy_check_mark:' , {embed: giveEmbed}).then(m => {
let re = m.react('🎉');
setTimeout(() => {
let users = m.reactions.get("🎉").users
let list = users.array().filter(u => http://u.id !== http://m.author.id !== client.user.id);
let gFilter = list[Math.floor(Math.random() * list.length) + 0]
let endEmbed = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.avatarURL)
.setTitle(title)
.setColor("#f558c9")
.setFooter("(TrexBot çekiliş sistemi)")
.addField('Çekiliş Bitti !🎉',`Kazanan : ${gFilter} nBitiş zamanı :`)
.setTimestamp()
m.edit('** 🎉 ÇEKİLİŞ BİTTİ 🎉**' , {embed: endEmbed});

var embedLel = new Discord.RichEmbed()
.setColor("#f558c9")
.setDescription("Ödülünü Moderatörleri Etiketleyerek Alabilirsin!").setFooter("(TrexBot çekiliş sistemi)")
message.guild.channels.find("name" , room).send(`**Tebrikler ${gFilter}! `${title}` kazandın!**` , embedLel)
}, ms(duration));
});
} catch(e) {
message.channel.send(`:heavy_multiplication_x:| **Maalesef gerekli yetkilerim bulunmamakta**`);
console.log(e);
}
});
});
});
});
});
});


};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 2
};
exports.help = {
name: 'çekiliş',
description: 'Çekiliş mi? Sunucunda güzel şeyler olacak :3',
usage: 'çekiliş'
};
     
 
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.