# Path: Cogs/Nullify.py
# def setup(bot):
# def clean(string, deaden_links = False, ctx = None):
# def escape_all(string, mentions = True, markdown = True):
# def resolve_mentions(string, ctx = None, escape = True, show_mentions = True, channel_mentions = False):


import asyncio, discord, re
from   discord.ext import commands
from   Cogs import Nullify

		elif are_we == False: await ctx.send(not_owner)
		return are_we

	async def is_admin_reply(self,ctx,member=None,message="You do not have sufficient privileges to access this command.",message_when=False):
		# Auto-replies if the user doesn't have admin privs
		are_we = self.is_admin(ctx,member)
		if are_we == message_when: await ctx.send(message)
		return are_we

	async def is_bot_admin_only_reply(self,ctx,member=None,message="You do not have sufficient privileges to access this command.",message_when=False):
		# Auto-replies if the user doesn't have admin or bot admin privs
		are_we = self.is_bot_admin_only(ctx,member)
		if are_we == message_when: await ctx.send(message)
		return are_we

	async def is_bot_admin_reply(self,ctx,member=None,message="You do not have sufficient privileges to access this command.",message_when=False):
		# Auto-replies if the user doesn't have admin or bot admin privs
		are_we = self.is_bot_admin(ctx,member)
		if are_we == message_when: await ctx.send(message)
		return are_we

	def yes_no_setting(self,ctx,display_name,setting_name,yes_no=None,default=None,is_global=False):
		# Get or set a true/false value and return the resulting message
		guild = ctx if isinstance(ctx,discord.Guild) else ctx.guild if isinstance(ctx,discord.ext.commands.Context) else None
		if not guild and not is_global: return "I can't get a guild from here :("
		settings = self.bot.get_cog("Settings")
		if not settings: return "Something is wrong with my settings module :("
		current = settings.getGlobalStat(setting_name, default) if is_global else settings.getServerStat(guild, setting_name, default)
		if yes_no == None:
			# Output what we have

# Path: Cogs/Nullify.py
# def setup(bot):
# def clean(string, deaden_links = False, ctx = None):
# def escape_all(string, mentions = True, markdown = True):
# def resolve_mentions(string, ctx = None, escape = True, show_mentions = True, channel_mentions = False):


# Path: Cogs/Utils.py
import asyncio, discord, re
from   discord.ext import commands
from   Cogs import Nullify

		elif are_we == False: await ctx.send(not_owner)
		return are_we

	async def is_admin_reply(self,ctx,member=None,message="You do not have sufficient privileges to access this command.",message_when=False):
		# Auto-replies if the user doesn't have admin privs
		are_we = self.is_admin(ctx,member)
		if are_we == message_when: await ctx.send(message)
		return are_we

	async def is_bot_admin_only_reply(self,ctx,member=None,message="You do not have sufficient privileges to access this command.",message_when=False):
		# Auto-replies if the user doesn't have admin or bot admin privs
		are_we = self.is_bot_admin_only(ctx,member)
		if are_we == message_when: await ctx.send(message)
		return are_we

	async def is_bot_admin_reply(self,ctx,member=None,message="You do not have sufficient privileges to access this command.",message_when=False):
		# Auto-replies if the user doesn't have admin or bot admin privs
		are_we = self.is_bot_admin(ctx,member)
		if are_we == message_when: await ctx.send(message)
		return are_we

	def yes_no_setting(self,ctx,display_name,setting_name,yes_no=None,default=None,is_global=False):
		# Get or set a true/false value and return the resulting message
		guild = ctx if isinstance(ctx,discord.Guild) else ctx.guild if isinstance(ctx,discord.ext.commands.Context) else None
		if not guild and not is_global: return "I can't get a guild from here :("
		settings = self.bot.get_cog("Settings")
		if not settings: return "Something is wrong with my settings module :("
		current = settings.getGlobalStat(setting_name, default) if is_global else settings.getServerStat(guild, setting_name, default)
		if yes_no == None:
			# Output what we have

			return "{} currently *{}*.".format(display_name,"enabled" if current else "disabled")
