{"size": 1006, "ext": "js", "max_stars_repo_path": "tests/index.js", "max_stars_repo_name": "BONEE4/helly", "max_stars_repo_stars_event_min_datetime": "2021-11-18T14:38:05.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-14T23:12:38.000Z", "max_issues_repo_path": "tests/index.js", "max_issues_repo_name": "BONEE4/helly", "max_issues_repo_issues_event_min_datetime": "2021-11-19T00:46:23.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:29:26.000Z", "max_forks_repo_path": "tests/index.js", "max_forks_repo_name": "BONEE4/helly", "max_forks_repo_forks_event_min_datetime": "2021-11-19T01:21:23.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T20:28:28.000Z"}
{"max_stars_count": 5, "max_issues_count": 113, "max_forks_count": 8, "avg_line_length": 27.9444444444, "max_line_length": 182, "alphanum_fraction": 0.6739562624}
// @ts-nocheck
const { startMessageTests } = require('./message-test.js');
const { startRoleTests } = require('./role-test.js');
const { startChannelTests } = require('./channel-test.js');

const { Client, IntentsBitField, Events } = require('../build/cjs/index');
const { token } = require('./config.json')

const client = new Client({ intents: [IntentsBitField.Flags.Guilds, IntentsBitField.Flags.GuildMembers, IntentsBitField.Flags.GuildMessages, IntentsBitField.Flags.MessageContent] });

try {
    startMessageTests(client)
} catch (e) {
    console.log('   [Message Event Tests] ❌ Message event tests failed.')
    console.error(e)
}

try {
    startRoleTests(client)
} catch (e) {
    console.log('   [Role Tests] ❌ Role tests failed.')
    console.error(e)
}

try {
    startChannelTests(client)
} catch (e) {
    console.log('   [Channel Tests] ❌ Channel tests failed.')
    console.error(e)
}

client.on(Events.Ready, () => {
    console.log('   [Tests] 🤖 Bot connected.')
})

client.login(token)