{"id":14256893,"url":"https://github.com/jongan69/Nodejs-Discord-Bot","last_synced_at":"2025-08-12T20:33:34.155Z","repository":{"id":172100059,"uuid":"648844850","full_name":"jongan69/Nodejs-Discord-Bot","owner":"jongan69","description":"A Discord bot using discordjs, Langchainjs, and other SDKs for Experimental Features","archived":false,"fork":false,"pushed_at":"2024-05-07T10:59:30.000Z","size":64987,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-23T07:03:04.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://replit.com/@JonGan2/node-discord-openai-bot","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jongan69.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-03T01:17:46.000Z","updated_at":"2024-08-15T13:17:05.000Z","dependencies_parsed_at":"2023-11-21T00:50:36.741Z","dependency_job_id":null,"html_url":"https://github.com/jongan69/Nodejs-Discord-Bot","commit_stats":null,"previous_names":["jongan69/nodejs-discord-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2FNodejs-Discord-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2FNodejs-Discord-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2FNodejs-Discord-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2FNodejs-Discord-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongan69","download_url":"https://codeload.github.com/jongan69/Nodejs-Discord-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229708187,"owners_count":18111227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-22T07:01:29.586Z","updated_at":"2024-12-14T13:30:35.370Z","avatar_url":"https://github.com/jongan69.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Discord Bot\n\nThis is a Discord Bot written in JavaScript using [Discord.js](https://discord.js.org/) and [OpenAI](https://openai.com/).\n\n\u003cimg width=\"672\" alt=\"Screenshot 2023-06-29 at 5 23 49 PM\" src=\"https://github.com/jongan69/Nodejs-Discord-Bot/assets/29899042/523dc661-2698-44b9-870e-9f3e63167a80\"\u003e\n\n## Requirements\n\nNormal Features\n- Node.js\n- Discord.js\n- OpenAI API\n- LangChain\n- Google Search\n- PDFjs-Dist\n\nExtra Features\n- RAKE\n- ALPACA API\n- ALCHEMY SDK\n\n## Usage\n\nThe bot has several prefix commands for different AI features.\n\n- `!` - AI Text with Memory Buffer (100 messages)\n- `:art` - AI Image\n- `:remix` - AI Image Variation\n- `:resume` - AI PDF Resume Review\n- `:research` - AI Google Search Message Research\n- `:pdfsummary` - AI PDF Summary with Google Search Research\n\nThis bot also has a few slash commands:\n\n\n## AI // Langchain\n/drink - An AI drink recipe\n\n/turbo - use GPT-3.5-Turbo for responses\n\n/research - Prompt Langchain LLM Research using Google Search\n\n/interview - `In Dev:` Using AI with Resumes to simulate an Interview\n\n/lookup - Research Given Information in Google and use AI to Summarize findings\n\n/browse - Summarize information from a URL \n\n/scheduler - Generate Calender .ics files using AI prompts\n\n## Fun\n/ping - Pong!\n\n/tweet - Tweet using discord\n\n\n## Utility\n/entropy - returns entropy from Real Random LLC API\n\n/server - returns server information\n\n/avatar - returns avatar image\n\n/allethnfts - returns all Ethereum NFTs using Alchemy SDK\n\n/bitcoinaddress - returns Bitcoin Address Balance using https://blockchain.info\n\n\n## Moderation\n/kick - Simulates a kick\n\n/prune - delete up to 99 messages in a channel\n\n/user - returns user information\n\n\n## Trading\n/buystock - Buy a single share of stock using Alpaca API\n\n/buybitcoin - Buy a single Bitcoin using Alpaca API\n\n/sellstock - Sell a single share of stock using Alpaca API\n\n/sellbitcoin - Sell a single Bitcoin using Alpaca API\n\n/balance - Returns Alpaca API Account Balances\n\n/list - Returns all Open Positions and P/L\n\n\n## Installation\n\n1. Clone the repository\n2. Run `npm install` to install dependencies\n3. Create a `.env` file and add your Discord Bot secret and Other API Keys:\n- ALCHEMY_APP_API_KEY\n- ALPACA_PAPER_KEY\n- GOOGLE_API_KEY\n- GOOGLE_CSE_ID\n- OPENAI_API_KEY\n- TWITTER_ACCESS_SECRET\n- TWITTER_ACCESS_TOKEN\n- TWITTER_API_KEY\n- TWITTER_API_SECRET\n4. Deploy Slash Commands with `node deploy-commands.js`\n5. Run the bot with `node index.js`\n\n## Configuration\n\nThe bot can be configured by editing the prefix variable in index.js, in order to use `node deploy-commands.js` script to enable slash command auto completion you must have a `config.json` in project root with:\n\n```\n{\n  \"token\": \"DISCORD_BOT_SECRET\",\n  \"clientId\": \"BOT_CLIENT_ID\",\n  \"guildId\": \"DISCORD_SERVER_ID\"\n}\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongan69%2FNodejs-Discord-Bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongan69%2FNodejs-Discord-Bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongan69%2FNodejs-Discord-Bot/lists"}