import discord
from discord.ext import commands
import random
import json
from pymongo import MongoClient
import os

m_client = MongoClient(os.environ.get('DB'))

db = m_client['my_db']
players_collection = db['players']


class Inventory(commands.Cog):
    def __init__(self, client):
        self.client = client

    @commands.command()
    async def test_inv(self, ctx):
        player_json = '''
        {
            "id": {
                "warn_points": 0,
                "warns": [],
                "items": [],
                "balance": 10000
            }
        }
        '''
        item_json = '''
        {
            "name": "Test",
            "description": "Test desc",
            "price": 10,
        }
        '''
        await ctx.send('boop')


def setup(client):
    client.add_cog(Inventory(client))
