mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
17 lines
341 B
JavaScript
17 lines
341 B
JavaScript
const files = [
|
|
require('./welcome'),
|
|
require('./updating'),
|
|
require('./ping_pong'),
|
|
];
|
|
|
|
const categories = {};
|
|
for (const file of files) {
|
|
file.category = file.category.toLowerCase();
|
|
if (!categories[file.category]) {
|
|
categories[file.category] = [];
|
|
}
|
|
categories[file.category].push(file);
|
|
}
|
|
|
|
module.exports = categories;
|