Skip to content

Commit 82d4eca

Browse files
committed
feat: instructions and restrictions for AI tooling
For the AI-inclined amongst us
1 parent 515a068 commit 82d4eca

2 files changed

Lines changed: 114 additions & 0 deletions

File tree

.cursorignore

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
/logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
.clinic
10+
.clinic-bot
11+
.clinic-api
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Typescript v1 declaration files
45+
typings/
46+
47+
# Optional npm cache directory
48+
.npm
49+
50+
# Optional eslint cache
51+
.eslintcache
52+
53+
# Optional REPL history
54+
.node_repl_history
55+
56+
# Output of 'npm pack'
57+
*.tgz
58+
59+
# Yarn Integrity file
60+
.yarn-integrity
61+
62+
# dotenv environment variables file
63+
*.env
64+
.env
65+
66+
# windows folder options
67+
desktop.ini
68+
69+
# PHPStorm
70+
.idea/
71+
72+
# Misc
73+
/convert.js
74+
/startscript.js
75+
.cache
76+
npm-ls.txt
77+
npm-audit.txt
78+
.vscode/launch.json
79+
80+
# Debug files
81+
*.debug.ts
82+
*.debug.js
83+
84+
.vscode/
85+
86+
config-errors.txt
87+
/config-schema.json
88+
89+
*.tsbuildinfo
90+
91+
# Legacy data folders
92+
/docker/development/data
93+
/docker/production/data

AGENTS.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The project is called Zeppelin. It's a Discord bot that uses Discord.js. The bot is built on the Knub framework.
2+
3+
This repository is a monorepository that contains these projects:
4+
1. **Backend**: The shared codebase of the bot and API. Located in `backend`.
5+
2. **Dashboard**: The web dashboard that contains the bot's management interface and documentation. Located in `dashboard`.
6+
3. **Config checker**: A tool to check the configuration of the bot. Located in `config-checker`.
7+
8+
There is also a `shared` folder that contains shared code used by all projects, such as types and utilities.
9+
10+
# Backend
11+
The backend codebase is located in the `backend` directory. It contains the main bot code, API code, and shared code used by both the bot and API.
12+
Zeppelin's functionality is split into plugins, which are located in the `src/plugins` directory.
13+
Each plugin has its own directory, with a `types.ts` for config types, `docs.ts` for a `ZeppelinPluginDocs` structure, and the plugin's main file.
14+
Each plugin has an internal name, such as "common". In this example, the folder would be `src/plugins/Common` (note the capitalization). The plugin's main file would be `src/plugins/CommonPlugin.ts`.
15+
There are two types of plugins: "guild plugins" and "global plugins". Guild plugins are loaded on a per-guild basis, while global plugins are loaded once for the entire bot.
16+
Plugins can specify dependencies on other plugins and call their public methods. Likewise, plugins can specify public methods in the main file.
17+
Available plugins are specified in `src/plugins/availablePlugins.ts`.
18+
19+
Zeppelin's data layer uses TypeORM. Entities are located in `src/data/entities`, while repositories are in `src/data`. If the repository name is prefixed with "Guild", it's a guild-specific repository. If it's prefixed with "User", it's a user-specific repository. If it has no prefix, it's a global repository.
20+
21+
Environment variables are parsed in `src/env.ts`.

0 commit comments

Comments
 (0)