diff --git a/CHANGELOG.md b/CHANGELOG.md index a0348fb..42cda4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # Changelog -### 0.3.5 (2024-04-11) +### 0.3.6 (2024-04-11) * Fix issue where message type detection would fail for some messages (cece8cfb24e6f2e98d80d233b688c3e2c0ff05ae) + +### 0.3.5 + * Only set room avatar if it is not already set (a9c23ee9c42d0a741a7eb485315e3e2d0a526725) ### 0.3.4 (2024-02-18) diff --git a/pyproject.toml b/pyproject.toml index 3bd7356..75f3604 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ allow-direct-references = true [project] name = "matrix-gptbot" -version = "0.3.5" +version = "0.3.6" authors = [ { name="Kumi Mitterer", email="gptbot@kumi.email" }, @@ -69,7 +69,7 @@ dev = [ "Bug Tracker" = "https://kumig.it/kumitterer/matrix-gptbot/issues" [project.scripts] -gptbot = "gptbot:main" +gptbot = "gptbot.__main__:main" [tool.hatch.build.targets.wheel] packages = ["src/gptbot"] \ No newline at end of file diff --git a/src/gptbot/__main__.py b/src/gptbot/__main__.py index ef195c4..4a88067 100644 --- a/src/gptbot/__main__.py +++ b/src/gptbot/__main__.py @@ -17,8 +17,7 @@ def get_version(): return None return package_version - -if __name__ == "__main__": +def main(): # Parse command line arguments parser = ArgumentParser() parser.add_argument( @@ -53,3 +52,7 @@ if __name__ == "__main__": print("Received KeyboardInterrupt - exiting...") except SystemExit: print("Received SIGTERM - exiting...") + + +if __name__ == "__main__": + main() \ No newline at end of file