Skip to content

Commit 6efa796

Browse files
committed
Scaffold Discord Example
1 parent dee3771 commit 6efa796

File tree

14 files changed

+1796
-0
lines changed

14 files changed

+1796
-0
lines changed

typescript/discord/.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
BROWSER_USE_API_KEY=""
3+
4+
#
5+
DISCORD_TOKEN=""
6+
DISCORD_CLIENT_ID="1405550452095058111"

typescript/discord/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
!.env.example
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo
42+
next-env.d.ts
43+

typescript/discord/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.12.0
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll.eslint": "explicit"
5+
},
6+
"editor.tabSize": 2,
7+
"editor.insertSpaces": true,
8+
"editor.detectIndentation": false,
9+
"editor.formatOnSave": true,
10+
"editor.formatOnPaste": true,
11+
"editor.formatOnSaveMode": "file"
12+
}

typescript/discord/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Browser Use Discord
2+
3+
- https://discord.com/developers/docs/quick-start/getting-started#step-0-project-setup
4+
- https://discord.js.org/

typescript/discord/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "discord",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "dotenvx run -f ./.env -- tsx src/main.ts",
8+
"sync": "dotenvx run -f ./.env -- tsx src/sync.ts",
9+
"dev": "dotenvx run -f ./.env -- tsx watch src/main.ts"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"packageManager": "[email protected]",
15+
"dependencies": {
16+
"browser-use-sdk": "0.1.1",
17+
"discord.js": "14.21.0",
18+
"express": "5.1.0"
19+
},
20+
"devDependencies": {
21+
"@dotenvx/dotenvx": "1.48.4",
22+
"prettier": "3.6.2",
23+
"tsx": "4.20.4"
24+
}
25+
}

0 commit comments

Comments
 (0)