{"id":25129814,"url":"https://github.com/lightquantumarchive/the-martian-bot","last_synced_at":"2025-10-09T22:43:55.293Z","repository":{"id":195156168,"uuid":"692366644","full_name":"LightQuantumArchive/the-martian-bot","owner":"LightQuantumArchive","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-18T18:41:48.000Z","size":116,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T22:43:02.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LightQuantumArchive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-16T09:05:36.000Z","updated_at":"2025-01-13T23:19:04.000Z","dependencies_parsed_at":"2023-09-16T19:33:09.307Z","dependency_job_id":"82cb274d-e5e3-48eb-b54b-f2ff5d326c7f","html_url":"https://github.com/LightQuantumArchive/the-martian-bot","commit_stats":null,"previous_names":["photonquantum/the-martian-bot","lightquantumarchive/the-martian-bot"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fthe-martian-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fthe-martian-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fthe-martian-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fthe-martian-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LightQuantumArchive","download_url":"https://codeload.github.com/LightQuantumArchive/the-martian-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899664,"owners_count":20851898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-08T12:25:38.831Z","updated_at":"2025-10-09T22:43:50.239Z","avatar_url":"https://github.com/LightQuantumArchive.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 火星救援\n\n[meme](https://zh.moegirl.org.cn/%E7%81%AB%E6%98%9F%28%E7%94%A8%E8%AF%AD%29)\n\nTelegram: [@the_martian_dedup_bot](https://t.me/the_martian_dedup_bot)\n\nAdd it to any group and it will notify the sender if a message contains forwards, links, or similar images sent before.\n\n## Self-hosting\n\n1. Create a bot with [@BotFather](https://t.me/BotFather) and get the token.\n   Allow it to access arbitrary group messages by `/setprivacy`.\n2. Put the token in `.env` file.\n    ```dotenv\n    TELOXIDE_TOKEN=...\n    ```\n3. Write `postgresql.conf` to configure the database. There's an example\n   in [`postgres/postgresql.conf`](postgres/postgresql.conf).\n\n   You can generate your own at [PgTune](https://pgtune.leopard.in.ua/#/). Don't forget to add `listen_addresses = '*'`\n   to the end of the file.\n4. Start the bot.\n    ```shell\n    docker compose up -d\n    ```\n\n## Contributing\n\nAll contributions are welcome. Feel free to open an issue or submit a pull request if got any idea or problem.\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE.txt).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightquantumarchive%2Fthe-martian-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightquantumarchive%2Fthe-martian-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightquantumarchive%2Fthe-martian-bot/lists"}