initial commit
This commit is contained in:
1
.devcontainer/Dockerfile
Normal file
1
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1 @@
|
||||
FROM mcr.microsoft.com/devcontainers/python:3.12
|
||||
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal 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
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
.env
|
||||
*.db
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.venv/
|
||||
23
pyproject.toml
Normal file
23
pyproject.toml
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user