Skip to content

Commit

Permalink
feat: discord-tickets#206 convert to interactions (buttons and applic…
Browse files Browse the repository at this point in the history
…ation commands) (discord-tickets#238)

* feat: make command handler slash command-ready

Only `help` and `settings` commands work so far

* feat(commands): finish new settings command

* fix(settings): convert `roles` and `ping` to an array

* fix(commands): make `add` a slash command

* fix(commands): make `blacklist` a slash command

* fix(commands): remove URLs from `help` command

* Add weblate badge and overview image

* Update sponsors

* sqlite things

* imrpovements

* update eslint rules

* (⚠ untested) close command

* fix: default locale for getting command option names

* Update README.md

* Update README.md

* Update README.md

* update new command to slash commands and fix close command

* fixes and improvements

* fix: closing a ticket when the creator has left

* Revert "fix: closing a ticket when the creator has left"

This reverts commit afc40ae.

* fix: closing a ticket when the creator has left

* fix: localisation issues in settings command

* fix: delete category channel

* New button and select panels + updated message panels

Includes new options for panel embed message image and thumbnail

Co-Authored-By: Puneet Gopinath <[email protected]>
Co-Authored-By: thevisuales <[email protected]>

* Finish converting to buttons, added close button

Co-Authored-By: Puneet Gopinath <[email protected]>
Co-Authored-By: thevisuales <[email protected]>

* fully convert to slash commands

* re-add "... has created a ticket" message

* locales

* fix add and remove commands

* fix remove command

* fix stats command

* eslint

Co-authored-by: Puneet Gopinath <[email protected]>
Co-authored-by: thevisuales <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2021
1 parent 39e2cef commit 95f7671
Show file tree
Hide file tree
Showing 38 changed files with 2,460 additions and 2,247 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ module.exports = {
}
],
'max-lines': [
'warn'
'warn',
500
],
'max-statements-per-line': [
'error'
Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[![GitHub stars](https://img.shields.io/github/stars/discord-tickets/bot?style=flat-square)](https://github.com/discord-tickets/bot/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/discord-tickets/bot?style=flat-square)](https://github.com/discord-tickets/bot/stargazers)
[![License](https://img.shields.io/github/license/discord-tickets/bot?style=flat-square)](https://github.com/discord-tickets/bot/blob/main/LICENSE)
![](https://img.shields.io/badge/dynamic/json?color=5865F2&label=bots&query=clients&url=https%3A%2F%2Fstats.discordtickets.app&logo=discord&logoColor=white&style=flat-square)
![](https://img.shields.io/badge/dynamic/json?color=5865F2&label=tickets&query=tickets&url=https%3A%2F%2Fstats.discordtickets.app&logo=discord&logoColor=white&style=flat-square)
[![Codacy](https://img.shields.io/codacy/grade/b974eb5f984c40868e07d82c968bd02d?logo=codacy&style=flat-square)](https://www.codacy.com/gh/discord-tickets/bot/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=discord-tickets/bot&amp;utm_campaign=Badge_Grade)
[![Discord](https://img.shields.io/discord/451745464480432129?label=discord&color=7289DA&style=flat-square)](https://go.eartharoid.me/discord)
[![Crowdin](https://badges.crowdin.net/discord-tickets/localized.svg)](https://i18n.discordtickets.app/project/discord-tickets)
[![Weblate](https://i18n.capestar.net/widgets/discord-tickets/en_GB/bot/svg-badge.svg)](https://i18n.capestar.net/engage/discord-tickets/en_GB/)

<br>

Expand Down Expand Up @@ -37,6 +39,8 @@ You can also configure the functionality of the bot to your liking and add comma
If the bot hasn't already been translated to your (community's) language, you can [translate](https://github.com/discord-tickets/.github/blob/main//CONTRIBUTING.md#translating) it yourself.
Plugin authors are encouraged to support multiple languages as well.

[![Weblate](https://i18n.capestar.net/widgets/discord-tickets/en_GB/bot/multi-auto.svg)](https://i18n.capestar.net/engage/discord-tickets/en_GB/)

3. **Multiple ticket categories**
Each ticket category has its own settings for messages and the support team roles. There's also multiple methods of creating a ticket.

Expand Down Expand Up @@ -88,7 +92,13 @@ Thank you to everyone to has contributed to Discord Tickets, including everyone

## Sponsors

Does your community or company use Discord Tickets? Sponsor the project to get your logo shown here.
*Does your community or company use Discord Tickets? [Sponsor the project](https://github.com/discord-tickets/bot/?sponsor=1) to get your logo shown here.*

**These awesome people and communities sponsor Discord Tickets:**

- [reSkybounds](https://reskybounds.com/) ([Discord](https://discord.reskybounds.com/))
- [Cal#0004](https://discord.com/users/239036926152146944) <!-- @24c4 -->


### Donate

Expand Down
18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,18 @@
"dependencies": {
"@eartharoid/i18n": "^1.0.0",
"boxen": "^5.0.1",
"command-line-args": "^5.2.0",
"cryptr": "^6.0.2",
"discord.js": "^13.1.0",
"dotenv": "^8.6.0",
"jsonschema": "^1.4.0",
"keyv": "^4.0.3",
"leeks.js": "^0.2.2",
"leekslazylogger": "^3.0.2",
"ms": "^2.1.3",
"mustache": "^4.2.0",
"node-emoji": "^1.11.0",
"node-fetch": "^2.6.1",
"semver": "^7.3.5",
"sequelize": "^6.6.5",
"string-argv": "^0.3.1",
"terminal-link": "^2.1.1",
"to-time-monthsfork": "^1.1.4"
"terminal-link": "^2.1.1"
},
"devDependencies": {
"all-contributors-cli": "^6.20.0",
Expand All @@ -64,10 +60,10 @@
"sqlite3": "^5.0.2"
},
"peerDependencies": {
"mariadb": "^2.5.2",
"mysql2": "^2.2.5",
"pg": "^8.5.1",
"pg-hstore": "^2.3.3",
"tedious": "^11.0.3"
"mariadb": "^2.5.4",
"mysql2": "^2.3.0",
"pg": "^8.7.1",
"pg-hstore": "^2.3.4",
"tedious": "^11.4.0"
}
}
69 changes: 2 additions & 67 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 95f7671

Please sign in to comment.