<commit_before>const Discord = require('discord.js')
const fs = require('fs')
const config = require('./config.json')
const Database = require('./db/database')
const path = require('path')

Database.init()

const bot = new Discord.Client()
require('./util/eventLoader')(bot)

bot.on('ready', () => {
    console.log(`Logged in as ${bot.user.tag}!`)
    bot.commands.get('raidsAusgeben').run(bot, null)
})

bot.database = Database
bot.commands = new Discord.Collection()
bot.aliases = new Discord.Collection()

const commandsFolderPath = path.resolve(__dirname, 'commands')
fs.readdir(commandsFolderPath, (error, files) => {
    if (error) console.error(error)
    console.log(`${files.length} commands loaded.`)
    files.forEach((f) => {
        let props = require(`./commands/${f}`)
        console.log(`Loading Command: ${props.help.name} OK!`)
        bot.commands.set(props.help.name.toLowerCase(), props)
        props.conf.aliases.forEach((alias) => {
            bot.aliases.set(alias.toLowerCase(), props.help.name.toLowerCase())
        })
    })
})

bot.elevation = (msg) => {

    if(msg.author.bot) return

    /**
     * This function should resolve to an ELEVATION level which
     * is then sent to the command handler for verification
     */
    const guildMember = bot.guilds.find('id', config.serverID).member(msg.author)
    let permlvl = 0
    if (guildMember.roles.has(config.roles.friend)) permlvl = 1
    if (guildMember.roles.has(config.roles.member)) permlvl = 2
    if (guildMember.roles.has(config.roles.lead)) permlvl = 3
    if (guildMember.roles.has(config.roles.admin)) permlvl = 4
    // if (msg.author.id === config.ownerid) permlvl = 5
    return permlvl
}

bot.login(`${config.token}`)
<commit_msg>fixed typo<commit_after>const Discord = require('discord.js')
const fs = require('fs')
const config = require('./config.json')
const Database = require('./db/database')
const path = require('path')

Database.init()

const bot = new Discord.Client()
require('./util/eventLoader')(bot)

bot.on('ready', () => {
    console.log(`Logged in as ${bot.user.tag}!`)
    bot.commands.get('raidsausgeben').run(bot, null)
})

bot.database = Database
bot.commands = new Discord.Collection()
bot.aliases = new Discord.Collection()

const commandsFolderPath = path.resolve(__dirname, 'commands')
fs.readdir(commandsFolderPath, (error, files) => {
    if (error) console.error(error)
    console.log(`${files.length} commands loaded.`)
    files.forEach((f) => {
        let props = require(`./commands/${f}`)
        console.log(`Loading Command: ${props.help.name} OK!`)
        bot.commands.set(props.help.name.toLowerCase(), props)
        props.conf.aliases.forEach((alias) => {
            bot.aliases.set(alias.toLowerCase(), props.help.name.toLowerCase())
        })
    })
})

bot.elevation = (msg) => {

    if(msg.author.bot) return

    /**
     * This function should resolve to an ELEVATION level which
     * is then sent to the command handler for verification
     */
    const guildMember = bot.guilds.find('id', config.serverID).member(msg.author)
    let permlvl = 0
    if (guildMember.roles.has(config.roles.friend)) permlvl = 1
    if (guildMember.roles.has(config.roles.member)) permlvl = 2
    if (guildMember.roles.has(config.roles.lead)) permlvl = 3
    if (guildMember.roles.has(config.roles.admin)) permlvl = 4
    // if (msg.author.id === config.ownerid) permlvl = 5
    return permlvl
}

bot.login(`${config.token}`)

{'fraction_non_alphanumeric': 0.16373594695877774, 'fraction_numerical': 0.003459210147016431, 'mean_word_length': 3.5538057742782154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2167496', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1139, 'n_words': 231}