# Path: utils/checks.py
# class No_Owner(commands.CommandError): pass
# class No_Perms(commands.CommandError): pass
# class No_Role(commands.CommandError): pass
# class No_Admin(commands.CommandError): pass
# class No_Mod(commands.CommandError): pass
# class No_Sup(commands.CommandError): pass
# class No_ServerandPerm(commands.CommandError): pass
# class Nsfw(commands.CommandError): pass
# def is_owner_check(message):
# def is_owner():
# def check_permissions(ctx, perms):
# def role_or_perm(t, ctx, check, **perms):
# def mod_or_perm(**perms):
# 	def predicate(ctx):
# def admin_or_perm(**perms):
# 	def predicate(ctx):
# def is_in_servers(*server_ids):
# 	def predicate(ctx):
# def server_and_perm(ctx, *server_ids, **perms):
# def sup(ctx):
# def nsfw():
# 	def predicate(ctx):
# 
# Path: mods/cog.py
# class Cog(metaclass=CogMeta):
# 	def __init__(self, bot:NotSoBot):
# 		self._bot = bot
# 
# 	@property
# 	def bot(self):
# 		return self._bot
# 
# 	@classmethod
# 	def setup(cls, bot:NotSoBot):
# 		bot.add_cog(cls(bot))


import discord
import time
import requests
import io
from discord.ext import commands
from utils import checks
from mods.cog import Cog
    await self.discord_pw()
    await self.bot.say(':white_check_mark: Upated Stats.')

  async def server_count(self):
    sql = 'SELECT * FROM `stats`'
    result = self.cursor.execute(sql).fetchall()
    count = 0
    for shard in result:
      count += int(shard['servers'])
    return count

  sent = 0
  key = ''
  API = 'https://www.carbonitex.net/discord/data/botdata.php'
  async def carbon(self):
    server_count = await self.server_count()
    data = {
      'key': self.key,
      'servercount': server_count,
      "botname": self.bot.user.name,
      "botid": self.bot.user.id,
      "logoid": self.bot.user.avatar_url[60:].replace(".jpg",""),
      "ownerid": '130070621034905600',
      "ownername": 'NotSoSuper'
    }
    try:
      timestamp = time.strftime('%H:%M:%S')
      r = requests.post(self.API, json=data)
      self.sent += 1
      s_data = data

# Path: utils/checks.py
# class No_Owner(commands.CommandError): pass
# class No_Perms(commands.CommandError): pass
# class No_Role(commands.CommandError): pass
# class No_Admin(commands.CommandError): pass
# class No_Mod(commands.CommandError): pass
# class No_Sup(commands.CommandError): pass
# class No_ServerandPerm(commands.CommandError): pass
# class Nsfw(commands.CommandError): pass
# def is_owner_check(message):
# def is_owner():
# def check_permissions(ctx, perms):
# def role_or_perm(t, ctx, check, **perms):
# def mod_or_perm(**perms):
# 	def predicate(ctx):
# def admin_or_perm(**perms):
# 	def predicate(ctx):
# def is_in_servers(*server_ids):
# 	def predicate(ctx):
# def server_and_perm(ctx, *server_ids, **perms):
# def sup(ctx):
# def nsfw():
# 	def predicate(ctx):
# 
# Path: mods/cog.py
# class Cog(metaclass=CogMeta):
# 	def __init__(self, bot:NotSoBot):
# 		self._bot = bot
# 
# 	@property
# 	def bot(self):
# 		return self._bot
# 
# 	@classmethod
# 	def setup(cls, bot:NotSoBot):
# 		bot.add_cog(cls(bot))


# Path: mods/Stats.py
import discord
import time
import requests
import io
from discord.ext import commands
from utils import checks
from mods.cog import Cog

    await self.discord_pw()
    await self.bot.say(':white_check_mark: Upated Stats.')

  async def server_count(self):
    sql = 'SELECT * FROM `stats`'
    result = self.cursor.execute(sql).fetchall()
    count = 0
    for shard in result:
      count += int(shard['servers'])
    return count

  sent = 0
  key = ''
  API = 'https://www.carbonitex.net/discord/data/botdata.php'
  async def carbon(self):
    server_count = await self.server_count()
    data = {
      'key': self.key,
      'servercount': server_count,
      "botname": self.bot.user.name,
      "botid": self.bot.user.id,
      "logoid": self.bot.user.avatar_url[60:].replace(".jpg",""),
      "ownerid": '130070621034905600',
      "ownername": 'NotSoSuper'
    }
    try:
      timestamp = time.strftime('%H:%M:%S')
      r = requests.post(self.API, json=data)
      self.sent += 1
      s_data = data

      s_data['key'] = 'no'