Help with custom made discord bot

Like to replace this *const Discord = require (‘discord.js’);

const client = new Discord.Client();

const prefix = ‘-’;

const fs = require(‘fs’);

client.commands = new Discord.Collection();

client.commands.set(command.name, command);

client.on (‘ready’, () => {
console.log(‘The utility management system is online!’);
});

client.on(‘message’, message => {

if(!message.content.startsWith(prefix) || message.author.bot) return;

const args =message.content.slice(prefix.length).split(/ +/);
const command =args.shift().toLowerCase();

const commandFiles = fs.readdirSync('./kick.js/').filter(file => file.endsWith ('.js'));

for (const file of commandFiles){
const command = require (’./kick.js/’);
if(command === ‘kick’){
client.commmands.get(‘kick’).execute(message, args);
}
else if(command === ‘ban’){
client.commmands.get(‘ban’).execute(message, args);
}
}});

client.login(‘bruh no’);
*

with what?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.