Created
December 6, 2019 20:07
-
-
Save karamankaan/3c2bba15c97602ac8c6088b811617661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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