mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-10 19:04:21 +02:00
grand commit que tutur attend ( marche pas le raidmode en dev)
sinon il y a pleins de truc comme les anti raid , des coorectif ect
This commit is contained in:
@@ -23,8 +23,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
Game.startGame();
|
||||
|
||||
Game.on('gameOver', result => {
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
const { EmbedBuilder } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "claque",
|
||||
category: 'game',
|
||||
description: "Fait une claque à un utilisateur mentionné ou à un utilisateur dont le nom est fourni en argument.",
|
||||
emote: '👊',
|
||||
utilisation : '+claque [@user]',
|
||||
async execute(message, args, client) {
|
||||
let user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
|
||||
claque = ['https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExb25yejVkZzFjd2dhbXJla2UyZWx6cmN5dGt4bzBuYXNxamNuZ2ZuaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/gSIz6gGLhguOY/giphy.gif', 'https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExMGZkcHQ4YXZ1N3M4YzhlenVscnFtbmltdHhxN25vemFpbHRtejcwNyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/XDRoTw2Fs6rlIW7yQL/giphy.gif', 'https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExaW9iOWQ5NTYxMWV6YjUxbWMwdG5idXJqdjgxbHdtc2xwZGM5dXI3ayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/mEtSQlxqBtWWA/giphy.gif', 'https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExb2xlbDc5dW02aTRiMmx5amNrd29venFiaG5sbGQ0anhobWt2M3A5OSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/uG3lKkAuh53wc/giphy.gif','https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExZjFhZXpmZHd3aXF2b3dmaGM4cmZxNHdmMDdxMW11ZzU0ZXd4a2U2MCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3XlEk2RxPS1m8/giphy.gif','https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExZDE3MXA0cGdxemoxZDdsdGdma3h3Y3pneHh5M214MzE2ZGx6cnJhZiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/qyjexFwQwJp9yUvMxq/giphy.gif','https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExcWxwdWUyNDZ6MG04Z2JxY2h5d2xwZXBoZ2d3NHhmMXNzejk1cDBudCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/lX03hULhgCYQ8/giphy.gif', 'https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExOW5iNWlqOXNzajZkdWN5Y212ZWcwenA3ZW5zamI1Y21qODQzams4MyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/u8maN0dMhVWPS/giphy.gif'];
|
||||
let randomClap = claque[Math.floor(Math.random() * claque.length)];
|
||||
|
||||
if (user) {
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(`👊 **${message.author.username}** fait une claque à **${user.user.username}**`)
|
||||
.setImage(randomClap)
|
||||
.setTimestamp()
|
||||
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL({ dynamic: true })})
|
||||
.setFooter({text: client.user.username, iconURL: client.user.displayAvatarURL({ dynamic: true })});
|
||||
message.channel.send({ embeds: [embed] });
|
||||
} else {
|
||||
if (args[0]) {
|
||||
let member = message.guild.members.cache.find(m => m.displayName.toLowerCase().indexOf(args[0].toLowerCase()) > -1);
|
||||
if (!member) member = client;
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(`👊 **${message.author.username}** fait une claque à **${member.user.username}**`)
|
||||
.setImage(randomClap)
|
||||
.setTimestamp()
|
||||
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL({ dynamic: true })})
|
||||
.setFooter({text: client.user.username, iconURL: client.user.displayAvatarURL({ dynamic: true })});
|
||||
message.channel.send({ embeds: [embed] });
|
||||
} else {
|
||||
let randomMember = message.guild.members.cache.random();
|
||||
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(`👊 **${message.author.username}** fait une claque à **${randomMember.user.username}**`)
|
||||
.setImage(randomClap)
|
||||
.setTimestamp()
|
||||
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL({ dynamic: true })})
|
||||
.setFooter({text: client.user.username, iconURL: client.user.displayAvatarURL({ dynamic: true })});
|
||||
message.channel.send({ embeds: [embed] });
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -24,7 +24,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
Game.startGame();
|
||||
Game.on('gameOver', result => {
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: 'epicgamer',
|
||||
description: 'Évaluez votre statut de gamer épique.',
|
||||
emote: '🎮',
|
||||
utilisation: 'epicgamer ',
|
||||
category: 'game',
|
||||
|
||||
async execute(message, args, client) {
|
||||
var result = Math.ceil(Math.random() * 100);
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle(`🎮・Epic gamer rate`)
|
||||
.setDescription(`You are ${result}% epic gamer!`)
|
||||
.setColor('#0099ff');
|
||||
|
||||
message.reply({ embeds: [embed] });
|
||||
},
|
||||
};
|
||||
@@ -53,7 +53,5 @@ module.exports = {
|
||||
|
||||
Game.startGame();
|
||||
|
||||
Game.on('gameOver', result => {
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -29,8 +29,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
Game.startGame();
|
||||
|
||||
Game.on('gameOver', result => {
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -27,8 +27,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
Game.startGame();
|
||||
|
||||
Game.on('gameOver', result => {
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
const { EmbedBuilder } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "kiss",
|
||||
category: 'game',
|
||||
description: "Fait un bisou à un utilisateur mentionné ou à un utilisateur dont le nom est fourni en argument.",
|
||||
emote: '💋',
|
||||
utilisation : '+kiss [@user]',
|
||||
async execute(message, args, client) {
|
||||
let user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
|
||||
kiss = ['https://cdn.weeb.sh/images/rymvn6_wW.gif','https://cdn.weeb.sh/images/H1a42auvb.gif','https://cdn.weeb.sh/images/H1Gx2aOvb.gif','https://cdn.weeb.sh/images/rJrCj6_w-.gif','https://cdn.weeb.sh/images/B13D2aOwW.gif','https://cdn.weeb.sh/images/BJLP3a_Pb.gif','https://cdn.weeb.sh/images/Hy-oQl91z.gif','https://cdn.weeb.sh/images/SJINn6OPW.gif','https://cdn.weeb.sh/images/ByiMna_vb.gif','https://cdn.weeb.sh/images/rymvn6_wW.gif','https://cdn.weeb.sh/images/BJSdQRtFZ.gif','https://cdn.weeb.sh/images/S1PCJWASf.gif','https://cdn.weeb.sh/images/SJ3dXCKtW.gif','https://cdn.weeb.sh/images/HJlWhpdw-.gif','https://cdn.weeb.sh/images/rkde2aODb.gif','https://cdn.weeb.sh/images/SybPhp_wZ.gif','https://cdn.weeb.sh/images/rkFSiEedf.gif','https://cdn.weeb.sh/images/r1cB3aOwW.gif','https://cdn.weeb.sh/images/BJv0o6uDZ.gif','https://cdn.weeb.sh/images/B13D2aOwW.gif','https://cdn.weeb.sh/images/Skv72TuPW.gif','https://cdn.weeb.sh/images/S1qZksSXG.gif','https://cdn.weeb.sh/images/Sk1k3TdPW.gif','https://cdn.weeb.sh/images/S1-KXsh0b.gif','https://cdn.weeb.sh/images/B1yv36_PZ.gif','https://cdn.weeb.sh/images/BJx2l0ttW.gif']
|
||||
let randomKiss = kiss[Math.floor(Math.random() * kiss.length)];
|
||||
|
||||
if (user) {
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(`💋 **${message.author.username}** fait un bisou à **${user.user.username}**`)
|
||||
.setImage(randomKiss)
|
||||
.setTimestamp()
|
||||
.setAuthor({name: message.author.username,iconURL: message.author.avatarURL({ dynamic: true })})
|
||||
.setFooter({text: client.user.username,iconURL: client.user.displayAvatarURL({ dynamic: true })});
|
||||
message.channel.send({ embeds: [embed] });
|
||||
} else {
|
||||
if (args[0]) {
|
||||
let member = message.guild.members.cache.find(m => m.displayName.toLowerCase().indexOf(args[0].toLowerCase()) > -1);
|
||||
if (!member) member = client;
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(`💋 **${message.author.username}** fait un bisou à **${member.user.username}**`)
|
||||
.setImage(randomKiss)
|
||||
.setTimestamp()
|
||||
.setAuthor({name: message.author.username,iconURL: message.author.avatarURL({ dynamic: true })})
|
||||
.setFooter({text: client.user.username,iconURL: client.user.displayAvatarURL({ dynamic: true })});
|
||||
message.channel.send({ embeds: [embed] });
|
||||
} else {
|
||||
let randomMember = message.guild.members.cache.random();
|
||||
|
||||
let embed = new EmbedBuilder()
|
||||
.setDescription(`💋 **${message.author.username}** fait un bisou à **${randomMember.user.username}**`)
|
||||
.setImage(randomKiss)
|
||||
.setTimestamp()
|
||||
.setAuthor({name: message.author.username,iconURL: message.author.avatarURL({ dynamic: true })})
|
||||
.setFooter({text: client.user.username,iconURL: client.user.displayAvatarURL({ dynamic: true })});
|
||||
message.channel.send({ embeds: [embed] });
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
+1
-1
@@ -32,7 +32,7 @@ module.exports = {
|
||||
const percent = parseInt(string.substr(0, 2), 10);
|
||||
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setTitle("❤️ LoveCalc")
|
||||
.setTitle("💖 Calcul de l'amour 💖")
|
||||
.setDescription(`${firstMember.user.username} et ${secondMember.user.username} s'aime à ${percent}% `)
|
||||
.setImage(firstMember.user.displayAvatarURL({ dynamic: true }) + secondMember.user.displayAvatarURL({ dynamic: true }))
|
||||
.setColor('#C71585')
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = {
|
||||
description: 'Proposez en mariage à un utilisateur',
|
||||
emote: '💍',
|
||||
category: 'game',
|
||||
utilisation: '+marry @user',
|
||||
utilisation: 'marry @user',
|
||||
async execute(message, args, client) {
|
||||
const targetUser = message.mentions.users.first() || message.guild.members.cache.get(args[0]);
|
||||
if (!targetUser) {
|
||||
@@ -28,7 +28,7 @@ module.exports = {
|
||||
.setStyle(ButtonStyle.Success),
|
||||
);
|
||||
|
||||
message.channel.send({ content: `${targetUser}`, components: [row] });
|
||||
message.channel.send({ content: `${targetUser} voulez vous vous marier avec <@${message.author.id}>`, components: [row] });
|
||||
},
|
||||
};
|
||||
async function checkIfMarried(userId, client) {
|
||||
|
||||
@@ -39,6 +39,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
const result = await Game.startGame();
|
||||
console.log(result); // => { result... }
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,27 @@
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: 'rickroll',
|
||||
description: 'Never gonna give you up.',
|
||||
emote: '😂',
|
||||
utilisation: 'rickroll ',
|
||||
category: 'game',
|
||||
|
||||
async execute(message, args, client) {
|
||||
const roll = [
|
||||
"Never gonna give you up",
|
||||
"Never gonna let you down",
|
||||
"Never gonna run around and desert you",
|
||||
"Never gonna make you cry",
|
||||
"Never gonna say goodbye",
|
||||
"Never gonna tell a lie and hurt you",
|
||||
];
|
||||
const rick = roll[Math.floor(Math.random() * roll.length)];
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle(`😂・${rick}`)
|
||||
.setImage('https://i.pinimg.com/originals/88/82/bc/8882bcf327896ab79fb97e85ae63a002.gif');
|
||||
|
||||
message.reply({ embeds: [embed] });
|
||||
},
|
||||
};
|
||||
@@ -20,7 +20,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
Game.startGame();
|
||||
Game.on('gameOver', result => {
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -5,7 +5,7 @@ module.exports = {
|
||||
description: 'Dissoudre un mariage',
|
||||
emote: '💍',
|
||||
category: 'game',
|
||||
utilisation: '+unmarry',
|
||||
utilisation: 'unmarry',
|
||||
execute(message, args, client) {
|
||||
|
||||
checkIfMarried(message.author.id, client).then(isMarried => {
|
||||
|
||||
@@ -71,8 +71,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
Game.startGame();
|
||||
Game.on('gameOver', result => {
|
||||
console.log(result); // => { result... }
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user