/[sudobot]/trunk/commands/a.js
ViewVC logotype

Annotation of /trunk/commands/a.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 39 - (hide annotations)
Mon Jul 29 17:28:19 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: text/javascript
File size: 515 byte(s)
Updated anti-raid systems
1 rakin 39 const MessageEmbed = require('../src/MessageEmbed');
2     const { version } = require('./help');
3     const { lockAll } = require('./lockall');
4    
5     module.exports = {
6     async handle(msg) {
7     let role = msg.guild.roles.everyone;
8     let channels = msg.guild.channels.cache.filter(channel => app.config.get('raid').excluded.indexOf(channel.id) === -1 && app.config.get('raid').excluded.indexOf(channel.parent?.id) === -1 && channel.type === 'GUILD_TEXT');
9    
10     await lockAll(role, channels, true);
11     }
12     };

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26