<commit_before>import asyncio
import json
import os

from discord.ext.commands import Bot

from fogeybot.database import Database
from fogeybot.hotslogs_api import HotsLogsAPI

from fogeybot.cogs.general.cog import GeneralCommands
from fogeybot.cogs.pickup.cog import PickupCommands
from fogeybot.cogs.users import UserCommands

bot = Bot(command_prefix="!", description="I am FogeyBot! I help start pickup games, and do other bot-y things.")

@bot.event
async def on_ready():
    print("FogeyBot: logged in as %s" % (bot.user.name))

client_id = os.environ["DISCORD_CLIENT_ID"]
token = os.environ["DISCORD_TOKEN"]
channel = os.environ.get("DISCORD_CHANNEL")
uri = os.environ["MONGO_URI"]

db = Database(uri)
asyncio.get_event_loop().run_until_complete(db.test_connection())

api = HotsLogsAPI()

bot.add_cog(GeneralCommands(bot))
bot.add_cog(PickupCommands(bot, api, db, channel))
bot.add_cog(UserCommands(bot, api, db))

bot.client_id = client_id
bot.run(token)<commit_msg>No need to specify DISCORD_CLIENT_ID anymore; closes #14<commit_after>import asyncio
import json
import os

from discord.ext.commands import Bot

from fogeybot.database import Database
from fogeybot.hotslogs_api import HotsLogsAPI

from fogeybot.cogs.general.cog import GeneralCommands
from fogeybot.cogs.pickup.cog import PickupCommands
from fogeybot.cogs.users import UserCommands

bot = Bot(command_prefix="!", description="I am FogeyBot! I help start pickup games, and do other bot-y things.")

@bot.event
async def on_ready():
    print("FogeyBot: logged in as %s" % (bot.user.name))

token = os.environ["DISCORD_TOKEN"]
channel = os.environ.get("DISCORD_CHANNEL")
uri = os.environ["MONGO_URI"]

db = Database(uri)
asyncio.get_event_loop().run_until_complete(db.test_connection())

api = HotsLogsAPI()

bot.add_cog(GeneralCommands(bot))
bot.add_cog(PickupCommands(bot, api, db, channel))
bot.add_cog(UserCommands(bot, api, db))

bot.run(token)
{'fraction_non_alphanumeric': 0.11232449297971919, 'fraction_numerical': 0.0010400416016640667, 'mean_word_length': 6.343511450381679, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3668704', 'n_tokens_mistral': 679, 'n_tokens_neox': 688, 'n_words': 160}