Created
December 6, 2019 20:07
-
-
Save karamankaan/268b54619e5eb8a4b7fbfd96521a9b84 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) => { | |
let cinsiyet = args[0]; | |
if (!["e", "k"].includes(args[0])) return message.reply("lütfen cinsiyetinizi `e` ya da `k` şeklinde belirtin.") | |
let yaş = args[1]; | |
if (!yaş) return message.reply("yaşını yazmadın.") | |
let isim = args[2]; | |
if (!isim) return message.reply("ismini yazmadın.") | |
let a = await db.fetch(`kayit_${message.guild.id}`) | |
let b = message.guild.roles.find(`id`, a) | |
if (!b) { | |
} else { | |
message.member.addRole(b) | |
} | |
} | |
exports.conf = { | |
enabled: true, | |
guildOnly: true, | |
aliases: ["kayıt"], | |
permLevel: 0 | |
}; | |
exports.help = { | |
name: "isimyaş", | |
description: "s", | |
usage: "kayıt <cinsiyet> <yaş> <isim>" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment