📄 Add copyright and license information to example scripts

This commit is contained in:
2025-03-08 21:29:21 +01:00
parent 7dde4fd16f
commit 54e6bb27d8
4 changed files with 15 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
# Copyright (c) Paillat-dev
# SPDX-License-Identifier: MIT
"""Basic Discord bot example using Pycord REST. """Basic Discord bot example using Pycord REST.
This is a minimal example showing how to create slash commands. This is a minimal example showing how to create slash commands.

View File

@@ -1,3 +1,6 @@
# Copyright (c) Paillat-dev
# SPDX-License-Identifier: MIT
"""Example demonstrating how to use buttons with Pycord REST.""" """Example demonstrating how to use buttons with Pycord REST."""
import os import os

View File

@@ -1,3 +1,6 @@
# Copyright (c) Paillat-dev
# SPDX-License-Identifier: MIT
"""Example showing how to work with modals in Pycord REST.""" """Example showing how to work with modals in Pycord REST."""
import asyncio import asyncio

View File

@@ -49,16 +49,18 @@ source_archive = "https://github.com/Paillat-dev/pycord-rest/archive/{commit_has
name = "pycord-rest-bot" name = "pycord-rest-bot"
[tool.hatch.build] [tool.hatch.build]
packages = ["src/pycord_rest"] include = [
"src/pycord_rest/",
]
exclude = [ exclude = [
".copywrite.hcl", ".copywrite.hcl",
".github", ".github",
".python-version", ".python-version",
"uv.lock", "uv.lock",
] ]
include = [
"src/pycord_rest/", [tool.hatch.build.targets.wheel]
] packages = ["src/pycord_rest"]
[tool.pyright] [tool.pyright]
pythonVersion = "3.12" pythonVersion = "3.12"