{"id":25408927,"url":"https://github.com/rafibg/aichatdiscordbot","last_synced_at":"2026-07-11T12:31:41.883Z","repository":{"id":277231393,"uuid":"931746837","full_name":"RafiBG/AIChatDiscordBot","owner":"RafiBG","description":"My local AI chatbot for discord.","archived":false,"fork":false,"pushed_at":"2025-04-09T16:37:16.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T17:21:45.486Z","etag":null,"topics":["aibot","console-application","csharp","csharp-code","discord-bot","dsharplus","llm","ollama-api"],"latest_commit_sha":null,"homepage":"","language":"C#","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/RafiBG.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":"2025-02-12T19:38:46.000Z","updated_at":"2025-04-09T16:37:19.000Z","dependencies_parsed_at":"2025-04-09T17:21:08.818Z","dependency_job_id":"e9435b79-de05-48af-ba24-74492d825c8c","html_url":"https://github.com/RafiBG/AIChatDiscordBot","commit_stats":null,"previous_names":["rafibg/aichatdiscordbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafiBG%2FAIChatDiscordBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafiBG%2FAIChatDiscordBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafiBG%2FAIChatDiscordBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafiBG%2FAIChatDiscordBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafiBG","download_url":"https://codeload.github.com/RafiBG/AIChatDiscordBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758429,"owners_count":21156959,"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":["aibot","console-application","csharp","csharp-code","discord-bot","dsharplus","llm","ollama-api"],"created_at":"2025-02-16T08:18:07.733Z","updated_at":"2025-10-24T23:49:04.673Z","avatar_url":"https://github.com/RafiBG.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nMade with C# on .NET 9.0 and libraries: DSharpPlus, DsharpPlus.Interactivity, DSharpPlus.SlashCommands, Newtonsoft.Json\n# How to use it \nGo to Discord developer portal link: https://discord.com/developers/applications. Make your own discord bot and get the token that will be used in configOllama. Before you leave the website go to Bot and turn on the ones that you see on the image. ![privilage](https://github.com/user-attachments/assets/f6a7ae67-acf6-4d11-a479-7b55df3fab02)\n\nNow the Bot Permissions are shown in the image that you must check to work. ![bot](https://github.com/user-attachments/assets/61b00634-6aee-474f-99e3-549f142380e4)\n\n## GPT4ALL Nomic AI or Ollama (user choice)\n### GPT4ALL Nomic AI\nInstall GPT4ALL from this link: https://www.nomic.ai/gpt4all\nWhen you open the program in the left go to Models and download the model you like.\nGo to Settings -\u003e Application -\u003e Advanced and Enable Local API Server and check what is your API port number (the number can be changed)\nHere is a image of what you are looking for and how it shoud be.\n![gpt4allAdvanced](https://github.com/user-attachments/assets/7b94e3e2-f1a1-4fe6-a3cb-0484c1c77742)\nIn Settings -\u003e Model find Model File and write the exact same name that is written there in the configGPT4All colum model. Local host number that you have in your API port number.\n\nGPT4ALL must be running to be able to connect to your local AI chat bot for discord.\n\nFor first time running you must open AIChatDiscordBot.sln . You will need Visual Studio to open it. Download link for Visual Studio : https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community\u0026channel=Release\u0026version=VS2022\u0026source=VSLandingPage\u0026passive=false\u0026cid=2030\n\nWhen you open it in Visual Studio, press AIChatDiscordBot up there. Here is an image of what you will be looking at.\n![start vis](https://github.com/user-attachments/assets/65832a87-c246-40c1-a82d-adc91400351a)\nYou can now close the console and Visual Studio.\n\nIn the folder Config there is configGPT4All add your Discord token, the 4 numbers of your server, the exact name of the model that you downloaded, then copy the whole file configGPT4All and go to AIChatDiscordBot\\AIChatDiscordBot\\bin\\Debug\\net9.0 and paste it there, also there is your AIChatDiscordBot.exe to start the program.\n\n### Ollama\nInstall Ollama from this link: https://ollama.com/\nFrom the official ollama website you can download AI model for your discord bot: https://ollama.com/search\nOpen your console and enter: ollama serve\nIt will show you the error and the last 5 numbers that you need to put in configOllama to connect the AI.\n![comm](https://github.com/user-attachments/assets/c8af5b48-042d-4a74-a9d5-e5a5b798a010)\n\nOllama must be running in the background to be able to connect to your local AI chat bot for discord.\nRun the command in the console: ollama list\nCopy the full name of the model you downloaded. We will need it for configOllama\nExample of what you will be looking for the name of the model in the console.\n![ModelName](https://github.com/user-attachments/assets/cb687521-ea53-44fe-8a0c-28db29f85d5e)\n\n\nFor first time running you must open AIChatDiscordBot.sln . You will need Visual Studio to open it. Download link for Visual Studio : https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community\u0026channel=Release\u0026version=VS2022\u0026source=VSLandingPage\u0026passive=false\u0026cid=2030\n\nWhen you open it in Visual Studio, press AIChatDiscordBot up there. Here is an image of what you will be looking at.\n![start vis](https://github.com/user-attachments/assets/65832a87-c246-40c1-a82d-adc91400351a)\nYou can now close the console and Visual Studio.\n\nIn the folder Config there is configOllama add your Discord token, the 5 numbers of your server, the exact name of the model that you downloaded, then copy the whole file configOllama and go to AIChatDiscordBot\\AIChatDiscordBot\\bin\\Debug\\net9.0 and paste it there, also there is your AIChatDiscordBot.exe to start the program.\n\nIf you get in the console this error: \"No connection could be made because the target machine actively refused it.\" Check if your \"localhost\" number is correct and token for configOllama server or create one.\n\n# Slash commands\n/ask (your message) \u003cbr/\u003e\n/forgetme - Start a fresh conversation with the AI only for you. \u003cbr/\u003e\n/reset - Resets all the user's chats and starts a whole new conversation for everyone. \u003cbr/\u003e\n/help - Show all the commands for the AI chat bot.\n\n# Results \n![ask0](https://github.com/user-attachments/assets/30b107ec-5cfc-41f0-b8e8-1ac7398f250e)\n\n![AI response](https://github.com/user-attachments/assets/3a3606df-7b22-4f56-a2f9-83c83fba4610)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafibg%2Faichatdiscordbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafibg%2Faichatdiscordbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafibg%2Faichatdiscordbot/lists"}