Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

feat: adding event listeners for relevant events #8

Merged
merged 2 commits into from
May 17, 2024
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: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
"require-await": "off"
}
},
{
"files": "src/utils/sendToSupabase.ts",
"rules": {
"camelcase": "off"
}
},
{
"files": "src/contexts/productBoard.ts",
"rules": {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "tsc",
"lint": "eslint src test --max-warnings 0 && prettier src test --check",
"start": "node -r dotenv/config prod/index.js",
"dev": "tsc-watch -p . --noClear --onSuccess \"node -r dotenv/config prod/index.js\"",
"test": "ts-mocha -u tdd test/**/*.spec.ts --recursive --exit --timeout 10000",
"fly-secrets": "fly secrets set $(cat .env | xargs)"
},
Expand All @@ -33,6 +34,7 @@
"homepage": "https://github.com/nhcarrigan/deepgram-bot#readme",
"dependencies": {
"@octokit/graphql": "7.1.0",
"@supabase/supabase-js": "2.43.2",
"discord.js": "14.14.1",
"dotenv": "16.4.5",
"node-fetch": "2",
Expand All @@ -54,6 +56,7 @@
"mocha": "10.4.0",
"prettier": "2.8.8",
"ts-mocha": "10.0.0",
"tsc-watch": "6.2.0",
"typescript": "5.4.5"
}
}
150 changes: 150 additions & 0 deletions pnpm-lock.yaml

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

10 changes: 8 additions & 2 deletions src/config/IntentOptions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { GatewayIntentBits } from "discord.js";

const { Guilds, GuildMessages, MessageContent, GuildMembers } =
GatewayIntentBits;
const {
Guilds,
GuildMessages,
MessageContent,
GuildMembers,
GuildMessageReactions,
} = GatewayIntentBits;

export const IntentOptions = [
Guilds,
Expand All @@ -12,4 +17,5 @@ export const IntentOptions = [
* the member cache updated on join/leave, for the answer command.
*/
GuildMembers,
GuildMessageReactions,
];
Loading
Loading