Skip to content

Commit

Permalink
merge: branch 'dev' of github.com:onesoft-sudo/sudobot into dev
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
  • Loading branch information
virtual-designer committed Sep 20, 2024
2 parents 71b87b1 + 00f1d8d commit 2224296
Show file tree
Hide file tree
Showing 386 changed files with 6,140 additions and 1,524 deletions.
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.yml, *.yaml]
indent_size = 2

[*.md, *.mdx]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
12 changes: 1 addition & 11 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# These are supported funding model platforms

github: onesoft-sudo
patreon:
#github: onesoft-sudo
# open_collective: sudobot
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: https://www.sudobot.online/donate
2 changes: 1 addition & 1 deletion .github/cra-metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"lastReadCommit": "488865f642bcd30ffe8feea45c92db7e46a9dde5"
"lastReadCommit": "04f849ee5e093072e7b3186ef3de36c41a7f8ecc"
}
18 changes: 18 additions & 0 deletions .license-notice
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* This file is part of SudoBot.
*
* Copyright (C) 2021, 2022, 2023, 2024 OSN Developers.
*
* SudoBot is free software; you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SudoBot is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with SudoBot. If not, see <https://www.gnu.org/licenses/>.
*/
179 changes: 179 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,179 @@
# Changelog

### 20-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **fix:** eslint issues

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **fix:** type errors

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **feat:** auto configure guilds on guildCreate

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 19-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 18-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **test:** update tests

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **fix:** type errors

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **chore:** update eslint config

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **refactor:** fix eslint issues

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 18-09-2024 - [[Conventional Release Action](mailto:rakinar2@onesoftnet.eu.org)]

* **release:** v10.14.5 [skip ci]

**Signed-off-by:** Conventional Release Action <rakinar2@onesoftnet.eu.org>


### 17-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **chore:** update eslint.config.mjs

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **chore:** update .editorconfig

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **chore:** add .license-notice file

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **chore:** add `addlicense` script from OSN commons

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **style:** update license comments

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **style:** add license comments

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 16-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **docs:** fix table of contents spacing on desktop

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore:** update VERSIONS.md

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 15-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **chore:** update FUNDING.yml

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore:** update VERSIONS.md

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 14-09-2024 - [[Ar Rakin](mailto:rakinar2@gmail.com)]

* **docs:** add max width to the navbar search icon

### 14-09-2024 - [[nin](mailto:95270582+ninsaccplayzyt@users.noreply.github.com)]

* make it sound correct

**Signed-off-by:** nin <95270582+ninsaccplayzyt@users.noreply.github.com>

### 14-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 13-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **chore:** update VERSIONS.md
* **fix(services:auditlog):** do not list `@everyone` as a role on `guildMemberRemove`

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore:** update VERSIONS.md

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore:** update VERSIONS.md

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **deps:** bump discord.js to 14.16.2

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore(extensions):** build extensions [skip ci]

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 13-09-2024 - [[Conventional Release Action](mailto:rakinar2@onesoftnet.eu.org)]

* **release:** v10.14.4 [skip ci]

**Signed-off-by:** Conventional Release Action <rakinar2@onesoftnet.eu.org>


### 12-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **chore:** update VERSIONS.md

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>

* **chore:** create VERSIONS.md

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **chore:** update readme

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **docs:** update vcs guide

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **docs:** fix broken links

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **docs:** fix typo

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **docs:** update vcs guide

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
* **fix:** set default config for AI automod

**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>
Expand All @@ -11,6 +183,13 @@
**Signed-off-by:** Ar Rakin <rakinar2@onesoftnet.eu.org>


### 12-09-2024 - [[Conventional Release Action](mailto:rakinar2@onesoftnet.eu.org)]

* **release:** v10.14.3 [skip ci]

**Signed-off-by:** Conventional Release Action <rakinar2@onesoftnet.eu.org>


### 11-09-2024 - [[Ar Rakin](mailto:rakinar2@onesoftnet.eu.org)]

* **docs:** fix pageinfo action
Expand Down
20 changes: 19 additions & 1 deletion VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,22 @@

Here is a list of SudoBot's notable versions:

[TODO]
| Version | Description | Release Date | Supported Until | Status |
|---------------------------------------------------------------------|---------------------------|--------------|-----------------|------------------|
| [1.x](https://github.com/onesoft-sudo/sudobot/tree/1.x) | Initial release | 2022-03-26 | - | EOL |
| [2.x](https://github.com/onesoft-sudo/sudobot/tree/2.x) | 2.x release | 2022-04-30 | - | EOL |
| [3.x](https://github.com/onesoft-sudo/sudobot/tree/3.x) | 3.x release | 2022-07-16 | - | EOL |
| [4.x](https://github.com/onesoft-sudo/sudobot/tree/4.x) | 4.x release | 2022-08-02 | - | EOL |
| [5.x](https://github.com/onesoft-sudo/sudobot/tree/5.x) | 5.x release | 2022-08-24 | - | EOL |
| [6.x](https://github.com/onesoft-sudo/sudobot/tree/6.x) | 6.x release | 2023-03-09 | - | EOL |
| [7.x](https://github.com/onesoft-sudo/sudobot/tree/7.x) | 7.x release | 2023-08-01 | - | EOL |
| [8.x](https://github.com/onesoft-sudo/sudobot/tree/8.x) | 8.x release [LTS] | 2024-02-03 | 2025-01-01 | LTS |
| 9.x [< 9.26.7] | 9.x release | 2024-06-16 | 2024-08-31 | EOL |
| [9.x](https://github.com/onesoft-sudo/sudobot/tree/9.x) [>= 9.26.7] | 9.x [Security Fix] | 2024-08-30 | 2024-09-30 | Maintenance only |
| [10.x](https://github.com/onesoft-sudo/sudobot/tree/main) | 10.x release [Current] | 2024-08-31 | [No due date] | Stable |

### Terminology

- **EOL**: End of Life. No longer supported.
- **LTS**: Long Term Support. Supported for a longer period of time.
- **Maintenance only**: Only security fixes are provided.
2 changes: 1 addition & 1 deletion docs/app/(docs)/getting-started/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This guide will help you get started with SudoBot. You will learn how to build t
This guide assumes you have a Linux/Unix-based system where you'll install SudoBot. Windows users, please [scroll down](#windows-compatibility) to see how you can run SudoBot on Windows.
</Callout>

Before you start, you need to have the following installed on your system:
Before you start, you need to have the following:

- A Discord API Application token (bot token). Go to the [Discord Developer Portal](https://discord.com/developers/applications) to create a new application, and get the token.
- A [PostgreSQL](https://www.postgresql.org/) database server. You can use a local server or use a cloud service like [Supabase](https://supabase.com/).
Expand Down
2 changes: 1 addition & 1 deletion docs/components/MDX/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function TableOfContents({
<h4 className="pl-[15px] mb-3 mt-4 uppercase font-bold tracking-wider text-[15px]">
On this page
</h4>
<ul className="list-none">
<ul className="list-none pr-2.5">
{headings.map(heading => (
<li key={heading.id}>
<a
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Searching/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Search() {

{!isDesktop && (
<Button
className="min-w-0 text-white"
style={{ minWidth: 0, color: "white" }}
onClick={() => {
setToggled(true);
}}
Expand Down
13 changes: 10 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tseslint from "typescript-eslint";

export default tseslint.config(
{
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
extends: [eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
Expand All @@ -23,6 +23,8 @@ export default tseslint.config(
},
rules: {
indent: "off",
semi: ["warn", "always"],
"no-var": "off",
"linebreak-style": ["error", "unix"],
quotes: [
"warn",
Expand All @@ -31,7 +33,6 @@ export default tseslint.config(
avoidEscape: true
}
],
semi: ["warn", "always"],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
Expand All @@ -47,7 +48,13 @@ export default tseslint.config(
"error",
{ accessibility: "explicit" }
],
"@typescript-eslint/no-unused-vars": "off"
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/restrict-template-expressions": "off"
},
files: ["src/**/*.ts"],
ignores: [
Expand Down
Loading

0 comments on commit 2224296

Please sign in to comment.