Compare commits

..

2 Commits

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

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

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

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

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

@ -88,8 +88,9 @@ 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})
m.message.delete();
if(m.customId.includes('decline')) return;
collector.stop();
m.message.delete();
let strokedID;
let strikerID = strokedID = author.id;
for(let i = 0; i<guilds.length; i++)

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

@ -43,6 +43,7 @@ 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,6 +48,7 @@ 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,6 +68,7 @@ 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,6 +51,7 @@ 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,6 +23,9 @@ 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;
@ -67,6 +70,7 @@ const strikeM = require('../../models/strikes');
collector.on('collect', async m =>
{
m.message.delete()
collector.stop();
});
collector.on('end', async ()=>
{

@ -120,6 +120,7 @@ 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,6 +58,7 @@ 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,6 +54,7 @@ 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);
@ -108,6 +109,7 @@ 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,6 +55,7 @@ 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);
@ -100,6 +101,7 @@ 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,6 +56,7 @@ 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);
@ -96,6 +97,7 @@ 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,6 +550,7 @@ class ErrorMessage
collector.on('collect', async m =>
{
collector.stop();
message.delete().then(()=>m.message.delete())
.catch(()=>m.message.delete());
});

Loading…
Cancel
Save