You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

32 lines
808 B

5 years ago
console.clear()
const { CommandoClient } = require('discord.js-commando');
const path = require('path');
const axios = require('axios')
const config = require('./json/config.json');
axios.defaults.headers.Authorization = `Bearer ${config.authToken}`
const client = new CommandoClient({
commandPrefix: '.',
owner: '306849399336861707'
});
client.registry
.registerDefaultTypes()
.registerGroups([
['clash', 'Clash commands'],
['bot', 'Bot commands']
])
.registerDefaultGroups()
.registerDefaultCommands()
.registerCommandsIn(path.join(__dirname, 'commands'));
client.once('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
client.user.setActivity('.help');
});
client.on('error', console.error);
client.login(config.discordToken);