# 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 asyncio
import mods.Tags
from discord.ext import commands
from utils import checks
from mods.cog import Cog
		if len(result) == 0:
			await self.bot.say(':no_entry: Server does not have welcome messages enabled.')
			return
		msg = result[0]['message'] if result[0]['message'] != None else default_join
		await self.bot.say(msg)

	@leave.command(name='current', pass_context=True, aliases=['show'], invoke_without_command=True)
	async def leave_current(self, ctx):
		sql = 'SELECT message FROM `leave` WHERE server={0}'
		sql = sql.format(ctx.message.server.id)
		result = self.cursor.execute(sql).fetchall()
		if len(result) == 0:
			await self.bot.say(':no_entry: Server does not have leave messages enabled.')
			return
		msg = result[0]['message'] if result[0]['message'] != None else default_leave
		await self.bot.say(msg)

	async def remove(self, server, welcome):
		if welcome:
			sql = 'DELETE FROM `welcome` WHERE server={0}'
		else:
			sql = 'DELETE FROM `leave` WHERE server={0}'
		sql = sql.format(server.id)
		self.cursor.execute(sql)
		self.cursor.commit()

	async def on_member_join(self, member):
		try:
			server = member.server
			sql = 'SELECT * FROM `welcome` WHERE server={0}'

# 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/JoinLeave.py
import discord
import asyncio
import mods.Tags
from discord.ext import commands
from utils import checks
from mods.cog import Cog

		if len(result) == 0:
			await self.bot.say(':no_entry: Server does not have welcome messages enabled.')
			return
		msg = result[0]['message'] if result[0]['message'] != None else default_join
		await self.bot.say(msg)

	@leave.command(name='current', pass_context=True, aliases=['show'], invoke_without_command=True)
	async def leave_current(self, ctx):
		sql = 'SELECT message FROM `leave` WHERE server={0}'
		sql = sql.format(ctx.message.server.id)
		result = self.cursor.execute(sql).fetchall()
		if len(result) == 0:
			await self.bot.say(':no_entry: Server does not have leave messages enabled.')
			return
		msg = result[0]['message'] if result[0]['message'] != None else default_leave
		await self.bot.say(msg)

	async def remove(self, server, welcome):
		if welcome:
			sql = 'DELETE FROM `welcome` WHERE server={0}'
		else:
			sql = 'DELETE FROM `leave` WHERE server={0}'
		sql = sql.format(server.id)
		self.cursor.execute(sql)
		self.cursor.commit()

	async def on_member_join(self, member):
		try:
			server = member.server
			sql = 'SELECT * FROM `welcome` WHERE server={0}'

			sql = sql.format(server.id)