From 8ae3d1f6ed213817540c07acdc908506c3fcb586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Mon, 22 Jun 2020 14:07:23 +0000 Subject: [PATCH 1/5] Update memerclub.js --- commands/general/memerclub.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/general/memerclub.js b/commands/general/memerclub.js index 96d148fb..46f3a20c 100644 --- a/commands/general/memerclub.js +++ b/commands/general/memerclub.js @@ -12,6 +12,7 @@ class memerclubCommand extends Command { { id: 'text', type: 'string', + default: '', match: 'rest' } ], From 3ac4d298f84e09c9f828f579e0819d531f7e9ff0 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 22 Jun 2020 18:35:07 +0200 Subject: [PATCH 2/5] Don't spam roles update --- event/listeners/log/roleUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/listeners/log/roleUpdate.js b/event/listeners/log/roleUpdate.js index 45eae9fb..bb8a9a4d 100644 --- a/event/listeners/log/roleUpdate.js +++ b/event/listeners/log/roleUpdate.js @@ -13,7 +13,7 @@ class roleUpdateListener extends Listener { } async exec(oldRole, newRole) { - if (oldRole === newRole) return; + if (oldRole === newRole || oldRole.rawPosition !== newRole.rawPosition) return; const guild = oldRole.guild; const logStats = await LogStats.findOne({where: {guild: guild.id}}); if (logStats) { From 2d95e3c294d945e1df92a6e7498666df1fc20c40 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 22 Jun 2020 18:52:27 +0200 Subject: [PATCH 3/5] Add MANAGE_SERVER permission for the bot --- commands/admin/log.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/admin/log.js b/commands/admin/log.js index 03bfb9be..7c447320 100644 --- a/commands/admin/log.js +++ b/commands/admin/log.js @@ -7,6 +7,7 @@ class logCommand extends Command { aliases: ['log', 'logging'], category: 'admin', userPermissions: ['MANAGE_MESSAGES'], + clientPermissions: ['MANAGE_SERVER'], channel: 'guild', description: { content: 'Setup logging in current channel (W.I.P)', From bdf2b09f05a345f95ae7c4ad65a655c6f28ef34f Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 22 Jun 2020 19:50:59 +0200 Subject: [PATCH 4/5] fix client permission --- commands/admin/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/admin/log.js b/commands/admin/log.js index 7c447320..63c7e7e2 100644 --- a/commands/admin/log.js +++ b/commands/admin/log.js @@ -7,7 +7,7 @@ class logCommand extends Command { aliases: ['log', 'logging'], category: 'admin', userPermissions: ['MANAGE_MESSAGES'], - clientPermissions: ['MANAGE_SERVER'], + clientPermissions: ['MANAGE_GUILD'], channel: 'guild', description: { content: 'Setup logging in current channel (W.I.P)', From 8bc393937adf3502d66b0c0e3c5d207331eff3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Fri, 3 Jul 2020 16:19:32 +0000 Subject: [PATCH 5/5] don't allow discord.com/invite --- commands/general/tweet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index f98ab422..e13e4381 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -53,7 +53,7 @@ class tweetCommand extends Command { if (args.text) - if (args.text.includes('discord.gg')) return message.channel.send('No discord invite allowed.'); + if (args.text.includes('discord.gg') || args.text.includes('discord.com/invite/')) return message.channel.send('No discord invite allowed.'); const client = this.client;