# 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 discord, os, random
from discord.ext import commands
from PIL import Image, ImageDraw, ImageFont
from Cogs import Nullify


def setup(bot):
    bot.add_cog(Clippy(bot))

class Clippy(commands.Cog):

    def __init__(self, bot):
        self.bot = bot
        global Utils, DisplayName
        Utils = self.bot.get_cog("Utils")
        DisplayName = self.bot.get_cog("DisplayName")

    def text_wrap(self, text, font, max_width):
        # Replace \n, \r, and \t with a space
        text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ")
        # Let's ensure the text is only single-spaced
        text = " ".join([x for x in text.split(" ") if len(x)])

# 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/Clippy.py
import discord, os, random
from discord.ext import commands
from PIL import Image, ImageDraw, ImageFont
from Cogs import Nullify


def setup(bot):
    bot.add_cog(Clippy(bot))

class Clippy(commands.Cog):

    def __init__(self, bot):
        self.bot = bot
        global Utils, DisplayName
        Utils = self.bot.get_cog("Utils")
        DisplayName = self.bot.get_cog("DisplayName")

    def text_wrap(self, text, font, max_width):
        # Replace \n, \r, and \t with a space
        text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ")
        # Let's ensure the text is only single-spaced
        text = " ".join([x for x in text.split(" ") if len(x)])

        lines = []
