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

Commit

Permalink
Add transformer for ThreadChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiVaibhav committed May 16, 2024
1 parent d421cd3 commit f3eba3a
Show file tree
Hide file tree
Showing 10 changed files with 452 additions and 32 deletions.
5 changes: 5 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\"",

Check warning on line 10 in package.json

View workflow job for this annotation

GitHub Actions / Validate Dependencies are Pinned

devDependencies tsc-watch version is not fixed: ^6.2.0
"test": "ts-mocha -u tdd test/**/*.spec.ts --recursive --exit --timeout 10000",
"fly-secrets": "fly secrets set $(cat .env | xargs)"
},
Expand All @@ -33,8 +34,10 @@
"homepage": "https://github.com/nhcarrigan/deepgram-bot#readme",
"dependencies": {
"@octokit/graphql": "7.1.0",
"@supabase/supabase-js": "^2.43.2",

Check warning on line 37 in package.json

View workflow job for this annotation

GitHub Actions / Validate Dependencies are Pinned

dependencies @supabase/supabase-js version is not fixed: ^2.43.2
"discord.js": "14.14.1",
"dotenv": "16.4.5",
"lodash": "^4.17.21",

Check warning on line 40 in package.json

View workflow job for this annotation

GitHub Actions / Validate Dependencies are Pinned

dependencies lodash version is not fixed: ^4.17.21
"node-fetch": "2",
"node-schedule": "2.1.1",
"winston": "3.13.0"
Expand All @@ -45,6 +48,7 @@
"@nhcarrigan/prettier-config": "1.0.1",
"@nhcarrigan/typescript-config": "1.0.1",
"@types/chai": "4.3.14",
"@types/lodash": "^4.17.1",

Check warning on line 51 in package.json

View workflow job for this annotation

GitHub Actions / Validate Dependencies are Pinned

devDependencies @types/lodash version is not fixed: ^4.17.1
"@types/mocha": "10.0.6",
"@types/node": "18.19.31",
"@types/node-fetch": "2",
Expand All @@ -54,6 +58,7 @@
"mocha": "10.4.0",
"prettier": "2.8.8",
"ts-mocha": "10.0.0",
"tsc-watch": "^6.2.0",
"typescript": "5.4.5"
}
}
160 changes: 160 additions & 0 deletions pnpm-lock.yaml

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

18 changes: 0 additions & 18 deletions sample.env

This file was deleted.

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

0 comments on commit f3eba3a

Please sign in to comment.