Skip to content

Commit d894519

Browse files
authored
Merge branch 'main' into fix-fastify
2 parents 3ae6b62 + 3e7127a commit d894519

37 files changed

+1529
-785
lines changed

.all-contributorsrc

+12-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,18 @@
271271
"avatar_url": "https://avatars.githubusercontent.com/u/28811713?v=4",
272272
"profile": "https://github.com/VinDotRun",
273273
"contributions": [
274-
"translation"
274+
"translation",
275+
"bug",
276+
"code"
277+
]
278+
},
279+
{
280+
"login": "M4rlus",
281+
"name": "Marius",
282+
"avatar_url": "https://avatars.githubusercontent.com/u/43551856?v=4",
283+
"profile": "https://github.com/M4rlus",
284+
"contributions": [
285+
"code"
275286
]
276287
}
277288
],

.gitignore

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
.vscode/
44
node_modules/
55
prisma/
6+
user/
67

78
# files
89
*.env*
910
*.db*
1011
*.log
11-
user/config.yml
12-
user/**/*.*
13-
!user/**/.gitkeep
14-
!user/templates/*
1512
summary.md

CHANGELOG.md

+59
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
1+
## [4.0.13](https://github.com/discord-tickets/bot/compare/v4.0.12...v4.0.13) (2023-12-24)
2+
3+
4+
### Bug Fixes
5+
6+
* `npx` stdin command's child process stderr logging ([296002e](https://github.com/discord-tickets/bot/commit/296002e04f545189912b05ef92dae68085fef33e))
7+
* allow no activities ([bd15bd8](https://github.com/discord-tickets/bot/commit/bd15bd8145f4f9fe9b35e4069feafe04777a7d67))
8+
9+
10+
### Features
11+
12+
* **i18n:** add Thai translations ([e2a88f8](https://github.com/discord-tickets/bot/commit/e2a88f82e7189814b15edf3834e153d8dfed6ae4))
13+
* **i18n:** update Finnish translations ([f5b2fc7](https://github.com/discord-tickets/bot/commit/f5b2fc795b37dd81bfdf11f4a848f3666b687e06))
14+
* **i18n:** update Hungarian translations ([717ed0f](https://github.com/discord-tickets/bot/commit/717ed0f4052e1b8c2768e32e33301b0461ed4fd8))
15+
* **i18n:** update Italian translations ([c021f8a](https://github.com/discord-tickets/bot/commit/c021f8a42345de34fc7f64c8a9599778cdf0b721))
16+
* **i18n:** update Italian translations ([cbc62dc](https://github.com/discord-tickets/bot/commit/cbc62dcb046ea96e251c17207cdb5fcd06199b0a))
17+
* **i18n:** update Italian translations ([26e3ac2](https://github.com/discord-tickets/bot/commit/26e3ac26cec2b320fe17a06bfb3c5e6c4b5082e2))
18+
* **i18n:** update Thai translations ([106473b](https://github.com/discord-tickets/bot/commit/106473b26ab137346b3c587e51725ae122ed3bf7))
19+
* **i18n:** update Thai translations ([e30fb14](https://github.com/discord-tickets/bot/commit/e30fb146d7a88e0ba28e02c3a8f55a56e918835a))
20+
* **i18n:** update Thai translations ([081d7a8](https://github.com/discord-tickets/bot/commit/081d7a8cebffade6f849d104d00ea4f85421de71))
21+
* **i18n:** update Thai translations ([fcd174d](https://github.com/discord-tickets/bot/commit/fcd174d827b1df1b42337a3757fa8c89e857743c))
22+
23+
24+
25+
## [4.0.12](https://github.com/discord-tickets/bot/compare/v4.0.11...v4.0.12) (2023-11-18)
26+
27+
28+
### Bug Fixes
29+
30+
* activity name update ([#503](https://github.com/discord-tickets/bot/issues/503)) ([12c4c96](https://github.com/discord-tickets/bot/commit/12c4c96c1fe7c56990fd385fc9e26217ea9ff467))
31+
32+
33+
34+
## [4.0.11](https://github.com/discord-tickets/bot/compare/v4.0.10...v4.0.11) (2023-11-16)
35+
36+
37+
### Bug Fixes
38+
39+
* **i18n:** update Portuguese (Brazil) translations ([#497](https://github.com/discord-tickets/bot/issues/497)) ([efc7885](https://github.com/discord-tickets/bot/commit/efc7885367552955cd1857eb94b0940a56505ec6))
40+
* open tickets count ([#500](https://github.com/discord-tickets/bot/issues/500)) ([b329d5a](https://github.com/discord-tickets/bot/commit/b329d5ae2e0e64b0752d0f452170f4d58accc735))
41+
42+
43+
### Features
44+
45+
* add ticket/channel ID on closed tickets list ([#496](https://github.com/discord-tickets/bot/issues/496)) ([cab1b3b](https://github.com/discord-tickets/bot/commit/cab1b3b6ca067578dabf05a2075697361e7d031b))
46+
* **i18n:** add Romanian translations ([f87d880](https://github.com/discord-tickets/bot/commit/f87d88075395fc13841329ca4c9ed29ac157371d))
47+
* **i18n:** update Czech translations ([a707869](https://github.com/discord-tickets/bot/commit/a7078697b61722aec5bc7ecbb437dab31bb50465))
48+
* **i18n:** update Czech translations ([80bedbc](https://github.com/discord-tickets/bot/commit/80bedbc2ba1204376a93260b25c8bbb6a1dbdac1))
49+
* **i18n:** update Dutch translations ([6b8cd9e](https://github.com/discord-tickets/bot/commit/6b8cd9eb290ea2a97927d4bf57541d4e8221d022))
50+
* **i18n:** update Dutch translations ([1e834fd](https://github.com/discord-tickets/bot/commit/1e834fdeb3f726d59aef06a8f42ab1de5e4a9b04))
51+
* **i18n:** update Dutch translations ([4c8bba3](https://github.com/discord-tickets/bot/commit/4c8bba3917c8ce6e1c088487d15f858c1a58ff31))
52+
* **i18n:** update Finnish translations ([e7a1aac](https://github.com/discord-tickets/bot/commit/e7a1aac42411c85186b5f4af3b4590c53f2dfdba))
53+
* **i18n:** update Russian translations ([380d315](https://github.com/discord-tickets/bot/commit/380d315a91718e20eb6b47ea64e6f23f5c7c0677))
54+
* **i18n:** update Spanish translations ([1f7899b](https://github.com/discord-tickets/bot/commit/1f7899b7723555736c697b1a790ddfb8f877eae0))
55+
* **i18n:** update Turkish translations ([99904c2](https://github.com/discord-tickets/bot/commit/99904c2f7af2a9eda164b16ec1e92d3a02a3d461))
56+
* **i18n:** update Turkish translations ([830b1b1](https://github.com/discord-tickets/bot/commit/830b1b1edc03aadf4c8a284615ac80f8b0c42e81))
57+
58+
59+
160
## [4.0.10](https://github.com/discord-tickets/bot/compare/v4.0.9...v4.0.10) (2023-09-07)
261

362

CONTRIBUTORS.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-28-orange.svg?style=flat-square)](#contributors-)
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-29-orange.svg?style=flat-square)](#contributors-)
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
55

66
## Contributors ✨
@@ -46,7 +46,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
4646
<td align="center" valign="top" width="14.28%"><a href="https://github.com/GeckoBoy84"><img src="https://avatars.githubusercontent.com/u/67899387?v=4?s=100" width="100px;" alt="GeckoBoy84"/><br /><sub><b>GeckoBoy84</b></sub></a><br /><a href="https://github.com/discord-tickets/bot/issues?q=author%3AGeckoBoy84" title="Bug reports">🐛</a> <a href="#ideas-GeckoBoy84" title="Ideas, Planning, & Feedback">🤔</a> <a href="#question-GeckoBoy84" title="Answering Questions">💬</a></td>
4747
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Manfred-exe"><img src="https://avatars.githubusercontent.com/u/81268335?v=4?s=100" width="100px;" alt="Manfred.exe"/><br /><sub><b>Manfred.exe</b></sub></a><br /><a href="#translation-Manfred-exe" title="Translation">🌍</a></td>
4848
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Thomasthegama"><img src="https://avatars.githubusercontent.com/u/70441539?v=4?s=100" width="100px;" alt="Thomasthegama"/><br /><sub><b>Thomasthegama</b></sub></a><br /><a href="#translation-Thomasthegama" title="Translation">🌍</a></td>
49-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/VinDotRun"><img src="https://avatars.githubusercontent.com/u/28811713?v=4?s=100" width="100px;" alt="Vin"/><br /><sub><b>Vin</b></sub></a><br /><a href="#translation-VinDotRun" title="Translation">🌍</a></td>
49+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/VinDotRun"><img src="https://avatars.githubusercontent.com/u/28811713?v=4?s=100" width="100px;" alt="Vin"/><br /><sub><b>Vin</b></sub></a><br /><a href="#translation-VinDotRun" title="Translation">🌍</a> <a href="https://github.com/discord-tickets/bot/issues?q=author%3AVinDotRun" title="Bug reports">🐛</a> <a href="https://github.com/discord-tickets/bot/commits?author=VinDotRun" title="Code">💻</a></td>
50+
</tr>
51+
<tr>
52+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/M4rlus"><img src="https://avatars.githubusercontent.com/u/43551856?v=4?s=100" width="100px;" alt="Marius"/><br /><sub><b>Marius</b></sub></a><br /><a href="https://github.com/discord-tickets/bot/commits?author=M4rlus" title="Code">💻</a></td>
5053
</tr>
5154
</tbody>
5255
</table>

Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ COPY --link . .
1515

1616
FROM node:18-alpine AS runner
1717
RUN apk --no-cache add curl \
18-
&& adduser --disabled-password --home /home/container container
18+
&& adduser --disabled-password --home /home/container container \
19+
&& mkdir /app \
20+
&& chown container:container /app \
21+
&& chmod -R 777 /app
1922
USER container
2023
ENV USER=container \
2124
HOME=/home/container \
2225
NODE_ENV=production \
2326
HTTP_HOST=0.0.0.0 \
24-
HTTP_PORT=80
27+
DOCKER=true
2528
WORKDIR /home/container
26-
COPY --from=builder --chown=container:container /build ./
27-
EXPOSE ${HTTP_PORT}/tcp
28-
ENTRYPOINT [ "/home/container/scripts/start.sh" ]
29+
COPY --from=builder --chown=container:container --chmod=777 /build /app
30+
ENTRYPOINT [ "/app/scripts/start.sh" ]
2931
HEALTHCHECK --interval=15s --timeout=5s --start-period=60s \
3032
CMD curl -f http://localhost:${HTTP_PORT}/status || exit 1
3133
LABEL org.opencontainers.image.source=https://github.com/discord-tickets/bot \

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
---
3232

33-
[![PebbleHost](https://img.eartharoid.me/insecure/rs:auto:180/plain/s3://eartharoid/sharex/21/10/pebblehost.webp)](https://pebble.host/discordtickets)
33+
[![BisectHosting](https://www.bisecthosting.com/partners/custom-banners/41ca8074-184e-4ad1-a44d-77750ee8bfb9.webp)](https://bisecthosting.com/discordtickets)
3434

35-
<a href="https://pebble.host/discordtickets">Partnered with PebbleHost</a>
35+
<a href="https://bisecthosting.com/discordtickets">Partnered with BisectHosting</a>
3636
<br>
3737
<sub>for affordable bot hosting</sub>
3838

db/sqlite/schema.prisma

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ generator client {
44

55
datasource db {
66
provider = "sqlite"
7-
url = "file:../user/database.db"
7+
url = env("DB_CONNECTION_URL")
88
}
99

1010
model ArchivedChannel {

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "discord-tickets",
3-
"version": "4.0.11",
3+
"version": "4.0.13",
44
"private": "true",
55
"description": "The most popular open-source ticket management bot for Discord.",
66
"main": "src/",
@@ -45,52 +45,52 @@
4545
"node": ">=18"
4646
},
4747
"dependencies": {
48-
"@discord-tickets/settings": "^2.1.6",
49-
"@eartharoid/dbf": "^0.4.1",
48+
"@discord-tickets/settings": "^2.2.0",
49+
"@eartharoid/dbf": "^0.4.2",
5050
"@eartharoid/dtf": "^2.0.1",
5151
"@eartharoid/i18n": "^1.2.1",
5252
"@fastify/cookie": "^9.3.1",
5353
"@fastify/jwt": "^8.0.0",
5454
"@fastify/oauth2": "^7.8.0",
55-
"@prisma/client": "^4.16.1",
56-
"boxen": "^7.1.0",
57-
"cryptr": "^6.2.0",
58-
"discord.js": "^14.11.0",
59-
"dotenv": "^16.0.3",
55+
"@prisma/client": "^4.16.2",
56+
"boxen": "^7.1.1",
57+
"cryptr": "^6.3.0",
58+
"discord.js": "^14.14.1",
59+
"dotenv": "^16.3.1",
6060
"fastify": "^4.25.2",
61-
"figlet": "^1.6.0",
61+
"figlet": "^1.7.0",
6262
"fs-extra": "^10.1.0",
63-
"keyv": "^4.5.2",
63+
"keyv": "^4.5.4",
6464
"leeks.js": "^0.3.0",
65-
"leekslazylogger": "^5.0.1",
65+
"leekslazylogger": "^6.0.0",
6666
"ms": "^2.1.3",
6767
"mustache": "^4.2.0",
6868
"node-dir": "^0.1.17",
6969
"node-emoji": "^1.11.0",
7070
"object-diffy": "^1.0.4",
71-
"prisma": "^4.16.1",
72-
"semver": "^7.5.1",
71+
"prisma": "^4.16.2",
72+
"semver": "^7.5.4",
7373
"short-unique-id": "^4.4.4",
74-
"spacetime": "^7.4.4",
74+
"spacetime": "^7.5.0",
7575
"terminal-link": "^2.1.1",
76-
"yaml": "^2.3.2"
76+
"yaml": "^2.3.4"
7777
},
7878
"devDependencies": {
79-
"@commitlint/cli": "^17.6.3",
80-
"@commitlint/config-conventional": "^17.6.3",
81-
"all-contributors-cli": "^6.26.0",
79+
"@commitlint/cli": "^17.8.1",
80+
"@commitlint/config-conventional": "^17.8.1",
81+
"all-contributors-cli": "^6.26.1",
8282
"conventional-changelog-cli": "^2.2.2",
83-
"eslint": "^8.41.0",
83+
"eslint": "^8.56.0",
8484
"eslint-plugin-unused-imports": "^2.0.0",
8585
"husky": "^8.0.3",
86-
"lint-staged": "^13.2.2",
86+
"lint-staged": "^13.3.0",
8787
"markdown-table": "^3.0.3",
8888
"nodemon": "^2.0.22"
8989
},
9090
"optionalDependencies": {
91-
"bufferutil": "^4.0.7",
91+
"bufferutil": "^4.0.8",
9292
"erlpack": "github:discord/erlpack",
9393
"utf-8-validate": "^5.0.10",
94-
"zlib-sync": "^0.1.8"
94+
"zlib-sync": "^0.1.9"
9595
}
9696
}

0 commit comments

Comments
 (0)