This commit is contained in:
Loïc Bersier 2018-09-08 02:25:58 +02:00
parent a832e20447
commit c0d25dc4a5
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@ module.exports = class PruneCommand extends Command {
constructor(client) { constructor(client) {
super(client, { super(client, {
name: 'prune', name: 'prune',
aliases: ['purge'],
group: 'fun', group: 'fun',
memberName: 'prune', memberName: 'prune',
description: 'Replies with a meow, kitty cat.', description: 'Replies with a meow, kitty cat.',

View file

@ -1,7 +1,8 @@
const { CommandoClient } = require('discord.js-commando'); const { CommandoClient } = require('discord.js-commando');
const path = require('path'); const path = require('path');
const { token } = require('./config.json'); const { activity, token } = require('./config.json');
const responseObject = require("./reply.json"); const responseObject = require("./reply.json");
const fs = require("fs");
// Prefix and ownerID and invite to support server // Prefix and ownerID and invite to support server
const client = new CommandoClient({ const client = new CommandoClient({
@ -25,7 +26,7 @@ client.registry
client.on('ready', () => { client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}! (${client.user.id})`); 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.readyAt}`); console.log(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
client.user.setActivity('with nobody :('); client.user.setActivity(activity);
const channel = client.channels.get('487766113292124160'); const channel = client.channels.get('487766113292124160');
channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`); channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
}); });