{"id":22394054,"url":"https://github.com/leonbyte/dagenslunchbot","last_synced_at":"2026-05-05T12:33:48.555Z","repository":{"id":262893419,"uuid":"872303379","full_name":"LeonByte/DagensLunchBot","owner":"LeonByte","description":"A Discord bot that scrapes and displays daily lunch menus from Sodexo's Restaurang 61:an located at Karolinska Universitetssjukhuset.","archived":false,"fork":false,"pushed_at":"2026-04-28T18:09:02.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-28T20:14:33.361Z","etag":null,"topics":["api","bot","community","daily","discord","engagement","hackathon","integration","javascript","karolinska","lunch","menus","nackademin","python","restaurang61an","scraping","sodexo","universitetssjukhuset","updates","web"],"latest_commit_sha":null,"homepage":"https://61an.sodexo.se","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeonByte.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":"2024-10-14T07:53:18.000Z","updated_at":"2026-04-28T18:09:00.000Z","dependencies_parsed_at":"2024-11-14T21:38:08.285Z","dependency_job_id":"7dfd09e3-01cc-46e8-912c-c2bc5a2527e0","html_url":"https://github.com/LeonByte/DagensLunchBot","commit_stats":null,"previous_names":["leonbyte/dagenslunchbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LeonByte/DagensLunchBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonByte%2FDagensLunchBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonByte%2FDagensLunchBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonByte%2FDagensLunchBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonByte%2FDagensLunchBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeonByte","download_url":"https://codeload.github.com/LeonByte/DagensLunchBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonByte%2FDagensLunchBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["api","bot","community","daily","discord","engagement","hackathon","integration","javascript","karolinska","lunch","menus","nackademin","python","restaurang61an","scraping","sodexo","universitetssjukhuset","updates","web"],"created_at":"2024-12-05T05:08:45.807Z","updated_at":"2026-05-05T12:33:48.537Z","avatar_url":"https://github.com/LeonByte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Karolinska Daily Lunch Bot\n\nThis is a Discord bot that fetches the daily lunch menu from the [61an Gastrogate Website](https://61an.gastrogate.com/dagens-lunch/) and provides it in a Discord server through various commands.\n\n## Hackathon 2024 Participation\n\nThis project was developed as part of a Hackathon (light-version) held at Nackademin, on 2024-10-14. It was a collaborative effort to create a Discord bot that scrapes and displays daily lunch menus from Sodexo's Restaurant 61:an at Karolinska University Hospital.\n\n## Features\n\n- **Fetch lunch menus for each weekday**:\n  - `!monday` - Get Monday's lunch menu.\n  - `!tuesday` - Get Tuesday's lunch menu.\n  - `!wednesday` - Get Wednesday's lunch menu.\n  - `!thursday` - Get Thursday's lunch menu.\n  - `!friday` - Get Friday's lunch menu.\n  - `!today` - Get today's lunch menu.\n- **Admin Commands**:\n  - `!shutdown` - Shuts down the bot (admin only).\n  - `!restart` - Restarts the bot (admin only).\n- **Easy setup**: Uses environment variables to keep your bot token secure.\n- **Web scraping**: Uses BeautifulSoup to scrape lunch menu data from [61an Gastrogate](https://61an.gastrogate.com/dagens-lunch/).\n\n## Installation\n\n### Prerequisites\n\nMake sure you have the following installed:\n\n- Python 3.7+\n- [Discord Developer Portal](https://discord.com/developers/applications) account to create a bot and obtain your bot token.\n\n### Setup\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/hdm-py/lunch_bot\n   cd lunch_bot\n\n   ```\n\n2. **Create a virtual environment:**\n\n   ```bash\n   python -m venv venv\n   source venv/Scripts/activate\n   ```\n\n3. **Install dependencies:**\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Create a `.env` file** in the root of the project and add your Discord bot token:\n\n   ```bash\n   DISCORD_TOKEN=your_discord_bot_token\n   ```\n\n5. **Run the bot:**\n   ```bash\n   python main.py\n   ```\n\n## Commands\n\nThe bot responds to the following commands:\n\n| Command      | Description                      |\n| ------------ | -------------------------------- |\n| `!monday`    | Fetches Monday's lunch menu.     |\n| `!tuesday`   | Fetches Tuesday's lunch menu.    |\n| `!wednesday` | Fetches Wednesday's lunch menu.  |\n| `!thursday`  | Fetches Thursday's lunch menu.   |\n| `!friday`    | Fetches Friday's lunch menu.     |\n| `!today`     | Fetches today's lunch menu.      |\n| `!shutdown`  | Shuts down the bot (admin only). |\n| `!restart`   | Restarts the bot (admin only).   |\n\n## How it works\n\nThe bot scrapes the lunch menu from [61an Gastrogate](https://61an.gastrogate.com/dagens-lunch/) using the BeautifulSoup library. It fetches the menu data for each day and responds in Discord when the respective command is used.\n\n### Example\n\n# Example usage of the bot:\n\n!monday\n\n# Returns Monday's lunch menu with the correct date.\n\n!today\n\n# Returns today's lunch menu.\n\n## Example Image\n\nHere are a few sample images:\n\n![Friday Command: Displays the scheduled tasks for Friday.](images/Image1.png)\n![Monday Command: In case of a day that has already passed, shows a message about tasks for the upcoming week.](images/Image2.png)\n![Thursday Command: Provides details on tasks for Thursday.](images/Image3.png)\n![Today Command: Lists tasks for the current day.](images/Image4.png)\n\n**Restaurang 61:an**\n\n- **Address**: Karolinska Universitetssjukhuset, Plan 6, C161, 141 86 Stockholm\n- **Phone**: 08-58580046\n- **Website**: [61an.sodexo.se](https://61an.sodexo.se)\n\n**Opening Hours**:\n\n- Weekdays: 10:30 - 14:00\n- Café Bakery: 09:00 - 14:00\n\n## Files\n\n- `main.py`: Contains the bot logic and command handling.\n- `response.py`: Responsible for fetching and processing the lunch menu via web scraping.\n\n## Dependencies\n\n- [discord.py](https://github.com/Rapptz/discord.py) - A Python wrapper for the Discord API.\n- [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/) - A library to extract data from HTML and XML files.\n- [requests](https://pypi.org/project/requests/) - A simple HTTP library for Python.\n\n## Contributors\n\nThis project was created by:\n\n- [Alfred](https://github.com/ajmueller0625) - Co-Founder: Contributed to the development, design, and implementation of functionalities for the Discord bot, including web scraping and integration of the restaurant menu.\n- [Haidar](https://github.com/hdm-py) - Co-Founder: Contributed to the development, design, and implementation of functionalities for the Discord bot, including web scraping and integration of the restaurant menu.\n- [Robert](https://github.com/LeonByte) - Co-Founder: Contributed to the development, design, and implementation of functionalities for the Discord bot, including web scraping and integration of the restaurant menu.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonbyte%2Fdagenslunchbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonbyte%2Fdagenslunchbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonbyte%2Fdagenslunchbot/lists"}