{"size": 934, "ext": "js", "max_stars_repo_path": "commands/dev/args-info.js", "max_stars_repo_name": "flashbot-discord/flashbot", "max_stars_repo_stars_event_min_datetime": "2020-07-15T07:09:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-01T12:04:48.000Z", "max_issues_repo_path": "commands/dev/args-info.js", "max_issues_repo_name": "comjun04/flashbot", "max_issues_repo_issues_event_min_datetime": "2019-05-26T07:51:11.000Z", "max_issues_repo_issues_event_max_datetime": "2020-01-08T05:54:56.000Z", "max_forks_repo_path": "commands/dev/args-info.js", "max_forks_repo_name": "comjun04/flashbot", "max_forks_repo_forks_event_min_datetime": "2020-07-19T07:09:34.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-19T07:09:34.000Z"}
{"max_stars_count": 5, "max_issues_count": 26, "max_forks_count": 1, "avg_line_length": 27.4705882353, "max_line_length": 115, "alphanum_fraction": 0.625267666}
/**
 * @name args-info.js
 * @description 입력된 인수를 체크하는 명령어입니다.
 */
const Command = require('../../classes/Command')

class ArgsInfoCommand extends Command {
  constructor (client) {
    super(client, {
      name: 'args-info',
      aliases: ['argsinfo', 'ㅁㄱㅎㄴ-ㅑㅜ래', 'ㅁㄱㅎ냐ㅜ래'],
      description: 'commands.args-info.DESC:Testing with arguments',
      group: 'dev',
      args: [
        {
          name: 'commands.args-info.args.args.NAME:args',
          description: 'commands.args-info.args.args.DESC:The arguments to pass. Infinite arguments are accepted.',
          type: 'common.any:any'
        }
      ]
    })
  }

  async run (client, msg, query, locale) {
    const t = client.locale.t

    if (query.args.length < 1) return msg.reply(Command.makeUsage(this, query.cmd, locale))

    return msg.channel.send(t('commands.args-info.run', locale, query.cmd, query.args.join(', ')))
  }
}

module.exports = ArgsInfoCommand
