Skip to content

🚀 release: v0.1.15 alpha #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Use `/support` command to create a support ticket.
2. Navigate to the "Settings" section.
3. Under "Webhook Configuration", enter the following URL:
```
http://<YOUR_PUBLIC_URL>:3000/unthread/webhook
http://<YOUR_PUBLIC_URL>:3000/webhook/unthread
```
Replace `<YOUR_PUBLIC_URL>` with the public URL provided by VS Code.
4. Save the settings.
Expand Down Expand Up @@ -142,8 +142,8 @@ This project is licensed under [GNU General Public License v3.0](https://opensou

This project is created by **[Waren Gonzaga](https://github.com/warengonzaga)** under [WG Technology Labs](https://github.com/wgtechlabs), with the help of awesome [contributors](https://github.com/wgtechlabs/unthread-discord-bot/graphs/contributors).

<!-- [![contributors](https://contrib.rocks/image?repo=wgtechlabs/unthread-discord-bot)](https://github.com/wgtechlabs/unthread-discord-bot/graphs/contributors) -->
[![contributors](https://contrib.rocks/image?repo=wgtechlabs/unthread-discord-bot)](https://github.com/wgtechlabs/unthread-discord-bot/graphs/contributors)

---

💻 with ❤️ by [Waren Gonzaga](https://warengonzaga.com) and [Him](https://www.youtube.com/watch?v=HHrxS4diLew&t=44s) 🙏
💻 with ❤️ by [Waren Gonzaga](https://warengonzaga.com) and [Him](https://www.youtube.com/watch?v=HHrxS4diLew&t=44s) 🙏
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"dependencies": {
"@keyv/redis": "^4.3.1",
"cacheable": "^1.8.9",
"crypto": "^1.0.1",
"discord.js": "^14.18.0",
"dotenv": "^16.4.7",
Expand Down
3 changes: 3 additions & 0 deletions src/events/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ module.exports = {
name: Events.ClientReady,
once: true,
execute(bot) {
// Explicitly set the bot's status to 'online' to ensure it appears online to users
// This is important as sometimes Discord bots may default to 'idle' or not show proper status
bot.user?.setPresence({
status: 'online',
activities: [{
name: `support tickets`,
type: ActivityType.Listening
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("node:path");
const { Client, Collection, GatewayIntentBits, Partials } = require("discord.js");
const express = require('express');
const app = express();
const port = process.env.PORT || 5000;
const port = process.env.PORT || 3000;
const { handleWebhookEvent } = require('./services/unthread');
const { webhookHandler } = require('./services/webhook');

Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ bytes@3.1.2:
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==

cacheable@^1.8.9:
version "1.8.9"
resolved "https://registry.yarnpkg.com/cacheable/-/cacheable-1.8.9.tgz#f5498999567ae1015761d805bd8bbecd8393fbd4"
integrity sha512-FicwAUyWnrtnd4QqYAoRlNs44/a1jTL7XDKqm5gJ90wz1DQPlC7U2Rd1Tydpv+E7WAr4sQHuw8Q8M3nZMAyecQ==
dependencies:
hookified "^1.7.1"
keyv "^5.3.1"

call-bind-apply-helpers@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6"
Expand Down Expand Up @@ -552,6 +560,11 @@ hasown@^2.0.2:
dependencies:
function-bind "^1.1.2"

hookified@^1.7.1:
version "1.8.1"
resolved "https://registry.yarnpkg.com/hookified/-/hookified-1.8.1.tgz#74a8c97d36e5f8004d230ee2156a607cc84c358c"
integrity sha512-GrO2l93P8xCWBSTBX9l2BxI78VU/MAAYag+pG8curS3aBGy0++ZlxrQ7PdUOUVMbn5BwkGb6+eRrnf43ipnFEA==

http-errors@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
Expand Down