Compare commits

..

No commits in common. '330113b11b4c37fed7a78a38dea54f272eeefdf3' and 'f2afc58fc957f1e23d818fb2684b60fc7ec6a4fe' have entirely different histories.

@ -50,7 +50,6 @@ module.exports = class leave extends Command
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
});

@ -49,7 +49,6 @@ module.exports = class leave extends Command
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
});

@ -56,7 +56,6 @@ const {EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType,
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
});

@ -74,7 +74,6 @@ const {EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType,
});
collector.on('collect', async m => {
collector.stop();
message.delete();
m.message.delete();
});

@ -49,7 +49,6 @@ class Guilds extends Command
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
});

@ -21,7 +21,7 @@ const {Command} = require('../../lib.js')
name: 'purge',
group:'admin',
memberName: 'purge',
description: 'Kicks everyone that has no roles on the server and is on the server for more than 10 days.',
description: 'Kicks everyone that matches has no roles on the server and is on the server for more than 10 days.',
needsAdmin:true,
hidden:false
})
@ -73,7 +73,6 @@ const {Command} = require('../../lib.js')
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
});

@ -88,9 +88,8 @@ const strikeM = require('../../models/strikes');
collector.on('collect', async m =>
{
if(m.user.id !== author.id) return m.reply({content:'You are not the requester.', ephemeral:true})
if(m.customId.includes('decline')) return;
collector.stop();
m.message.delete();
if(m.customId.includes('decline')) return;
let strokedID;
let strikerID = strokedID = author.id;
for(let i = 0; i<guilds.length; i++)

@ -64,7 +64,6 @@ const {Command, } = require('../../lib.js');
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete()
});

@ -43,7 +43,6 @@ class setYTFeed extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
_delete(message, m);
});
collector.on('end', async m=>

@ -48,7 +48,6 @@ class setYTFeed extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
_delete(message, m);
});
collector.on('end', async m=>

@ -68,7 +68,6 @@ class setfreegameschannel extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete()
});

@ -51,7 +51,6 @@ class setrustcommitschannel extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
_delete(message, m);
});
collector.on('end', async m=>

@ -23,9 +23,6 @@ const strikeM = require('../../models/strikes');
var confirm = await this.confirmArgs(message,args);
if(confirm=='Error') return new ErrorMessage(this.client).send(ErrorType.Arguments, message, ['Use the mention method to pass the user.', 'Make sure you provide a reason.','Make sure to only mention one person per strike.'])
const Stroked = message.mentions.users.toJSON()[0];
//! This gotta be encrypted.
var strike = new strikeM();
strike.strikerID = message.author.id;
strike.strikerName = message.author.username;
@ -70,7 +67,6 @@ const strikeM = require('../../models/strikes');
collector.on('collect', async m =>
{
m.message.delete()
collector.stop();
});
collector.on('end', async ()=>
{

@ -120,7 +120,6 @@ module.exports = class play extends Command
collector.on('collect', async m =>
{
// console.log(m)
collector.stop();
message.delete();
m.message.delete();
if(m.customId != 'PlayUserChoice')

@ -58,7 +58,6 @@ var Job = require('cron').CronJob;
collector.on('collect', async m =>
{
if(m.customId[m.customId.length-1]==1) timer.stop();
collector.stop();
message.delete();
m.message.delete();
});

@ -54,7 +54,6 @@ class anime extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
if(m.customId[m.customId.length-1]!=4) sendMessage(data[m.customId[m.customId.length-1]].id);
@ -109,7 +108,6 @@ class anime extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
m.message.delete();
});
collector.on('end', async ()=>

@ -55,7 +55,6 @@ class char extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
if(m.customId[m.customId.length-1]!=4) sendMessage(data[m.customId[m.customId.length-1]].id);
@ -101,7 +100,6 @@ class char extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
m.message.delete();
});
collector.on('end', async ()=>

@ -56,7 +56,6 @@ class manga extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
message.delete();
m.message.delete();
if(m.customId[m.customId.length-1]!=4) sendMessage(data[m.customId[m.customId.length-1]].id);
@ -97,7 +96,6 @@ class manga extends Command{
const collector = message.channel.createMessageComponentCollector({ filter, time: 60000 });
collector.on('collect', async m =>
{
collector.stop();
m.message.delete();
});
collector.on('end', async ()=>

@ -550,7 +550,6 @@ class ErrorMessage
collector.on('collect', async m =>
{
collector.stop();
message.delete().then(()=>m.message.delete())
.catch(()=>m.message.delete());
});

Loading…
Cancel
Save