commit 771a68a6d5d4b7295e40609ee15ade7c5fe218de Author: callum5892 Date: Mon Mar 9 22:15:35 2026 +0000 initial commit diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..22216a1 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1 @@ +FROM mcr.microsoft.com/devcontainers/python:3.12 \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..216d4db --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "msgsave", + "build": { + "dockerfile": "Dockerfile" + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-python.pylance", + "charliermarsh.ruff", + "ms-python.debugpy" + ], + "settings": { + "python.defaultInterpreterPath": "/usr/local/bin/python", + "editor.formatOnSave": true, + "editor.defaultFormatter": "charliermarsh.ruff" + } + } + }, + "postCreateCommand": "pip install -e .[dev]", + "remoteEnv": { + "DISCORD_TOKEN": "${localEnv:DISCORD_TOKEN}" + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35b49b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.env +*.db +__pycache__/ +*.pyc +.venv/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2378f29 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,23 @@ +[project] +name = "discord-saved-messages" +version = "0.1.0" +requires-python = ">=3.12" +dependencies = [ + "discord.py>=2.3", + "aiosqlite", +] + +[project.optional-dependencies] +dev = [ + "ruff", + "pytest", + "pytest-asyncio", +] +``` + +--- + +**`.env`** (never commit this) +``` +DISCORD_TOKEN=your_token_here +```