NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

var moment = require("moment");
moment.locale("tr");
require("moment-duration-format");
const Discord = require("discord.js");
const ms = require("ms");
const tokuchi = require("pretty-ms");

module.exports.run = async (client, message, args) => {
const yetki = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setDescription("Bir kişiyi susturmak için yeterli yetkiye sahip değilsin.")
.setColor("RANDOM");
const etiket = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setDescription("Susturmak istediğin kişiyi belirt veya IDsini gir.")
.setColor("RANDOM");
const kendi = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setDescription("Kendi kendini susturamazsın.")
.setColor("RANDOM");
if (!message.member.hasPermission("MANAGE_MESSAGES"))
return message.channel.send(yetki);
const kullanıcı =
message.mentions.members.first() || message.guild.members.get(args[0]);
let muterole = message.guild.roles.find(m => m.name === "Muted");
if (!kullanıcı) return message.channel.send(etiket);
if (kullanıcı.id === message.author.id) return message.channel.send(kendi);
let mems = message.guild.member(kullanıcı);
let tarih = Date.parse(
new Date().toLocaleString("tr-TR", { timeZone: "Asia/Istanbul" })
);
let argüment = args[1];
let time = ms(argüment);
let cıkaralım = time + tarih;
let şuanki = moment(tarih).format("LLL");
let sonraki = moment(cıkaralım).format("LLL");
try {
let belirli = tokuchi(time, { verbose: true });
} catch (esrr) {
message.react("❌");
const kullanım = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setColor("RANDOM")
.setDescription("Doğru Kullanım `.mute @tokuchi/ID 10m sebep`");
message.channel.send(kullanım);
}
let belirli = tokuchi(time, { verbose: true })
.replace("minutes", "Dakika")
.replace("minute", "Dakika")
.replace("hours", "Saat")
.replace("hour", "Saat")
.replace("seconds", "Saniye")
.replace("second", "Saniye")
.replace("days", "Gün")
.replace("day", "Gün")
.replace("years", "Yıl")
.replace("year", "Yıl");
const embedim = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setDescription("Bir zaman belirtmelisin.")
.setColor("RANDOM");
const embedimz = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setDescription("Bir sebep belirtmelisin.")
.setColor("RANDOM");
if (!argüment) return message.channel.send(embedim);
let mutesebep = args.slice(2).join(" ");
if (!mutesebep) return message.channel.send(embedimz);

await kullanıcı.addRole(muterole.id);
const mutelendı = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL)
.setColor("RANDOM")
.setDescription(
"" +
kullanıcı +
" kişisi **" +
mutesebep +
"** sebebiyle **" +
belirli +
"** susturuldu.n───────────────nMute Atılan Tarih: **" +
şuanki +
"**nMute Bitiş Tarihi: **" +
sonraki +
"**nMute Atılan Kanal: "+message.channel+" "
);
message.react("✅");
client.channels.get("686564595892355074").send(mutelendı);

setTimeout(function() {
kullanıcı.removeRole(muterole.id);
}, ms(argüment));
};

exports.conf = {
enabled: true,
guildOnly: false,
aliases: ["mute"],
permLevel: 0
};

exports.help = {
name: "mute",
description: "[Admin Komutu]",
usage: "yaz-bot [yazdırmak istediğiniz şey]"
};
     
 
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.