{"id":13568211,"url":"https://github.com/matteocontrini/locuspocusbot","last_synced_at":"2025-07-25T15:31:45.846Z","repository":{"id":88122037,"uuid":"106942145","full_name":"matteocontrini/locuspocusbot","owner":"matteocontrini","description":"Telegram bot for finding free and occupied rooms in UniTN buildings","archived":false,"fork":false,"pushed_at":"2023-10-25T17:00:06.000Z","size":2144,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-01T12:52:37.818Z","etag":null,"topics":["bot","dotnet-core","telegram","unitn"],"latest_commit_sha":null,"homepage":"https://t.me/LocusPocusBot","language":"C#","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/matteocontrini.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}},"created_at":"2017-10-14T16:09:35.000Z","updated_at":"2024-03-11T13:53:03.000Z","dependencies_parsed_at":"2024-01-14T03:46:35.757Z","dependency_job_id":null,"html_url":"https://github.com/matteocontrini/locuspocusbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocontrini%2Flocuspocusbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocontrini%2Flocuspocusbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocontrini%2Flocuspocusbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocontrini%2Flocuspocusbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matteocontrini","download_url":"https://codeload.github.com/matteocontrini/locuspocusbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227590146,"owners_count":17790446,"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":["bot","dotnet-core","telegram","unitn"],"created_at":"2024-08-01T14:00:21.709Z","updated_at":"2024-12-01T15:46:16.010Z","avatar_url":"https://github.com/matteocontrini.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# LocusPocusBot 2.0 [![Build Status](https://travis-ci.com/matteocontrini/locuspocusbot.svg?branch=dotnet)](https://travis-ci.com/matteocontrini/locuspocusbot)\n\n## Previous versions\n\nA previous version of this bot was developed in Go and has been available for about a year and a half. The code of that version is now available [in another branch](https://github.com/matteocontrini/locuspocusbot/tree/go).\n\n## Requirements\n\nMongoDB is required for the bot to work. Data about users and groups will be stored in the database.\n\n## Configuration\n\nConfiguration of the application is done through the `appsettings.json` file read from the current working directory at startup.\n\nExamples for [development](https://github.com/matteocontrini/locuspocusbot/blob/dotnet/LocusPocusBot/appsettings.example.development.json) and [production](https://github.com/matteocontrini/locuspocusbot/blob/dotnet/LocusPocusBot/appsettings.example.json) environments are available.\n\n## Running for development\n\nChoose one of the following methods:\n\n### Visual Studio\n\nRequirements:\n\n- .NET 6.0 SDK is installed\n- MongoDB is running on the host and port specified in the `appsettings.json` file\n- The `LocusPocusBot/bin/Debug/net6.0` directory contains the `appsettings.json` file\n\nRun with the nice green button.\n\n### dotnet CLI\n\nRequirements:\n\n- .NET 6.0 SDK is installed\n- MongoDB is running on the host and port specified in the `appsettings.json` file\n- The `LocusPocusBot` directory contains the `appsettings.json` file\n\nRun with the dotnet CLI by executing:\n\n```sh\ncd LocusPocusBot\ndotnet run\n```\n\n### Docker Compose\n\nA basic development Docker Compose file (not including MongoDB) would look like this:\n\n```yaml\nversion: '3'\n\nservices:\n  locuspocusbot:\n    container_name: 'locuspocusbot'\n    build: .\n    network_mode: 'host'\n    volumes:\n      - ./LocusPocusBot/appsettings.json:/app/appsettings.json\n```\n\nThis time make sure that the configuration file lies at `LocusPocusBot/appsettings.json`.\n\nNow run this command in the repository directory:\n\n```sh\ndocker-compose -f docker-compose.yml up --build\n```\n\n## Running in production\n\nA basic Docker Compose file for production looks like this:\n\n```yaml\nversion: '3'\n\nservices:\n  locuspocusbot:\n    container_name: 'locuspocusbot'\n    image: 'matteocontrini/locuspocusbot'\n    restart: unless-stopped\n    network_mode: 'host'\n    volumes:\n      - ./appsettings.json:/app/appsettings.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteocontrini%2Flocuspocusbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatteocontrini%2Flocuspocusbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteocontrini%2Flocuspocusbot/lists"}