1
0
Fork 0
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

31 lines
1.0 KiB
JavaScript

const { CommandoClient } = require('discord.js-commando');
const path = require('path');
const { token } = require('./config.json');
6 years ago
const client = new CommandoClient({
6 years ago
commandPrefix: 'hehe ',
6 years ago
owner: '267065637183029248',
invite: 'https://discord.gg/SsMCsVY',
});
client.registry
6 years ago
.registerDefaultTypes()
.registerGroups([
['general', 'The most used commands'],
['admin', 'Commands to make admin life easier'],
['owner', 'Commands the owner can use to manage the bot'],
])
.registerDefaultGroups()
.registerDefaultCommands()
.registerCommandsIn(path.join(__dirname, 'commands'));
6 years ago
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}! (${client.user.id})`);
console.log(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users.`);
client.user.setActivity('with nobody :(');
});
client.on('error', console.error);
6 years ago
client.login(token);