{"repo":"238SAMIxD/discord-ai-bot","free":true,"listed":false,"github":"https://github.com/238SAMIxD/discord-ai-bot","clone":"git clone https://github.com/238SAMIxD/discord-ai-bot.git","description":"Discord AI chatbot using Ollama and Stable Diffusion","language":"JavaScript","stars":294,"topics":["ai","discord-bot","ollama","stable-diffusion","discord","javascript","typescript","llm"],"license":null,"category":"ai-agents","readme_excerpt":"Discord AI Bot Repository is now in maintanance mode - rewriting project to Typescript on typescript branch Discord bot to interact with Ollama and AUTOMATIC1111 Stable Diffusion as a chatbot Set-up instructions 1. Install Node.js (if you have a package manager, use that instead to install this) - Make sure to install at least v14 of Node.js 2. Install Ollama (ditto) 3. Pull (download) a model, e.g ollama pull orca or ollama pull llama2 4. Start Ollama by running ollama serve 5. Create a Discord bot - Under Application » Bot - Enable Message Content Intent - Enable Server Members Intent (for replacing user mentions with the username) 6. Invite the bot to a server 1. Go to Application » OAuth2 » URL Generator 2. Enable bot 3. Enable Send Messages, Read Messages/View Channels, and Read Message History 4. Under Generated URL, click Copy and paste the URL in your browser 7. Rename .env.example to .env and edit the .env file - You can get the token from Application » Bot » Token, never share this with anyone - Make sure to change the model if you aren't using orca - Ollama URL can be kept the same unless you have changed the port - You can use multiple Ollama servers at the same time by separating the URLs with commas - Set the channels to the channel ID, comma separated 1. In Discord, go to User Settings » Advanced, and enable Developer Mode 2. Right click on a channel you want to use, and click Copy Channel ID - You can edit the system message the bot uses, or disable it entirel","default_branch":null,"files":null,"tree":[],"storefront":"/r/238SAMIxD","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/238SAMIxD/discord-ai-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}