Skip to content

Instantly share code, notes, and snippets.

@karamankaan
Created December 6, 2019 20:07
Show Gist options
  • Save karamankaan/3c2bba15c97602ac8c6088b811617661 to your computer and use it in GitHub Desktop.
Save karamankaan/3c2bba15c97602ac8c6088b811617661 to your computer and use it in GitHub Desktop.
const Discord = require("discord.js");
const client = new Discord.Client();
const db = require('quick.db');
exports.run = async (client, message, args) => {
var b = message.mentions.roles.first()
if (!b) return message.channel.send("Lütfen devam etmem için bir rol etiketleyiniz.")
else {
db.set(`kayit_${message.guild.id}`, b.id)
message.channel.send(`Kayıtlı rolü başarıyla ${b} olarak ayarlandı.\nKaydedilen rolün ID'si: **` + b.id + `**`)
}
}
exports.conf = {
enabled: true,
guildOnly: true,
aliases: ["krol", "kayıtlı", "kayıtrol"],
permLevel: 0
};
exports.help = {
name: "kayıtlırol",
description: "s",
usage: "s"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment