# 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 asyncio
import discord
import sys
import re
import time
import numpy as np
import PIL
import datetime
from discord.ext import commands
from utils import checks
from io import BytesIO
from mods.cog import Cog

		members = []
		for m in ctx.message.mentions:
			members.append(m)
		users = list(users)
		for u in users:
			if u.isdigit():
				member = ctx.message.server.get_member(u)
				if member and member not in members:
					members.append(member)
				else:
					await self.bot.say(':warning: `{0}` is an invalid id.'.format(u))
					users.remove(u)
					if len(users):
						continue
					return
		sql = 'SELECT * FROM `global_log_ignore` WHERE user={0} AND avatar'
		for user in members:
			result = self.cursor.execute(sql.format(user.id)).fetchall()
			if result:
				sql = 'DELETE FROM `global_log_ignore` WHERE user={0} AND avatar'
				sql = sql.format(user.id)
				self.cursor.execute(sql)
				await self.bot.say(':negative_squared_cross_mark: Removed `{0}` from global avatar log ignore.'.format(user))
			else:
				sql = 'INSERT INTO `global_log_ignore` (`user`, `avatar`) VALUES (%s, %s)'
				self.cursor.execute(sql, (user.id, 1))
				await self.bot.say(':white_check_mark: Added `{0}` to global avatar log ignore.'.format(user))
			self.cursor.commit()

	@commands.group(pass_context=True, invoke_without_command=True, aliases=['messagetracking', 'trackmessage'], no_pm=True)

# 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/Logs.py
import asyncio
import discord
import sys
import re
import time
import numpy as np
import PIL
import datetime
from discord.ext import commands
from utils import checks
from io import BytesIO
from mods.cog import Cog

		members = []
		for m in ctx.message.mentions:
			members.append(m)
		users = list(users)
		for u in users:
			if u.isdigit():
				member = ctx.message.server.get_member(u)
				if member and member not in members:
					members.append(member)
				else:
					await self.bot.say(':warning: `{0}` is an invalid id.'.format(u))
					users.remove(u)
					if len(users):
						continue
					return
		sql = 'SELECT * FROM `global_log_ignore` WHERE user={0} AND avatar'
		for user in members:
			result = self.cursor.execute(sql.format(user.id)).fetchall()
			if result:
				sql = 'DELETE FROM `global_log_ignore` WHERE user={0} AND avatar'
				sql = sql.format(user.id)
				self.cursor.execute(sql)
				await self.bot.say(':negative_squared_cross_mark: Removed `{0}` from global avatar log ignore.'.format(user))
			else:
				sql = 'INSERT INTO `global_log_ignore` (`user`, `avatar`) VALUES (%s, %s)'
				self.cursor.execute(sql, (user.id, 1))
				await self.bot.say(':white_check_mark: Added `{0}` to global avatar log ignore.'.format(user))
			self.cursor.commit()

	@commands.group(pass_context=True, invoke_without_command=True, aliases=['messagetracking', 'trackmessage'], no_pm=True)

	@checks.admin_or_perm(manage_server=True)
