Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on("message",async msg => {//Alpha_Codes
- var prefix = '#';
- if(msg.content.startsWith(prefix + "تقديم")){
- var channel = msg.guild.channels.find("name", "✽・تقديمات");
- if(!channel) return msg.reply("**لا اجد روم باْسم `التقديمات`**")
- let fltr = m => m.author.id === msg.author.id
- let name = '';
- await msg.reply('**اكتب اسمك الان**').then(e => {
- msg.channel.awaitMessages(fltr, {
- time: 600000,
- max: 1
- })
- .then(co => {
- name = co.first().content
- co.first().delete()
- let age = '';
- e.edit(`**${msg.author} اكتب خبراتك**`).then(e => {
- msg.channel.awaitMessages(fltr, {
- time: 600000,
- max: 1
- })
- .then(co => {
- age = co.first().content
- co.first().delete();
- let from = '';
- e.edit(`**${msg.author} وش الفرق بين var و const**`).then(e => {///وش الفرق بين var و const
- msg.channel.awaitMessages(fltr, {
- time: 600000,
- max: 1
- })
- .then(co => {
- from = co.first().content
- co.first().delete();
- e.edit("**هل انت متأكد من التقديم ؟ | ✅ نعم | ❌ لا**").then(o => {
- o.react("❌")
- .then(() => o.react('✅'))
- .then(() =>o.react('❌'))
- let react1 = (reacton, user) => reacton.emoji.name === '✅' && user.id === msg.author.id
- let react2 = (reacton, user) => reacton.emoji.name === '❌' && user.id === msg.author.id
- let cr1 = o.createReactionCollector(react1, { time: 12000 });
- let cr2 = o.createReactionCollector(react2, { time: 12000 });
- cr2.on("collect", r => {
- msg.reply("**تم الغاء التقديم**").then(k => {
- o.delete(2222);
- k.delete(2222);
- })
- })
- cr1.on("collect", r => {
- msg.reply("**تم التقديم بنجاح!**").then(b => {
- o.delete(2222);
- b.delete(2222);
- let emb = new Discord.RichEmbed()
- .setTitle("**تقديم للإدارة**")
- .addField("**الاسم**", name)
- .addField("**خبرتاته**", age)
- .addField("**الفرق بين var و const**", from)///.addField("**فائدة الجيسون**", john)
- .addField("**الحساب**", msg.author)
- .addField("**ايدي الحساب**", msg.author.id)
- .setThumbnail(msg.author.avatarURL)
- channel.send(emb);
- })
- })
- })
- })
- })
- })
- })
- })
- })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment