-
Notifications
You must be signed in to change notification settings - Fork 73
Typescript review #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 20 commits
af2ae08
331e0a6
7017e85
d99ce54
b146ade
2d9cd51
3a30b0c
7328dc0
718590c
f24d813
a3bde3d
283d8f3
1e98a3a
755b243
a519b57
41c3c32
39930f4
ea0d6a5
1fb575b
9e3efe4
1e770df
95e2312
90866b3
0808d6f
d54e513
32145b2
fc6217f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| dist | ||
|
|
||
| *.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "plugins": [], | ||
| "arrowParens": "avoid", | ||
| "bracketSameLine": true, | ||
| "bracketSpacing": true, | ||
| "singleQuote": false, | ||
| "trailingComma": "es5", | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "semi": true, | ||
| "printWidth": 100 | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,20 +1,33 @@ | ||||||
| <div align="center"> | ||||||
| <h1>Discord AI Bot</h1> | ||||||
| <h2>Repository is now in maintanance mode - rewriting project to Typescript on <a href="https://github.com/238SAMIxD/discord-ai-bot/tree/typescript">typescript</a> branch</h2> | ||||||
| <h3 align="center">Discord bot to interact with <a href="https://github.com/jmorganca/ollama">Ollama</a> and <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">AUTOMATIC1111 Stable Diffusion</a> as a chatbot</h3> | ||||||
| <h3><img alt="Stars" src="https://img.shields.io/github/stars/mekb-turtle/discord-ai-bot?display_name=tag&style=for-the-badge" /></h3> | ||||||
| <h3><img alt="Discord chat with the bot" src="assets/screenshot.png" /></h3> | ||||||
| <h1>Discord AI Bot</h1> | ||||||
| <h2>Repository is now in maintenance mode - rewriting project to Typescript</h2> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (typo): Use the conventional capitalization "TypeScript" instead of "Typescript". This keeps the heading consistent with the official project name and common usage.
Suggested change
|
||||||
| <h3 align="center">Discord bot to interact with <a href="https://github.com/jmorganca/ollama">Ollama</a> and <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">AUTOMATIC1111 Stable Diffusion</a> as a chatbot</h3> | ||||||
| <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/238samixd/discord-ai-bot?style=social"> | ||||||
| </div> | ||||||
|
|
||||||
| The project started thanks to [mekb](https://github.com/mekb-turtle). | ||||||
|
|
||||||
| ### Set-up instructions | ||||||
| ## Roadmap | ||||||
|
|
||||||
| - Handle pdf attachments | ||||||
| - Implement multiple servers support (copying commands?) | ||||||
| - Check (and fix if necessary) `Dockerfile` and `docker-compose` setup | ||||||
| - Review installation and usage instructions | ||||||
| - Create docs with examples for the bot | ||||||
| - Add slow mode option to prevent spam and GPU overload | ||||||
| - Write unit tests | ||||||
|
||||||
| - Write unit tests | |
| - Expand and maintain unit test coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (typo): Capitalize "YouTube" as a proper noun in roadmap bullets.
Specifically, update “youtube loader” and “youtube video extraction” to “YouTube loader” and “YouTube video extraction.”
Suggested implementation:
- Implement [OpenWebUI](https://github.com/open-webui/open-webui) interactions (web search, YouTube loader)
- ? Implement [fabric](https://github.com/danielmiessler/fabric) integration (patterns, YouTube video extraction if needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (typo): Fix the typo "atleast" → "at least".
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import js from "@eslint/js"; | ||
| import globals from "globals"; | ||
| import tseslint from "typescript-eslint"; | ||
|
|
||
| export default tseslint.config( | ||
| { ignores: ["dist"] }, | ||
| { | ||
| extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
| files: ["**/*.ts"], | ||
| languageOptions: { | ||
| ecmaVersion: 2020, | ||
| globals: globals.browser, | ||
| }, | ||
| plugins: {}, | ||
| rules: { | ||
| "@typescript-eslint/no-unused-vars": "error", | ||
| }, | ||
| } | ||
| ); |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,48 @@ | ||
| { | ||
| "name": "discord-ai-bot", | ||
| "main": "src/index.js", | ||
| "scripts": { | ||
| "start": "node src/index.js" | ||
| }, | ||
| "dependencies": { | ||
| "axios": "^1.6.3", | ||
| "discord.js": "^14.14.1", | ||
| "dotenv": "^16.3.1", | ||
| "meklog": "^1.0.2" | ||
| }, | ||
| "type": "module", | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.7.0", | ||
| "@types/eslint__js": "^8.42.3", | ||
| "eslint": "^9.7.0", | ||
| "globals": "^15.8.0" | ||
| } | ||
| "name": "discord-bot-template", | ||
| "version": "1.0.0", | ||
| "description": "A basic Discord bot template using TypeScript and discord.js", | ||
| "main": "dist/index.js", | ||
| "scripts": { | ||
| "start": "node dist/index.js", | ||
| "build": "tsc", | ||
| "dev": "ts-node src/index.ts", | ||
| "test": "npm run test:lint && npm run test:prettier && npm run test:jest", | ||
| "test:jest": "jest", | ||
| "test:lint": "eslint src", | ||
| "test:prettier": "prettier --check src", | ||
| "lint": "eslint src --fix", | ||
| "prettier": "prettier --write src" | ||
| }, | ||
| "keywords": [ | ||
| "discord", | ||
| "bot", | ||
| "typescript", | ||
| "discord.js" | ||
| ], | ||
| "author": "238SAMIxD", | ||
| "license": "ISC", | ||
| "dependencies": { | ||
| "axios": "^1.7.9", | ||
| "discord.js": "^14.14.1", | ||
| "dotenv": "^16.4.5", | ||
| "meklog": "^1.0.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.20.0", | ||
| "@jest/globals": "^29.7.0", | ||
| "@types/eslint__js": "^8.42.3", | ||
| "@types/jest": "^29.5.14", | ||
| "@types/node": "^20.11.24", | ||
| "eslint": "^9.20.1", | ||
| "eslint-config-prettier": "^10.0.1", | ||
| "eslint-plugin-prettier": "^5.2.3", | ||
| "globals": "^15.15.0", | ||
| "jest": "^29.7.0", | ||
| "prettier": "^3.5.0", | ||
| "ts-jest": "^29.2.5", | ||
| "ts-node": "^10.9.2", | ||
| "typescript": "^5.4.2", | ||
| "typescript-eslint": "^8.24.0" | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo in environment docs comment.
Line 4 says “sever” instead of “server”.
🤖 Prompt for AI Agents