{"id":13456021,"url":"https://github.com/mxyng/discollama","last_synced_at":"2025-07-24T09:33:42.190Z","repository":{"id":184899759,"uuid":"672648948","full_name":"mxyng/discollama","owner":"mxyng","description":"Run an AI-powered Discord bot from the comfort of your laptop.","archived":false,"fork":false,"pushed_at":"2024-11-18T21:35:15.000Z","size":113,"stargazers_count":157,"open_issues_count":8,"forks_count":25,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-17T22:05:48.015Z","etag":null,"topics":["bot","discord","discord-bot","discord-py","llm","ollama","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxyng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-30T19:43:45.000Z","updated_at":"2025-04-30T17:33:56.000Z","dependencies_parsed_at":"2023-12-29T08:26:55.324Z","dependency_job_id":"ce7d3c57-c05b-4ca3-97be-d1534f46e010","html_url":"https://github.com/mxyng/discollama","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":0.07499999999999996,"last_synced_commit":"27d77de20b3825a1340eaa6e283441bee6dda484"},"previous_names":["mxyng/discollama"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mxyng/discollama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxyng%2Fdiscollama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxyng%2Fdiscollama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxyng%2Fdiscollama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxyng%2Fdiscollama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxyng","download_url":"https://codeload.github.com/mxyng/discollama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxyng%2Fdiscollama/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266821921,"owners_count":23989820,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","discord","discord-bot","discord-py","llm","ollama","python","python3"],"created_at":"2024-07-31T08:01:15.011Z","updated_at":"2025-07-24T09:33:41.841Z","avatar_url":"https://github.com/mxyng.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# discollama\n\n`discollama` is a Discord bot powered by a local large language model backed by [Ollama](https://github.com/ollama/ollama).\n\n## Dependencies\n\n- Docker and Docker Compose\n\n## Run `discollama.py`\n\n```\nDISCORD_TOKEN=xxxxx docker compose up\n```\n\n\u003e [!NOTE]\n\u003e You must setup a [Discord Bot](https://discord.com/developers/applications) and set environment variable `DISCORD_TOKEN` before `discollama.py` can access Discord.\n\n`discollama.py` requires an [Ollama](https://github.com/ollama/ollama) server. Follow the steps in [ollama/ollama](https://github.com/ollama/ollama) repository to setup Ollama.\n\nBy default, it uses `127.0.0.1:11434` which can be overwritten with `OLLAMA_HOST`.\n\n\u003e Note: Deploying this on Linux requires updating network configurations and `OLLAMA_HOST`.\n\n## Customize `discollama.py`\n\nThe default LLM is `mike/discollama`. A custom personality can be added by changing the `SYSTEM` instruction in the Modelfile and running `ollama create`:\n\n```\nollama create mymodel -f Modelfile\n```\n\nThis can be changed in `compose.yaml`:\n\n```\nenvironment:\n  - OLLAMA_MODEL=mymodel\n```\n\nSee [ollama/ollama](https://github.com/ollama/ollama/blob/main/docs/modelfile.md) for more details.\n\n## Activating the Bot\n\nDiscord users can interact with the bot by mentioning it in a message to start a new conversation or in a reply to a previous response to continue an ongoing conversation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxyng%2Fdiscollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxyng%2Fdiscollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxyng%2Fdiscollama/lists"}