Created
December 6, 2019 20:07
-
-
Save karamankaan/084fb72f7d74c8f4fe38530e1a33a106 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 a = message.mentions.roles.first() || message.guild.roles.get(args.join(' ')) | |
if (!a) | |
message.channel.send("Lütfen devam etmem için bir rol etiketleyiniz.") | |
else { | |
let i = db.set(`misafir_${message.guild.id}`, a.id) | |
message.channel.send(`Misafir rolü başarıyla ${a} olarak ayarlandı.\nKaydedilen rolün ID'si: **` + a.id + `**`) | |
} | |
} | |
exports.conf = { | |
enabled: true, | |
guildOnly: true, | |
aliases: ["mrol", "misafir"], | |
permLevel: 0 | |
}; | |
exports.help = { | |
name: "misafirrol", | |
description: "s", | |
usage: "s" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment