From 20e2bd139d5cf67d9885791784e06e74f602af26 Mon Sep 17 00:00:00 2001 From: neoarz Date: Mon, 15 Sep 2025 17:43:53 -0400 Subject: [PATCH] chore: remove template testcommand & update copyright headers Deleted the unused template testcommand cog and removed references to it in help.py. Updated copyright headers in database files to reflect usage and edits by neoarz. Also removed copyright and description headers from several Python files for consistency. --- bot.py | 8 -------- cogs/general/help.py | 2 -- cogs/owner/cog_management.py | 8 -------- cogs/owner/say.py | 8 -------- cogs/owner/sync.py | 8 -------- cogs/template/testcommand.py | 31 ------------------------------- database/__init__.py | 9 ++------- database/schema.sql | 3 +++ 8 files changed, 5 insertions(+), 72 deletions(-) delete mode 100644 cogs/template/testcommand.py diff --git a/bot.py b/bot.py index 9c9320b..1adb20e 100644 --- a/bot.py +++ b/bot.py @@ -1,11 +1,3 @@ -""" -Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja) -Description: -🐍 A simple template to start to code your own and personalized Discord bot in Python - -Version: 6.4.0 -""" - import json import logging import os diff --git a/cogs/general/help.py b/cogs/general/help.py index 86525a4..a89a450 100644 --- a/cogs/general/help.py +++ b/cogs/general/help.py @@ -64,8 +64,6 @@ class Help(commands.Cog, name="help"): "shutdown": "owner", "say": "owner", "invite": "owner", - - "testcommand": "template" } category_descriptions = { diff --git a/cogs/owner/cog_management.py b/cogs/owner/cog_management.py index 0832abe..adba1bf 100644 --- a/cogs/owner/cog_management.py +++ b/cogs/owner/cog_management.py @@ -1,11 +1,3 @@ -""" -Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja) -Description: -🐍 A simple template to start to code your own and personalized Discord bot in Python - -Version: 6.4.0 -""" - import discord from discord import app_commands from discord.ext import commands diff --git a/cogs/owner/say.py b/cogs/owner/say.py index 6965400..9b15003 100644 --- a/cogs/owner/say.py +++ b/cogs/owner/say.py @@ -1,11 +1,3 @@ -""" -Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja) -Description: -🐍 A simple template to start to code your own and personalized Discord bot in Python - -Version: 6.4.0 -""" - import discord from discord import app_commands from discord.ext import commands diff --git a/cogs/owner/sync.py b/cogs/owner/sync.py index 89395e1..e929bb2 100644 --- a/cogs/owner/sync.py +++ b/cogs/owner/sync.py @@ -1,11 +1,3 @@ -""" -Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja) -Description: -🐍 A simple template to start to code your own and personalized Discord bot in Python - -Version: 6.4.0 -""" - import discord from discord import app_commands from discord.ext import commands diff --git a/cogs/template/testcommand.py b/cogs/template/testcommand.py deleted file mode 100644 index 947da85..0000000 --- a/cogs/template/testcommand.py +++ /dev/null @@ -1,31 +0,0 @@ -""" -Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja) -Description: -🐍 A simple template to start to code your own and personalized Discord bot in Python - -Version: 6.4.0 -""" - -from discord.ext import commands -from discord.ext.commands import Context - - -class TestCommand(commands.Cog, name="testcommand"): - def __init__(self, bot) -> None: - self.bot = bot - - @commands.hybrid_command( - name="testcommand", - description="This is a testing command that does nothing.", - ) - async def testcommand(self, context: Context) -> None: - """ - This is a testing command that does nothing. - - :param context: The application command context. - """ - pass - - -async def setup(bot) -> None: - await bot.add_cog(TestCommand(bot)) diff --git a/database/__init__.py b/database/__init__.py index e770994..90efbfe 100644 --- a/database/__init__.py +++ b/database/__init__.py @@ -1,10 +1,5 @@ -""" -Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja) -Description: -🐍 A simple template to start to code your own and personalized Discord bot in Python - -Version: 6.4.0 -""" +# Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn/Python-Discord-Bot-Template/blob/main/database/__init__.py +# Used/Edited by neoarz import aiosqlite diff --git a/database/schema.sql b/database/schema.sql index 52b109e..d4068ae 100644 --- a/database/schema.sql +++ b/database/schema.sql @@ -1,3 +1,6 @@ +-- Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn/Python-Discord-Bot-Template/blob/main/database/schema.sql +-- Used/Edited by neoarz + CREATE TABLE IF NOT EXISTS `warns` ( `id` int(11) NOT NULL, `user_id` varchar(20) NOT NULL,