{"id":25535529,"url":"https://github.com/238samixd/discord-ai-bot","last_synced_at":"2025-05-16T12:06:40.710Z","repository":{"id":183455169,"uuid":"670177036","full_name":"238SAMIxD/discord-ai-bot","owner":"238SAMIxD","description":"Discord AI chatbot using Ollama and Stable Diffusion","archived":false,"fork":false,"pushed_at":"2025-03-26T00:10:24.000Z","size":175,"stargazers_count":270,"open_issues_count":10,"forks_count":68,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T06:17:35.525Z","etag":null,"topics":["ai","discord","discord-bot","javascript","ollama","stable-diffusion","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/ollama/ollama","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/238SAMIxD.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T13:10:57.000Z","updated_at":"2025-04-06T09:37:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"b31a120d-9fa9-4da8-95da-bade9642d9fc","html_url":"https://github.com/238SAMIxD/discord-ai-bot","commit_stats":{"total_commits":43,"total_committers":5,"mean_commits":8.6,"dds":"0.16279069767441856","last_synced_commit":"1ca2daaa52a6980ea6ecc5c3ed963ec985c3610f"},"previous_names":["mekb-turtle/discord-ai-bot","238samixd/discord-ai-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/238SAMIxD%2Fdiscord-ai-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/238SAMIxD%2Fdiscord-ai-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/238SAMIxD%2Fdiscord-ai-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/238SAMIxD%2Fdiscord-ai-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/238SAMIxD","download_url":"https://codeload.github.com/238SAMIxD/discord-ai-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525141,"owners_count":21118620,"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":["ai","discord","discord-bot","javascript","ollama","stable-diffusion","typescript"],"created_at":"2025-02-20T04:16:03.006Z","updated_at":"2025-04-12T06:17:42.736Z","avatar_url":"https://github.com/238SAMIxD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eDiscord AI Bot\u003c/h1\u003e\n    \u003ch2\u003eRepository is now in maintanance mode - rewriting project to Typescript on \u003ca href=\"https://github.com/238SAMIxD/discord-ai-bot/tree/typescript\"\u003etypescript\u003c/a\u003e branch\u003c/h2\u003e\n    \u003ch3 align=\"center\"\u003eDiscord bot to interact with \u003ca href=\"https://github.com/jmorganca/ollama\"\u003eOllama\u003c/a\u003e and \u003ca href=\"https://github.com/AUTOMATIC1111/stable-diffusion-webui\"\u003eAUTOMATIC1111 Stable Diffusion\u003c/a\u003e as a chatbot\u003c/h3\u003e\n    \u003ch3\u003e\u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/mekb-turtle/discord-ai-bot?display_name=tag\u0026style=for-the-badge\" /\u003e\u003c/h3\u003e\n    \u003ch3\u003e\u003cimg alt=\"Discord chat with the bot\" src=\"assets/screenshot.png\" /\u003e\u003c/h3\u003e\n\u003c/div\u003e\n\nThe project started thanks to [mekb](https://github.com/mekb-turtle).\n\n### Set-up instructions\n\n1. Install [Node.js](https://nodejs.org) (if you have a package manager, use that instead to install this)\n   - Make sure to install at least v14 of Node.js\n2. Install [Ollama](https://github.com/jmorganca/ollama) (ditto)\n3. Pull (download) a model, e.g `ollama pull orca` or `ollama pull llama2`\n4. Start Ollama by running `ollama serve`\n5. [Create a Discord bot](https://discord.com/developers/applications)\n   - Under Application » Bot\n     - Enable Message Content Intent\n     - Enable Server Members Intent (for replacing user mentions with the username)\n6. Invite the bot to a server\n   1. Go to Application » OAuth2 » URL Generator\n   2. Enable `bot`\n   3. Enable Send Messages, Read Messages/View Channels, and Read Message History\n   4. Under Generated URL, click Copy and paste the URL in your browser\n7. Rename `.env.example` to `.env` and edit the `.env` file\n   - You can get the token from Application » Bot » Token, **never share this with anyone**\n   - Make sure to change the model if you aren't using `orca`\n   - Ollama URL can be kept the same unless you have changed the port\n   - You can use multiple Ollama servers at the same time by separating the URLs with commas\n   - Set the channels to the channel ID, comma separated\n     1. In Discord, go to User Settings » Advanced, and enable Developer Mode\n     2. Right click on a channel you want to use, and click Copy Channel ID\n   - You can edit the system message the bot uses, or disable it entirely\n8. Install the required dependencies with `npm i`\n9. Start the bot with `npm start`\n10. You can interact with the bot by @mentioning it with your message\n11. Install \u003ca href=\"https://github.com/AUTOMATIC1111/stable-diffusion-webui\"\u003eStable Diffusion\u003c/a\u003e\n12. Run the script `./webui.sh --api --listen`\n\n### Set-up instructions with Docker\n\n1. Install [Docker](https://docs.docker.com/get-docker/)\n   - Should be atleast compatible with version 3 of compose (docker engine 1.13.0+)\n2. Repeat steps 2—7 from the other setup instructions\n3. Start the bot with `make compose-up` if you have Make installed\n   - Otherwise, try `docker compose -p discord-ai up` instead\n4. You can interact with the bot by @mentioning it with your message\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F238samixd%2Fdiscord-ai-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F238samixd%2Fdiscord-ai-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F238samixd%2Fdiscord-ai-bot/lists"}