{"size": 1036, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "qxb3/mirage-bot", "max_stars_repo_stars_event_min_datetime": "2022-02-02T10:46:16.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-02T14:13:13.000Z", "max_issues_repo_path": "index.js", "max_issues_repo_name": "qxb3/mirage-bot", "max_issues_repo_issues_event_min_datetime": "2022-02-04T02:12:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-04T02:12:50.000Z", "max_forks_repo_path": "index.js", "max_forks_repo_name": "qxb3/mirage-bot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 26.5641025641, "max_line_length": 66, "alphanum_fraction": 0.6245173745}
require('module-alias/register')
require('dotenv').config()

const { Client, Intents } = require('discord.js')
const WokCommands = require('wokcommands')

const { setBotActivity } = require('@utils/utils')
const path = require('path')

const client = new Client({
    intents: [
        Intents.FLAGS.GUILDS,
        Intents.FLAGS.GUILD_MESSAGES,
        Intents.FLAGS.GUILD_MESSAGE_REACTIONS
    ]
})

client.once('ready', () => {
    setInterval(() => {
        setBotActivity(client)
    }, 1000 * 60)

    new WokCommands(client, {
        commandDir: path.join(__dirname, './commands'),
        featuresDir: path.join(__dirname, './features'),
        mongoUri: process.env.MONGO_URI,
        testServers: ['811195710065082378', '917358098241445909'],
        botOwners: ['591150858830479381'],
        disabledDefaultCommands: [
            'channelonly', 'command', 'language',
            /*'prefix', */'requiredrole',
        ]
    })
    .setDefaultPrefix('?')
    .setCategorySettings([])
})

client.login(process.env.TOKEN)
