# Path: dozer/cogs/general.py
# class General(Cog):
#     async def ping(self, ctx):
#     async def base_help(self, ctx, *target):
#     async def _help_all(self, ctx):
#     async def _help_command(self, ctx, command):
#     async def _help_cog(self, ctx, cog):
#     async def _show_help(self, ctx, start_page, title, description, footer, commands, **format_args):
#     async def nick(self, ctx, *, nicktochangeto):
#     async def invite(self, ctx):
#     async def configprefix(self, ctx, prefix: str):
# def setup(bot):


import asyncio
import datetime
import logging
import math
import time
import discord
from discord.ext.commands import has_permissions, BadArgument
from ._utils import *
from .general import blurple
from .. import db
            )
            e.add_field(name='Success!', value="Join message has been set to default")
        await config.update_or_add()
        await ctx.send(embed=e)

    @memberlogconfig.command()
    @has_permissions(manage_guild=True)
    async def setleavemessage(self, ctx, *, template=None):
        """Configure custom leave message template"""
        e = discord.Embed(color=blurple)
        e.set_footer(text='Triggered by ' + ctx.author.display_name)
        if template:
            config = CustomJoinLeaveMessages(
                guild_id=ctx.guild.id,
                leave_message=template
            )
            e.add_field(name='Success!', value=f"Leave message template has been set to\n{template}")
        else:
            config = CustomJoinLeaveMessages(
                guild_id=ctx.guild.id,
                leave_message=CustomJoinLeaveMessages.nullify
            )
            e.add_field(name='Success!', value="Leave message has been set to default")
        await config.update_or_add()
        await ctx.send(embed=e)

    @memberlogconfig.command()
    @has_permissions(manage_guild=True)
    async def disable(self, ctx):
        """Disables Join/Leave logging"""

# Path: dozer/cogs/general.py
# class General(Cog):
#     async def ping(self, ctx):
#     async def base_help(self, ctx, *target):
#     async def _help_all(self, ctx):
#     async def _help_command(self, ctx, command):
#     async def _help_cog(self, ctx, cog):
#     async def _show_help(self, ctx, start_page, title, description, footer, commands, **format_args):
#     async def nick(self, ctx, *, nicktochangeto):
#     async def invite(self, ctx):
#     async def configprefix(self, ctx, prefix: str):
# def setup(bot):


# Path: dozer/cogs/actionlogs.py
import asyncio
import datetime
import logging
import math
import time
import discord
from discord.ext.commands import has_permissions, BadArgument
from ._utils import *
from .general import blurple
from .. import db

            )
            e.add_field(name='Success!', value="Join message has been set to default")
        await config.update_or_add()
        await ctx.send(embed=e)

    @memberlogconfig.command()
    @has_permissions(manage_guild=True)
    async def setleavemessage(self, ctx, *, template=None):
        """Configure custom leave message template"""
        e = discord.Embed(color=blurple)
        e.set_footer(text='Triggered by ' + ctx.author.display_name)
        if template:
            config = CustomJoinLeaveMessages(
                guild_id=ctx.guild.id,
                leave_message=template
            )
            e.add_field(name='Success!', value=f"Leave message template has been set to\n{template}")
        else:
            config = CustomJoinLeaveMessages(
                guild_id=ctx.guild.id,
                leave_message=CustomJoinLeaveMessages.nullify
            )
            e.add_field(name='Success!', value="Leave message has been set to default")
        await config.update_or_add()
        await ctx.send(embed=e)

    @memberlogconfig.command()
    @has_permissions(manage_guild=True)
    async def disable(self, ctx):
        """Disables Join/Leave logging"""

        e = discord.Embed(color=blurple)