initial commit

This commit is contained in:
callum5892
2026-03-09 22:15:35 +00:00
commit 771a68a6d5
4 changed files with 54 additions and 0 deletions

1
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1 @@
FROM mcr.microsoft.com/devcontainers/python:3.12

View File

@@ -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}"
}
}

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.env
*.db
__pycache__/
*.pyc
.venv/

23
pyproject.toml Normal file
View File

@@ -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
```