Skip to content

Commit 4a71659

Browse files
authored
Merge pull request #39 from pythonitalia/rewrite-v2
feat(rewrite-v2): Bot rewrite with welcome messages, moderation, and database layer
2 parents d69c2ea + 9aef7c1 commit 4a71659

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3182
-12186
lines changed

.dependabot/config.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.env.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Required: Bot token from @BotFather
2+
TELEGRAM_BOT_TOKEN=your_bot_token_here
3+
4+
# Optional: PostgreSQL connection string (Neon or other PostgreSQL)
5+
# When set, uses PostgresRepository; otherwise uses InMemoryRepository
6+
# DATABASE_URL=postgresql://user:password@host/neondb?sslmode=require
7+
8+
# Captcha: secret command users must send in DM after reading the rules file
9+
CAPTCHA_SECRET_COMMAND=python-italy
10+
11+
# Path to the rules/captcha file (relative to project root)
12+
CAPTCHA_FILE_PATH=assets/regolamento.md
13+
14+
# Optional: Main group ID for multi-group logic
15+
# MAIN_GROUP_ID=-1001234567890
16+
17+
# Optional: Comma-separated list of local sub-group IDs
18+
# LOCAL_GROUP_IDS=-1001234567891,-1001234567892
19+
20+
# Optional: URL to external rules/guide page (sent during verification deep link)
21+
# RULES_URL=https://example.com/rules
22+
23+
# Optional: Bot owner user ID (for /announce command)
24+
# BOT_OWNER_ID=123456789

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/greetings.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 16 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,23 @@
1-
tg_bot/config.py
2-
*.pyc
3-
.idea/
4-
.project
5-
.pydevproject
6-
.directory
7-
.vscode
8-
*.env*
9-
*.DS_Store*
10-
11-
# Created by https://www.gitignore.io/api/python
12-
# Edit at https://www.gitignore.io/?templates=python
13-
14-
### Python ###
15-
# Byte-compiled / optimized / DLL files
1+
# Python
162
__pycache__/
173
*.py[cod]
184
*$py.class
19-
20-
# C extensions
215
*.so
22-
23-
# Distribution / packaging
246
.Python
25-
build/
26-
develop-eggs/
27-
dist/
28-
downloads/
29-
eggs/
30-
.eggs/
31-
lib/
32-
lib64/
33-
parts/
34-
sdist/
35-
var/
36-
wheels/
37-
pip-wheel-metadata/
38-
share/python-wheels/
39-
*.egg-info/
40-
.installed.cfg
41-
*.egg
42-
MANIFEST
43-
44-
# PyInstaller
45-
# Usually these files are written by a python script from a template
46-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
47-
*.manifest
48-
*.spec
49-
50-
# Installer logs
51-
pip-log.txt
52-
pip-delete-this-directory.txt
53-
54-
# Unit test / coverage reports
55-
htmlcov/
56-
.tox/
57-
.nox/
58-
.coverage
59-
.coverage.*
60-
.cache
61-
nosetests.xml
62-
coverage.xml
63-
*.cover
64-
.hypothesis/
65-
.pytest_cache/
66-
67-
# Translations
68-
*.mo
69-
*.pot
70-
71-
# Django stuff:
72-
*.log
73-
local_settings.py
74-
db.sqlite3
75-
db.sqlite3-journal
76-
77-
# Flask stuff:
78-
instance/
79-
.webassets-cache
80-
81-
# Scrapy stuff:
82-
.scrapy
83-
84-
# Sphinx documentation
85-
docs/_build/
86-
87-
# PyBuilder
88-
target/
89-
90-
# Jupyter Notebook
91-
.ipynb_checkpoints
92-
93-
# IPython
94-
profile_default/
95-
ipython_config.py
96-
97-
# pyenv
98-
.python-version
99-
100-
# pipenv
101-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
102-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
103-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
104-
# install all needed dependencies.
105-
#Pipfile.lock
106-
107-
# celery beat schedule file
108-
celerybeat-schedule
109-
110-
# SageMath parsed files
111-
*.sage.py
112-
113-
# Environments
114-
.env
115-
.venv
116-
env/
1177
venv/
118-
ENV/
119-
env.bak/
120-
venv.bak/
121-
122-
# Spyder project settings
123-
.spyderproject
124-
.spyproject
125-
126-
# Rope project settings
127-
.ropeproject
128-
129-
# mkdocs documentation
130-
/site
131-
132-
# mypy
133-
.mypy_cache/
134-
.dmypy.json
135-
dmypy.json
136-
137-
# Pyre type checker
138-
.pyre/
8+
.venv/
9+
env/
10+
.env
11+
*.egg-info/
12+
.eggs/
13913

140-
# End of https://www.gitignore.io/api/python
14+
# IDE
15+
.idea/
16+
.vscode/
17+
.cursor/
18+
*.swp
19+
*.swo
20+
21+
# OS
22+
.DS_Store
23+
Thumbs.db

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14

CONTRIBUTING.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)