Skip to content

Commit

Permalink
Merge pull request #20 from Ayrox/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Ayrox authored Oct 12, 2021
2 parents 01ec452 + 63db5b4 commit 7392c67
Show file tree
Hide file tree
Showing 17 changed files with 1,460 additions and 34 deletions.
1,390 changes: 1,385 additions & 5 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"discord.js": "^13.1.0",
"dotenv": "^10.0.0",
"glob": "^7.2.0",
"images-scraper": "^6.4.0",
"pokedex-promise-v2": "^3.3.2",
"snekfetch": "^4.0.4",
"util": "^0.12.4"
Expand Down
3 changes: 2 additions & 1 deletion src/Structures/Commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ module.exports = async (client) => {
return Table.addRow(command.name, "🔴 FAILED", "Permission is invalid.");
}


if (!command.active)
return Table.addRow(command.name, "⚠️ DESACTIVATED");

client.commands.set(command.name, command);
CommandsArray.push(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
name: "eval",
description: "eval",
permission: "ADMINISTRATOR",
active: false,

options: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module.exports = {
name: "testing",
description: "Testing",
permission: "ADMINISTRATOR",

active: false,

execute(message) {

//this.client.emit("guildMemberAdd", message.member)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
name: "logo",
description: "Display the logo of SensÔkami",
permission: "ADMINISTRATOR",

active:true,

async execute(message,client) {
var Kwey = client.users.cache.get("232110364186247168")
Expand All @@ -23,7 +23,7 @@ module.exports = {

await message.deferReply()

await message.editReply({embeds : [{description : "Loading Image ...", color:0xFF6800}]})
await message.editReply({embeds : [{description : "Loading Image ...", color:0xFF6800}]})
.then(async (resultMessage) => {
resultMessage.edit({ embeds: [logoembed], files: [logoImg] })
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
name: "ping",
description: "Reply the bot ping",
permission: "ADMINISTRATOR",

active:true,

async execute(message, client) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
name: "serverinfo",
description: "Some informations of the server",
permission: "ADMINISTRATOR",

active:true,

async execute(message) {

Expand All @@ -19,9 +19,9 @@ module.exports = {
.setColor("#FF6800")
.setThumbnail(icon)
.addField("Nom du Serveur : ", `${message.guild.name}`)
.addField("Crée le : ", `${CreatedDate.getDate()}/${CreatedDate.getMonth()+1}/${CreatedDate.getFullYear()} à ${CreatedDate.getHours()}h${String(CreatedDate.getMinutes()).padStart(2, '0')}min${String(CreatedDate.getSeconds()).padStart(2, '0')}s`)
.addField("Crée le : ", `<t:${parseInt(message.guild.createdAt / 1000)}:R>`)
.addField("Par : ", `${ await message.guild.fetchOwner() }`)
.addField("Tu as rejoins le : ", `${Joindate.getDate()}/${Joindate.getMonth()+1}/${Joindate.getFullYear()} à ${Joindate.getHours()}h${String(Joindate.getMinutes()).padStart(2, '0')}min${String(Joindate.getSeconds()).padStart(2, '0')}s`)
.addField("Tu as rejoins le : ", `<t:${parseInt(message.member.joinedAt / 1000)}:R>`)
.addField("Total des membres :", `${message.guild.memberCount} `)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@ const { ContextMenuInteraction, MessageEmbed } = require("discord.js");
module.exports = {

name: "userinfo",
//description: "Display user's information",
type: "USER",
permission: "ADMINISTRATOR",

/**
*
* @param {ContextMenuInteraction} interaction
*/
active:true,

async execute(interaction) {

const target = await interaction.guild.members.fetch(interaction.targetId);

const userMessage = new MessageEmbed()
.setColor("DARK_NAVY")
.setColor("AQUA")
.setAuthor(target.user.tag, target.user.avatarURL({ dynamic: true, size: 512 }))
.setThumbnail(target.user.avatarURL({ dynamic: true, size: 512 }))
.setDescription("User's Information")
Expand Down
45 changes: 45 additions & 0 deletions src/commands/Miscellaneous/bald.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const { MessageEmbed, MessageAttachment } = require('discord.js')
const Scrapper = require('images-scraper')

const google = new Scrapper({
puppeteer: {
headless:true
}
})

module.exports = {

name: "bald",
description: "GROSSE DÉDICACE A TOI JÉRÉMIE <3",
permission: "ADMINISTRATOR",
active: true,

async execute(message) {

await message.deferReply()

var rnd = Math.floor(Math.random()*200)
console.log(rnd)

await message.editReply({embeds : [{description : "⏳ En attente de Google Image ... ", color:0xFF6800}]})
.then(async (resultMessage) => {
const img_result = await google.scrape("bald guy", 200)

const Attach = new MessageAttachment(`${img_result[rnd].url}`,"bald_guy.png")

let baldEmbed = new MessageEmbed()
.setColor(0xEDB987)
.setDescription(`**Jérémie n°${rnd}**`)
.setImage("attachment://bald_guy.png")
.setTimestamp()

resultMessage.edit({
embeds: [baldEmbed],
files:[Attach]
})
});


}
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
name: "pokemon",
description: "Choisis ton Pokemon",
permission: "ADMINISTRATOR",

active: true,

options: [
{
name: "pokemon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
name: "pokemonlist",
description: "Affiche 1 à 10 pokemon random",
permission: "ADMINISTRATOR",
active:true,

options: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
name: "trepuecinfo",
description: "Some informations of Mr François Le Trepuec",
permission: "ADMINISTRATOR",
active:true,

async execute(message) {

Expand All @@ -19,7 +20,7 @@ module.exports = {

await message.deferReply()

await message.editReply({embeds : [{description : "Loading Image ...", color:0xFF6800}]})
await message.editReply({embeds : [{description : "Loading Image ...", color:0xFF6800}]})
.then(async (resultMessage) => {
resultMessage.edit({ embeds: [trepuecembed], files: [trepuecAttach] })
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
name: "zap",
description: "Euuuuh....",
permission: "ADMINISTRATOR",

active:true,

execute(message,client) {
var Kwey = client.users.cache.get("232110364186247168")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ module.exports = {

name: "report",
description: "Use for report an annoying guy",
permission:"ADMINISTRATOR",
permission: "ADMINISTRATOR",
active:true,

options: [
{
name: 'member',
Expand Down Expand Up @@ -38,17 +40,15 @@ module.exports = {

let rreason = message.options.getString('reason');
if (!rreason) {rreason = "Aucune raison n'a été indiqué"}

let messageDate = message.createdAt



let reportEmbed = new MessageEmbed()
.setTitle(":satellite: Signalement Détecté :satellite:")
.setColor("#000000")
.addField("Membre signalé : ", `${rUser} avec comme ID : ${rUser.id}`)
.addField("Signalé par : ", `${message.user.username} avec comme ID : ${message.user.id}`)
.addField("Dans le salon : ", message.channel.name)
.addField("Date : ", `${messageDate.getDate()}/${messageDate.getMonth()+1}/${messageDate.getFullYear()} à ${messageDate.getHours()}h${String(messageDate.getMinutes()).padStart(2, '0')}min${String(messageDate.getSeconds()).padStart(2, '0')}s`)
.addField("Membre signalé : ", `${rUser}`, true)
.addField("Signalé par : ", `${message.user.tag}`, true)
.addField("Dans le salon : ", message.channel.name, true)
.addField("Date : ", `<t:${parseInt(message.createdAt / 1000)}:R>`, true)
.addField("Raison : ", `${rreason}`);

let reportschannel = message.guild.channels.cache.find(channel => channel.id === config.channel.reportID);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/music/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
name: "join",
description: "Join your voice Channel",
permission: "ADMINISTRATOR",

active : true,

async execute(message) {
var channel = message.member.voice.channel;
Expand Down
3 changes: 1 addition & 2 deletions src/commands/music/leave.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ module.exports = {
name: "leave",
description: "Leave your voice Channel",
permission: "ADMINISTRATOR",
aliases: ['leave'],

active : true,

async execute(message) {

Expand Down

0 comments on commit 7392c67

Please sign in to comment.