<commit_before># the lolbot core
# (c) 2017 <NAME> under MIT License

# -*- coding: utf-8 -*-

# built in modules go first.
import json
import logging
import random

# import the rest 

import discord

from discord.ext import commands

logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)

description = '''Just a bot :)'''
checkfail = ['heck off', 'You died! [REAL] [Not clickbait]',  'succ my rod', 
'no u', 'lol no', 'me too thanks', 'are you kidding me', 'kek']
badarg = ['You need to put more info than this!', 'I didn\'t understand that.',
'Sorry, can\'t process that.', 'Read {}help <command> for instructions.', 'Hmm?'].format(config['prefix'])
exts = ['bots', 'donate', 'eval', 'fun', 'owner', 'stats', 'utility']

class Lul(commands.AutoShardedBot):
  def __init__(self, bot):
    self.bot = bot
    self.config = json.load(open('config.json')

  async def on_ready():
    logging.info('lolbot - ready')
    # note that we use " instead of ' here
    # this is a limitation of the fstring parser
    await bot.change_presence(game=discord.Game(name=f'{self.config["prefix"]}help | v6.2'))
    logging.info('Playing status changed')

  async def on_command_error(ctx, error):
    if isinstance(error, commands.errors.CheckFailure):
      await ctx.send(f'Permissions error: {random.choice(checkfail)}')
    elif isinstance(error, commands.errors.BadArgument):
      await ctx.send(f'Bad argument error: {random.choice(badarg)}')
    elif isinstance(error, commands.errors.NotOwner):
      await ctx.send(f'Not owner: {random.choice(checkfail)}')
    elif isinstance(error, commands.errors.MissingRequiredArgument):
      await ctx.send(f'Missing argument: {random.choice(badarg)}')

bot = Lul(command_prefix=config['prefix'], description=description)

if __name__ == '__main__':
  for ext in exts:
    try:
      bot.load_extension(f'cogs.{ext}')
    except Exception:
      logging.error(f'Error while loading {ext}', exc_info=True)
    else:
      logging.info(f'Successfully loaded {ext}')

bot.run(config['token'])

<commit_msg>[core] me too thanks<commit_after># the lolbot core
# (c) 2017 <NAME> under MIT License

# -*- coding: utf-8 -*-

# built in modules go first.
import json
import logging
import random

# import the rest 

import discord

from discord.ext import commands

logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)

description = '''Just a bot :)'''
checkfail = ['heck off', 'You died! [REAL] [Not clickbait]',  'succ my rod', 
'no u', 'lol no', 'me too thanks', 'are you kidding me', 'kek']
badarg = ['You need to put more info than this!', 'I didn\'t understand that.',
'Sorry, can\'t process that.', 'Read {}help <command> for instructions.', 'Hmm?'].format(config['prefix'])
exts = ['bots', 'donate', 'eval', 'fun', 'owner', 'stats', 'utility']

class Lul(commands.AutoShardedBot):
  def __init__(self, bot):
    self.bot = bot
    self.config = json.load(open('config.json'))

  async def on_ready():
    logging.info('lolbot - ready')
    # note that we use " instead of ' here
    # this is a limitation of the fstring parser
    await bot.change_presence(game=discord.Game(name=f'{self.config["prefix"]}help | v6.2'))
    logging.info('Playing status changed')

  async def on_command_error(ctx, error):
    if isinstance(error, commands.errors.CheckFailure):
      await ctx.send(f'Permissions error: {random.choice(checkfail)}')
    elif isinstance(error, commands.errors.BadArgument):
      await ctx.send(f'Bad argument error: {random.choice(badarg)}')
    elif isinstance(error, commands.errors.NotOwner):
      await ctx.send(f'Not owner: {random.choice(checkfail)}')
    elif isinstance(error, commands.errors.MissingRequiredArgument):
      await ctx.send(f'Missing argument: {random.choice(badarg)}')

bot = Lul(command_prefix=config['prefix'], description=description)

if __name__ == '__main__':
  for ext in exts:
    try:
      bot.load_extension(f'cogs.{ext}')
    except Exception:
      logging.error(f'Error while loading {ext}', exc_info=True)
    else:
      logging.info(f'Successfully loaded {ext}')

bot.run(config['token'])


{'fraction_non_alphanumeric': 0.1546814671814672, 'fraction_numerical': 0.0033783783783783786, 'mean_word_length': 4.439632545931759, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1928112', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1327, 'n_words': 373}