{"id":23885141,"url":"https://github.com/duckduckstudio/just-no-xxx","last_synced_at":"2025-09-09T15:31:27.987Z","repository":{"id":238168738,"uuid":"796018233","full_name":"DuckDuckStudio/Just-No-xxx","owner":"DuckDuckStudio","description":"在检测到系统运行特定进程后执行惩罚操作，具体是什么惩罚...嘿嘿","archived":true,"fork":false,"pushed_at":"2024-05-05T09:11:49.000Z","size":9540,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T02:31:47.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DuckDuckStudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-04T17:28:23.000Z","updated_at":"2024-09-18T02:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"58688877-3465-415a-91a9-930cadeeb246","html_url":"https://github.com/DuckDuckStudio/Just-No-xxx","commit_stats":null,"previous_names":["duckduckstudio/just-no-xxx"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DuckDuckStudio/Just-No-xxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FJust-No-xxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FJust-No-xxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FJust-No-xxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FJust-No-xxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuckDuckStudio","download_url":"https://codeload.github.com/DuckDuckStudio/Just-No-xxx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FJust-No-xxx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274317221,"owners_count":25262846,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01-04T04:40:42.440Z","updated_at":"2025-09-09T15:31:27.960Z","avatar_url":"https://github.com/DuckDuckStudio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 就是不该开！\n一个当检测到指定进程运行后执行惩罚的程序。\n\n[![GitHub Release](https://img.shields.io/github/release/DuckDuckStudio/Just-No-xxx?style=flat)](https://github.com/DuckDuckStudio/Just-No-xxx/releases/latest) [![Github All Releases](https://img.shields.io/github/downloads/DuckDuckStudio/Just-No-xxx/total.svg?style=flat)]()  \n\n## 如何使用\n本程序分为基础版和计时版，两个版本区别如下：  \n- 基础版：指定进程**一旦运行就执行惩罚**。\n- 计时版：指定进程**连续运行指定时间后执行惩罚**。\n\n### 如何下载\n请前往[仓库发行版](https://github.com/DuckDuckStudio/Just-No-xxx/releases/latest)下载最新的程序。  \n如果你需要下载不带控制台的程序 ~~(就是运行了你也看不见)~~ ，请下载名称带`no-console`的程序。  \n如果你需要下载计时版，请下载名称带`time`的程序。  \n如果你下载了名称带`py`的程序，则你必须先[配置Python](https://duckduckstudio.github.io/yazicbs.github.io/Tools/Fufu_Tools/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98Q\u0026A/%E4%B8%BB%E7%A8%8B%E5%BA%8F/#open-lite-program)。  \n\n### 如何设置自启动\n请运行程序文件夹中的`Set-Start.py`来设置自启动。  \n无论你是需要取消自启动还是设置自启动，都是用这个文件。  \n\n\n## 自定义\n本程序提供了一系列自定义方案，详细见下。  \n### 如何自定义需要检测的进程\n请修改程序文件夹中的`Processes.txt`文件，每行一个进程。  \n\n### 如何自定义惩罚\n你目前只可以在使用带`py`的程序时修改惩罚。  \n打开程序文件夹中的`main.py`或`main.pyw`，你应该会看到以下内容：  \n```python\n# -------------相关设置-----------------\nnc_processes = \".\\\\Processes.txt\" # 需要检查的进程(Need Check Processes)\n# 每次检查间隔时间请在config.ini中修改，时间过短可能会影响CPU\ndef punish():\n    # 可以在这里编辑需要罚什么\n    # 例如 os.system(\"shutdown -s -t 30\") # 30秒后关机\n    # 当然，你也可以将 30 秒改为 0 秒(立刻)，真就成防沉迷了属于是\n    os.system(\"shutdown -s -t 30\")\n    pass # 就算没有惩罚也不要把我删掉呀，人家也有存在的意义嘛\n# -------------------------------------\n```\n你可以通过编辑`punish`函数来自定义惩罚内容，默认为 30 秒后关机。  \n\n### 如何自定义检测间隔\n打开程序文件夹中的`config.ini`，你应该会看到以下内容：  \n```ini\n[settings]\nwait_time = 1\n# 如果是计时版还会有其他内容\n```\n你可以通过修改`wait_time`的值来自定义检测间隔，单位为“秒”，只接受非负数 (可以使用 0 或者浮点数) 。    \n\n### 如何自定义进程最多持续时间\n你目前只可以在使用 计时版 时修改最多持续时间。  \n打开程序文件夹中的`config.ini`，你应该会看到以下内容：  \n```ini\n[settings]\nwait_time = 1\nthreshold_time = 30\n# 只适用于计时版\n```\n你可以通过修改`threshold_time`的值来自定义检测间隔，单位为“秒”，只接受非负数 (可以使用 0 或者浮点数，不过使用 0 就没意义了嘛) 。   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckduckstudio%2Fjust-no-xxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckduckstudio%2Fjust-no-xxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckduckstudio%2Fjust-no-xxx/lists"}