Skip to content

Commit

Permalink
Merge branch 'AkaruiDevelopment:v6' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Leref authored Dec 20, 2023
2 parents 7f45226 + 320c886 commit 5000f38
Show file tree
Hide file tree
Showing 868 changed files with 25,289 additions and 9,749 deletions.
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

87 changes: 87 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Reporting Bug
description: Report us the issue, and leave it to us! 🤗
title: "Bug: "
labels: "bug"
assignees: "Leref"
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Fill in the blanks by following the steps. 🙌
- type: dropdown
id: type
attributes:
label: Bug Type
description: Please select a type of bug you want to report.
options:
- Function
- Callback
- Handler
- Extensions
validations:
required: true

- type: textarea
id: code
attributes:
label: Bugged Function
render: js
description: Please type usage of your code
placeholder: |
module.exports = {
name: "ping",
type: 'interaction',
prototype: 'slash',
code: `
$sendMessage[Hello?]
`
}
validations:
required: true

- type: dropdown
id: aoijs-version
attributes:
label: Version of aoi.js
description: What version of aoi.js are you using?
options:
- v6.6.1
- v6.6.0
- v6.5.6
validations:
required: true

- type: dropdown
id: node-version
attributes:
label: Version of Node.js
description: Also, what version of Node.js are you using?
options:
- v16.11.0 (Lowest)
- v20.10.0 (LTS)
- v21.4.0 (Current)
validations:
required: true

- type: textarea
id: excepted
attributes:
label: Excepted Output
description: Please describe your expectations the code you have tried.

- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/AkaruiDevelopment/aoi.js/blob/v5/.github/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord server
- name: Discord Server
url: https://discord.gg/HMUfMXDQsV
about: Please visit our Discord server for question and support.
about: Contact us in our Discord Server
18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_requesting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Feature Request
description: Request a feature or suggest us what is in your mind!
labels: "enhancement"
assignees:
- enhancement
body:
- type: markdown
attributes:
value: |
Please explain what is in your mind, we would like to hear it from you! 🤠
- type: dropdown
id: type
attributes:
label: Featuring Type
description: Please select a type of feature you want to request.
options:
- Function
- Callback
- Handler
- Extensions
- Others
validations:
required: true

- type: textarea
id: explaining
attributes:
label: So, what is it about?
description: Please describe what you're requesting for. So, we Akarui Team can understand your request better and work on it faster!
placeholder: It's about...
validations:
required: true

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/AkaruiDevelopment/aoi.js/blob/v5/.github/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
48 changes: 48 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/Functions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Type
- [ ] Discord
- [ ] Client
- [ ] Guild
- [ ] Channel
- [ ] Message
- [ ] User
- [ ] Member
- [ ] Role
- [ ] Emoji
- [ ] Invite
- [ ] Webhook
- [ ] AutoMod
- [ ] Misc

- [ ] JavaScript
- [ ] Array
- [ ] Conditions
- [ ] File System
- [ ] Loops
- [ ] Maths
- [ ] Misc
- [ ] Object
- [ ] Process
- [ ] String

## Description

> Give a brief description of the pull request.
## Usage

> Give a brief example of how would be the usage of this pull request.
> **( `--`, if usage is not changed)**
## Semver Changes

- [ ] Patch (bug fix, no new features)
- [ ] Minor (new features, no breaking changes)
- [ ] Major (breaking changes)

## Issues

> List any issues that this pull request closes.
## Checklist

- [ ] I have read the [Contributing Guidelines](../CONTRIBUTING.md).
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/Module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Module

- [ ] [Core](../../src/core/)
- [ ] [Events](../../src/events/)
- [ ] [Manager](../../src/manager/)
- [ ] [Structures](../../src/structures/)
- [ ] [Typings](../../src/typings/)
- [ ] [Utils](../../src/util/)

## Description

> Give a brief description of the pull request.
## Semver Changes

- [ ] Patch (bug fix, no new features)
- [ ] Minor (new features, no breaking changes)
- [ ] Major (breaking changes)

## Issues

> List any issues that this pull request closes.
## Checklist

- [ ] I have read the [Contributing Guidelines](../CONTRIBUTING.md).
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/nonCore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Description

> Give a brief description of the pull request.
## Semver Changes

- [ ] Patch (bug fix, no new features)
- [ ] Minor (new features, no breaking changes)
- [ ] Major (breaking changes)

## Issues

> List any issues that this pull request closes.
## Checklist

- [ ] I have read the [Contributing Guidelines](../CONTRIBUTING.md).
18 changes: 18 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Client:
- any: ['src/structures/Client.ts', 'src/functions/discord/client/*']

Classes:
- src/structures/*

Manager:
- src/manager/*

Core:
- src/core/**/*

Functions:Discord:
- src/functions/discord/**/*

Functions:JS:
- src/functions/js/**/*

38 changes: 38 additions & 0 deletions .github/workflows/add-feature-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Add Feature label

on:
- pull_request_target

jobs:
add-feature-label:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Find new files in src directory
run: |
NEW_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
CHANGED_FILES=()
for file in $NEW_FILES; do
if [[ $file == "src/"* ]]; then
CHANGED_FILES+=("$file")
fi
done
echo "::set-output name=changed_files::${CHANGED_FILES[*]}"
id: find-files
- name: Add Feature label
if: ${{ steps.find-files.outputs.changed_files != '' }}
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issue = await github.issues.get(context.issue);
const labels = issue.data.labels.map(label => label.name);
if (!labels.includes('Feature')) {
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['Feature']
});
}
23 changes: 23 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on:
- pull_request_target

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: npm ci --ignore-scripts

- name: Deprecate old versions
run: npm deprecate aoi.js@"~5.0.0-dev" "This is no longer supported" || true
run: npm deprecate aoi.js@"~6.1.0-dev" "This is no longer supported" || true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

Expand Down
20 changes: 15 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
commands
config.json
#Ignore modules
node_modules
database
/test.js

#Ignore database files
/database

#Ignore Test Environment
/commands
config.json
src/tests/
plugins
/index.js
.idea
index.js
.vscode
.DS_Store
/dist
ignore
Loading

0 comments on commit 5000f38

Please sign in to comment.