{"id":47675765,"url":"https://github.com/rakin406/roleplay_bot","last_synced_at":"2026-04-02T13:29:55.006Z","repository":{"id":346403687,"uuid":"1189810893","full_name":"rakin406/roleplay_bot","owner":"rakin406","description":"Chat with AI characters","archived":false,"fork":false,"pushed_at":"2026-03-24T09:11:52.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-24T15:55:30.847Z","etag":null,"topics":["bot","character","chatbot","llm","python","roleplay"],"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/rakin406.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-23T17:32:18.000Z","updated_at":"2026-03-24T09:11:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rakin406/roleplay_bot","commit_stats":null,"previous_names":["rakin406/roleplay_bot"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rakin406/roleplay_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakin406%2Froleplay_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakin406%2Froleplay_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakin406%2Froleplay_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakin406%2Froleplay_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakin406","download_url":"https://codeload.github.com/rakin406/roleplay_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakin406%2Froleplay_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","character","chatbot","llm","python","roleplay"],"created_at":"2026-04-02T13:29:54.934Z","updated_at":"2026-04-02T13:29:54.999Z","avatar_url":"https://github.com/rakin406.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roleplay Bot\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Python](https://img.shields.io/badge/python-%3E%3D3.10-blue.svg)]() [![Lint](https://github.com/rakin406/roleplay_bot/actions/workflows/lint.yml/badge.svg)](https://github.com/rakin406/roleplay_bot/actions)\n\n**Roleplay Bot** is a Python chatbot for roleplaying. The bot plays a\ncharacter with a given name and personality, while you play another character. You\nprovide character names, optional descriptions, and an optional scenario, and the\nbot generates in-character dialogue and actions.\n\n## Example\n\n```python\nfrom roleplay_bot import Bot, BotParameters\n\n# Required parameters\nbot_name = \"Aria\"\nanon_name = \"Fin\"\n\n# Optional parameters\nbot_description = \"A mischievous forest pixie\"\nanon_description = \"A brave ranger\"\nscene = \"In a misty woodland glade, a chance encounter...\"\n\nparams = BotParameters(\n    bot_name=bot_name,\n    anon_name=anon_name,\n    bot_description=bot_description,\n    anon_description=anon_description,\n    scene=scene,\n)\n\nbot = Bot(params)\n\nresponse = bot.chat(\"Hello, Aria!\")\nprint(response)\n```\n\n## Prerequisites\n\n- **Python 3.10+**\n- **Ollama CLI:** [Install Ollama](https://ollama.com) and ensure it is running on your system. Ollama lets you use local LLMs via a simple Python API.\n- **llama3.2 model:** Pull the `llama3.2` model for Ollama using the command `ollama pull llama3.2`.\n- **(Optional) `uv` package manager:** For convenience, you can use [Astral UV](https://astral.sh/docs/uv) to manage dependencies. Install via `pip install uv` and use `uv sync` as shown below. Alternatively, you may install dependencies with pip manually.\n\n## Installation\n\n1. **Clone the repository:**  \n   ```bash\n   git clone https://github.com/rakin406/roleplay_bot.git\n   cd roleplay_bot\n   ```\n2. **Install Python dependencies:**  \n   You need the Ollama Python library. For example:  \n   ```bash\n   pip install ollama\n   ```  \n   *Alternatively*, use the `uv` manager:  \n   ```bash\n   pip install uv\n   uv sync\n   ```\n\n## Usage\n\nRun the main script:\n\n```bash\npython main.py\n```\n\nYou will be prompted for: **Bot’s nickname**, **Your nickname**, **Bot’s character description** (optional), **Your character description** (optional), and **Scenario and lore** (optional). For example:\n\n```\nBot's nickname: Aria\nYour nickname: Fin\nBot's character description (Optional): A mischievous forest pixie\nYour character description (Optional): A brave ranger\nScenario and lore (Optional): In a misty woodland glade, a chance encounter...\n```\n\nAfter entering this information, the interactive chat begins.\n\n```bash\n\u003e\u003e Hello, Aria!\n*Aria giggles and flutters a hand* Greetings, kind ranger. What brings you to my glade?\n```\n\n## Contributing\n\nContributions, bug reports, and feature requests are welcome! Feel free to open an issue or submit a pull request on GitHub.\n\n## Contact\n\nRakin Rahman - rakinrahman406@gmail.com\n\n## License\n\nThis project is released under the **MIT License** (see the [LICENSE](LICENSE) file). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakin406%2Froleplay_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakin406%2Froleplay_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakin406%2Froleplay_bot/lists"}