{"id":21017084,"url":"https://github.com/imakebotsforyou/languagefilterbot","last_synced_at":"2025-03-13T17:16:35.111Z","repository":{"id":133535936,"uuid":"568304143","full_name":"IMakeBotsForYou/LanguageFilterBot","owner":"IMakeBotsForYou","description":"A language filter for discord, restricting channels to a specific language","archived":false,"fork":false,"pushed_at":"2024-10-20T15:10:10.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T12:22:43.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IMakeBotsForYou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-11-20T04:49:13.000Z","updated_at":"2024-10-20T15:10:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4dc948e-e4d1-42dd-a77f-813456aa0c3d","html_url":"https://github.com/IMakeBotsForYou/LanguageFilterBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2FLanguageFilterBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2FLanguageFilterBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2FLanguageFilterBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2FLanguageFilterBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IMakeBotsForYou","download_url":"https://codeload.github.com/IMakeBotsForYou/LanguageFilterBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243447632,"owners_count":20292452,"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":"2024-11-19T10:17:49.235Z","updated_at":"2025-03-13T17:16:35.092Z","avatar_url":"https://github.com/IMakeBotsForYou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LanguageFilterBot\nA language filter for discord, restricting channels to a specific language\n\n## 1. General Commands\n\n### `/reload`\n**Description:** Restarts the bot by re-executing the main script.\n\n**Usage:**\n- **Command:** `/reload`\n- **Permission Required:** Owner only\n\n---\n\n### `/language_filter`\n**Description:** Adds or removes a language filter in a specified channel. The bot can restrict messages in a channel to only allow English or Japanese.\n\n**Usage:**\n- **Command:** `/language_filter`\n- **Options:**\n  - `action`: Choose between \"Add filter\" or \"Remove filter\".\n  - `filter_type`: Choose between \"Only Allow English\" or \"Only Allow Japanese\".\n  - `channel`: Specify the target channel.\n  \n**Example:**\n- To allow only English in a channel:  \n  `/language_filter action:add filter_type:Only Allow English channel:#example-channel`\n\n**Permission Required:** Owner only\n\n---\n\n### `/ping`\n**Description:** Returns the bot's latency (ping).\n\n**Usage:**\n- **Command:** `/ping`\n- **Response:** The bot will reply with its current latency in milliseconds.\n\n---\n\n## 2. Message Handling Commands\n\nThese commands are triggered automatically by the bot to filter messages based on language settings.\n\n### **Language Filter**\n- The bot automatically deletes messages that violate language filters applied to specific channels (e.g., too much English in a Japanese-only channel or vice versa).\n\n### **Foreign Language Filter**\n- If a message contains more than 20% foreign language content, the bot may warn the user and delete the message, depending on the configured filters.\n\n---\n\n## 3. Reminder Commands\n\n### `/reminder add`\n**Description:** Adds a new reminder to the bot.\n\n**Usage:**\n- **Command:** `/reminder add time_from_now:\u003cduration\u003e text:\u003creminder_message\u003e [interval:\u003crepetition_duration\u003e]`\n- **Example:** `/reminder add time_from_now:1h text:Check the oven interval:30m`\n- The `interval` option is optional and allows for recurring reminders.\n  \n**Time Format:** `1m`, `1h`, `1d` for minutes, hours, and days respectively.\n\n---\n\n### `/reminder edit`\n**Description:** Edit an existing reminder by its ID, changing its repeat status or interval.\n\n**Usage:**\n- **Command:** `/reminder edit reminder_id:\u003cid\u003e [repeat:\u003cTrue/False\u003e] [interval:\u003cduration\u003e]`\n- **Example:** `/reminder edit reminder_id:abc123 repeat:True interval:2h`\n\n---\n\n### `/reminder remove`\n**Description:** Removes an existing reminder by its ID.\n\n**Usage:**\n- **Command:** `/reminder remove reminder_id:\u003cid\u003e`\n\n---\n\n### `/reminder list`\n**Description:** Lists all active reminders for the user.\n\n**Usage:**\n- **Command:** `/reminder list`\n\n---\n\n## Background Reminder Loop\nThe bot checks for reminders every 60 seconds and sends reminders to users in the designated channels when the time arrives.\n\n---\n\n## Configuration\n- The bot uses a `config.json` file to store active language filters and other settings.\n- The bot also logs deleted messages and their reasons in a `log.json` file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimakebotsforyou%2Flanguagefilterbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimakebotsforyou%2Flanguagefilterbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimakebotsforyou%2Flanguagefilterbot/lists"}