diff --git a/.gitignore b/.gitignore index 71761e1..c475a39 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +# ---> Python # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] @@ -9,7 +10,6 @@ __pycache__/ # Distribution / packaging .Python -env/ build/ develop-eggs/ dist/ @@ -21,13 +21,14 @@ lib64/ parts/ sdist/ var/ +wheels/ +share/python-wheels/ *.egg-info/ .installed.cfg *.egg +MANIFEST # PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec @@ -38,13 +39,17 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ +.nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml -*,cover +*.cover +*.py,cover .hypothesis/ +.pytest_cache/ +cover/ # Translations *.mo @@ -53,6 +58,8 @@ coverage.xml # Django stuff: *.log local_settings.py +db.sqlite3 +db.sqlite3-journal # Flask stuff: instance/ @@ -65,32 +72,84 @@ instance/ docs/_build/ # PyBuilder +.pybuilder/ target/ -# IPython Notebook +# Jupyter Notebook .ipynb_checkpoints +# IPython +profile_default/ +ipython_config.py + # pyenv .python-version -# celery beat schedule file +# pipenv +#Pipfile.lock + +# UV +#uv.lock + +# poetry +#poetry.lock + +# pdm +#pdm.lock +.pdm.toml +.pdm-python +.pdm-build/ + +# PEP 582 +__pypackages__/ + +# Celery stuff celerybeat-schedule +celerybeat.pid -# dotenv +# SageMath parsed files +*.sage.py + +# Environments .env - -# virtualenv +.venv +env/ venv/ ENV/ +env.bak/ +venv.bak/ # Spyder project settings .spyderproject +.spyproject # Rope project settings .ropeproject -### VirtualEnv template -# Virtualenv -# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# Ruff stuff: +.ruff_cache/ + +# PyPI configuration file +.pypirc + +# ---> VirtualEnv [Bb]in [Ii]nclude [Ll]ib @@ -98,27 +157,16 @@ ENV/ [Ll]ocal [Ss]cripts pyvenv.cfg -.venv pip-selfcheck.json -### JetBrains template -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - -# User-specific stuff +# ---> JetBrains .idea/**/workspace.xml .idea/**/tasks.xml .idea/**/usage.statistics.xml .idea/**/dictionaries .idea/**/shelf - -# AWS User-specific .idea/**/aws.xml - -# Generated files .idea/**/contentModel.xml - -# Sensitive or high-churn files .idea/**/dataSources/ .idea/**/dataSources.ids .idea/**/dataSources.local.xml @@ -126,15 +174,8 @@ pip-selfcheck.json .idea/**/dynamic.xml .idea/**/uiDesigner.xml .idea/**/dbnavigator.xml - -# Gradle .idea/**/gradle.xml .idea/**/libraries - -# Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -auto-import. .idea/artifacts .idea/compiler.xml .idea/jarRepositories.xml @@ -143,47 +184,23 @@ auto-import. .idea/modules *.iml *.ipr - -# CMake cmake-build-*/ - -# Mongo Explorer plugin .idea/**/mongoSettings.xml - -# File-based project format *.iws - -# IntelliJ out/ - -# mpeltonen/sbt-idea plugin .idea_modules/ - -# JIRA plugin atlassian-ide-plugin.xml - -# Cursive Clojure plugin .idea/replstate.xml - -# SonarLint plugin .idea/sonarlint/ - -# Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties - -# Editor-based Rest Client .idea/httpRequests - -# Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser - -# idea folder, uncomment if you don't need it .idea -# Users exceptions +# ---> Project-specific /other/ /tgbot/data/database /tgbot/data/database.db @@ -202,16 +219,12 @@ database.db .env.* !.env.example .vscode/ -.pytest_cache/ -.mypy_cache/ -.ruff_cache/ *.db *.db-journal *.db-shm *.db-wal *.sqlite *.sqlite3 -*.log tgbot/data/*.db* tgbot/data/*.sqlite* tgbot/data/*.log diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4aae9e0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) 2026 FOSS + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE.