You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/index.js

27 lines
686 B
JavaScript

const { CommandoClient } = require('discord.js-commando');
const path = require('path');
const { token } = require('./config.json');
const client = new CommandoClient({
commandPrefix: 'haha ',
owner: '267065637183029248',
invite: 'https://discord.gg/bRCvFy9',
});
client.registry
.registerDefaultTypes()
.registerGroups([
['first', 'Your First Command Group'],
])
.registerDefaultGroups()
.registerDefaultCommands()
.registerCommandsIn(path.join(__dirname, 'commands'));
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}! (${client.user.id})`);
client.user.setActivity('with Commando');
});
client.on('error', console.error);
client.login(token);