{"size": 953, "ext": "js", "max_stars_repo_path": "Bot/src/listeners/ConsoleLog.js", "max_stars_repo_name": "SherOnDale/Moni", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Bot/src/listeners/ConsoleLog.js", "max_issues_repo_name": "SherOnDale/Moni", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Bot/src/listeners/ConsoleLog.js", "max_forks_repo_name": "SherOnDale/Moni", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.6538461538, "max_line_length": 106, "alphanum_fraction": 0.6390346275}
const { Listener } = require('discord-akairo');

class CommandStartedListener extends Listener {
    constructor() {
        super('commandstarted', {
            emitter: 'commandHandler',
            event: 'commandStarted'
        });
    }

    exec(message, command, args) {
    console.log('Command Name: ' + command.aliases);
    console.log('User Id: ' + message.author.id); 
    console.log(`User: ${message.author.username}#${message.author.discriminator} - ${message.author.id}`)
    console.log('Time: ' + message.createdAt);
    console.log('Guild Id: ' + message.guild.id);
    console.log('Guild Member Count: ' + message.guild.memberCount);
    console.log('Guild Name: ' + message.guild.name);
    console.log('Guild URl ' + message.guild.iconURL);
    console.log(message.content);
    console.log(new Date().getTime() - message.createdTimestamp + " ms")
    console.log('----------');
    }
}

module.exports = CommandStartedListener;