Skip to content

Commit

Permalink
Merge pull request #11 from JoinTheAlliance/moon/add-trigger
Browse files Browse the repository at this point in the history
Fix subrequest error
  • Loading branch information
lalalune committed Mar 11, 2024
2 parents 3a44198 + fc1ac00 commit 093d31a
Show file tree
Hide file tree
Showing 10 changed files with 518 additions and 305 deletions.
4 changes: 3 additions & 1 deletion .dev.vars.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ SUPABASE_SERVICE_API_KEY=
OPENAI_API_KEY=sk-*
REPO_OWNER=aframevr
REPO_NAME=aframe
DOCUMENTATION_URL='https://aframe.io/docs/master/'
DOCUMENTATION_URL='https://aframe.io/docs/master/'
WORKER_URL=http://localhost:8787
GITHUB_AUTH_TOKEN=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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
coverage
.dev.vars
.wrangler
.wrangler
concatenated-output.ts
8 changes: 4 additions & 4 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "wrangler start",
"dev": "wrangler dev",
"concat": "node ./scripts/concat.mjs",
"ngrok": "ngrok http 8787",
"fix": "eslint --fix '**/*.ts'",
"lint": "eslint '**/*.ts'",
Expand All @@ -19,7 +20,7 @@
"@supabase/supabase-js": "^2.39.3",
"@tsndr/cloudflare-worker-jwt": "^2.5.0",
"@types/node": "^20.11.19",
"bgent": "^0.0.35",
"bgent": "^0.0.46",
"discord-interactions": "^3.4.0",
"itty-router": "^4.0.13",
"octokit": "^3.1.2",
Expand Down
6 changes: 3 additions & 3 deletions scripts/concat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path, { dirname } from 'path';
import { fileURLToPath } from 'url';

const instructions =
'The above code was taken from my codebase at https://github.com/jointhealliance/bgent.';
'The above code was taken from my codebase at https://github.com/jointhealliance/afbot.';

// Patterns to ignore
const ignorePatterns = [
Expand Down Expand Up @@ -62,11 +62,11 @@ const readDirectory = (dirPath) => {

// Start reading from the root TypeScript directory
const concatenatedContent =
'# START OF BGENT CODEBASE' + readDirectory(directoryPath);
'# START OF AFBOT CODEBASE' + readDirectory(directoryPath);

// Write the concatenated content to the output file
fs.writeFileSync(
outputFile,
concatenatedContent + '# END OF BGENT CODEBASE\n\n' + instructions,
concatenatedContent + '# END OF AFBOT CODEBASE\n\n' + instructions,
);
console.log('TypeScript files have been concatenated into:', outputFile);
227 changes: 0 additions & 227 deletions src/docs.ts

This file was deleted.

Loading

0 comments on commit 093d31a

Please sign in to comment.