Skip to content

Commit b198b6f

Browse files
feat: Add chat command for AI interaction and enhance message handlin… (#16)
1 parent 39decc2 commit b198b6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+974
-186
lines changed

.cspell.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"dictionaries": ["software-terms", "npm", "fullstack", "redis"],
4+
"files": ["**", ".vscode/**", ".github/**"],
5+
"ignorePaths": ["bun.lock"],
6+
"ignoreRegExpList": ["apiKey='[a-zA-Z0-9-]{32}'"],
7+
"import": [
8+
"@cspell/dict-redis/cspell-ext.json",
9+
"@cspell/dict-bash/cspell-ext.json"
10+
],
11+
"useGitignore": true,
12+
"version": "0.2",
13+
"words": [
14+
"anirudh",
15+
"sriram",
16+
"Fellipe",
17+
"Utaka",
18+
"umami",
19+
"assemblyai",
20+
"bitstream",
21+
"zenix",
22+
"openrouter",
23+
"elevenlabs",
24+
"hackclub",
25+
"deepgram",
26+
"libsodium",
27+
"livecrawl",
28+
"grok",
29+
"gork",
30+
"dalle",
31+
"dall",
32+
"arcas",
33+
"techwithanirudh"
34+
]
35+
}

.env.example

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ MEM0_API_KEY=your_mem0_api_key_here
5050
# @see https://elevenlabs.io/
5151
# ---------------------------------------------------------------------------------------------------------
5252
DEEPGRAM_API_KEY=your_deepgram_api_key_here
53-
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
53+
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
54+
55+
# ---------------------------------------------------------------------------------------------------------
56+
# Search
57+
# Search the web using ExaAI.
58+
# @see https://exa.ai/
59+
# ---------------------------------------------------------------------------------------------------------
60+
EXA_API_KEY=your_exa_api_key_here

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
*/.js
2-
*.js
31
node_modules
2+
*.json

.eslintrc.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,29 @@
66
"extends": [
77
"eslint:recommended",
88
"plugin:@typescript-eslint/recommended",
9+
"plugin:import-x/recommended",
10+
"plugin:import-x/typescript",
911
"prettier"
1012
],
11-
"plugins": ["@typescript-eslint"],
13+
"plugins": ["@typescript-eslint", "import-x"],
1214
"parser": "@typescript-eslint/parser",
1315
"parserOptions": {
1416
"ecmaVersion": "latest",
1517
"sourceType": "module"
1618
},
1719
"rules": {
1820
"semi": ["warn", "always"],
19-
"quotes": ["warn", "double"],
2021
"arrow-parens": ["warn", "always"],
2122
"no-unused-vars": "warn",
2223
"no-console": "off",
2324
"import/prefer-default-export": "off"
25+
},
26+
"settings": {
27+
"import/resolver": {
28+
// You will also need to install and configure the TypeScript resolver
29+
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
30+
"typescript": true,
31+
"node": true
32+
}
2433
}
2534
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @techwithanirudh

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: techwithanirudh
2+
buy_me_a_coffee: techwithanirudh

.github/pull-request-template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### Description
2+
3+
<!-- Describe your changes in detail. What problem does this PR solve? -->
4+
5+
### Type of Change
6+
7+
<!-- Put an 'x' in all boxes that apply -->
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Refactor (non-breaking change that doesn't fix a bug or add a feature)
13+
- [ ] Documentation update
14+
15+
### Pre-flight Checklist
16+
17+
<!-- Put an 'x' in all boxes that apply -->
18+
19+
- [ ] Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
20+
- [ ] `bun check` without any issues
21+
- [ ] I have reviewed [contributor guidelines](https://github.com/techwithanirudh/discord-ai-bot/blob/main/CONTRIBUTING.md)
22+
23+
### Additional Notes
24+
25+
<!-- Add any additional notes for reviewers -->

.husky/commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bun commitlint --edit $1
2+
bun check:spelling $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bun lint-staged

.vscode/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)