Skip to content

Commit

Permalink
Core Rewrite (#125) (#126)
Browse files Browse the repository at this point in the history
* full rewrite

* added feadback command

* added issue templates

* bug fix

* updated select menu README

* added instructions on how to add modals and buttons

* added README for events

* added message

* fixed perm check

* updated error message

* Update README.md

* Update README.md

* fixed misspelling

* Update PR template

* updated perms

* remove unused file

* removed unused file

* updated readmes

* bug fix

* bug fix
  • Loading branch information
bowenjw authored Jun 20, 2024
1 parent cb6e53d commit f5f4c7d
Show file tree
Hide file tree
Showing 153 changed files with 3,559 additions and 9,963 deletions.
1 change: 0 additions & 1 deletion .config/sme.json

This file was deleted.

35 changes: 2 additions & 33 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
# Required for minimum function
CLIENT_ID=
TOKEN=<BOT TOKEN>
TEST_GUILD=<TEST GUILD ID>
TRACKING_GUILD=<TEST GUILD ID>
DB_URI=<MONGO TEST URI>
OWNERS=
LOG_LEVEL=debug
ENV=test
API_AUTH=123
API_ENDPOINT=
TOKEN = BOT_TOKEN
GUILDID = GUILD_ID

# Other parameters
TRACKING_CHANNEL=
VERIFY_EMOJI=
CONNECT_EMOJI=🤝
LINKED_EMOJI=🔗
REFUSED_EMOJI=
STATE_LEAD_RENAMEABLE_CHANNELIDS=
STATE_LEAD_ROLE_ID=
STATE_COMMITTEE_ROLE_ID=
REGIONAL_ROLE_ID=
SME_ROLE_IDS=
WEBSITE_FORM_FILLED_ROLE_ID=
PENDING_RULES_AGREEMENT_ROLE_ID=
ALTDENTIFIER_ROLE_ID=
VERIFIED_ROLE_ID=
PROPOSALS_CHANNEL_ID=
SME_LEAD_CHANNEL_ID=
ERROR_WEBHOOK=<GET WEBHOOK FROM LOG CHANNEL IN TEST SERVER>
EVENT_CATEGORY_ID=
EVENT_LOG_CHANNEL_ID=
AMPLIFY_CHANNEL_ID=
AMPLIFY_EMOJI=📶
AMPLIFY_ROLE_ID=
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

121 changes: 0 additions & 121 deletions .eslintrc

This file was deleted.

1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Bug Report
description: File a bug report.
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: contact
attributes:
label: Discord Username
description: How can we get in touch with you if we need more info?
placeholder: ex. wumpus
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Bug Report
description: File a bug report.
title: "[request]: "
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this request!
- type: input
id: contact
attributes:
label: Discord Username
description: How can we get in touch with you if we need more info?
placeholder: ex. wumpus
validations:
required: false
- type: textarea
id: desiered-outcome
attributes:
label: what would you like to see
description: Also tell us, your idea
placeholder: Tell us what you would like to see!
validations:
required: true
33 changes: 0 additions & 33 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/new_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# [New Fuction]: feturename
[Short description]

## Full description
- Why is this feture needed
- Does this affect another systems
- Is this related to an exsiting [Issue](https://github.com/Progressive-Victory/crm-bot/issues)?
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ name: Lint # name of the action (displayed in the github interface)
on: # event list
pull_request: # on a pull request to each of these branches
branches: [main]
paths:
- 'src/**/*.ts'
- 'src/**/*.js'
- 'src/**/*.json'
- '*.json'
push:
branches: [main]

Expand Down
8 changes: 8 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [
"development"
],
"hints": {
"typescript-config/strict": "off"
}
}
7 changes: 0 additions & 7 deletions .husky/pre-commit

This file was deleted.

2 changes: 0 additions & 2 deletions .huskyrc

This file was deleted.

13 changes: 0 additions & 13 deletions .markdownlint.json

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

23 changes: 0 additions & 23 deletions .swcrc

This file was deleted.

10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
"files.insertFinalNewline": true,
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"eslint.experimental.useFlatConfig": true,
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"yaml.schemas": {
"https://json.schemastore.org/github-issue-config.json": "/.github/ISSUE_TEMPLATE/config.yml"
}
}
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2023 Progressive Victory Action
Copyright 2024 Progressive Victory Action

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
Loading

0 comments on commit f5f4c7d

Please sign in to comment.