{"id":22246120,"url":"https://github.com/dawnbrandbots/bastion-for-reddit","last_synced_at":"2025-03-25T11:23:46.719Z","repository":{"id":155828911,"uuid":"628818072","full_name":"DawnbrandBots/bastion-for-reddit","owner":"DawnbrandBots","description":"A Reddit bot for displaying information about Yu-Gi-Oh! cards.","archived":false,"fork":false,"pushed_at":"2025-03-23T17:14:37.000Z","size":117,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T18:25:06.104Z","etag":null,"topics":["bot","docker","master-duel","masterduel","ocg","praw","python","python3","reddit","reddit-bot","yu-gi-oh","yugioh"],"latest_commit_sha":null,"homepage":"https://reddit.com/u/BastionBotYuGiOh","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DawnbrandBots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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},"funding":{"github":null,"patreon":"alphakretinbots","open_collective":null,"ko_fi":"dawnbrandbots","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-04-17T03:30:21.000Z","updated_at":"2025-03-23T17:14:39.000Z","dependencies_parsed_at":"2023-12-02T23:31:42.483Z","dependency_job_id":"61531109-1220-48ff-80db-402acc5921e5","html_url":"https://github.com/DawnbrandBots/bastion-for-reddit","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/DawnbrandBots%2Fbastion-for-reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DawnbrandBots%2Fbastion-for-reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DawnbrandBots%2Fbastion-for-reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DawnbrandBots%2Fbastion-for-reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DawnbrandBots","download_url":"https://codeload.github.com/DawnbrandBots/bastion-for-reddit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245450670,"owners_count":20617394,"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","docker","master-duel","masterduel","ocg","praw","python","python3","reddit","reddit-bot","yu-gi-oh","yugioh"],"created_at":"2024-12-03T05:26:08.718Z","updated_at":"2025-03-25T11:23:46.680Z","avatar_url":"https://github.com/DawnbrandBots.png","language":"Python","funding_links":["https://patreon.com/alphakretinbots","https://ko-fi.com/dawnbrandbots"],"categories":[],"sub_categories":[],"readme":"# Bastion bot for Reddit\n\nA free and open-source Reddit bot for looking up cards and other useful information about the\n_Yu-Gi-Oh! Trading Card Game_ and _Official Card Game_. This is a port of the\n[Discord bot](https://github.com/DawnbrandBots/bastion-bot).\n\n[Announcement post on /r/yugioh](https://reddit.com/r/yugioh/comments/139u4wb/the_bastion_card_bot_is_now_available_on_this/).\n\n[![Build Docker image](https://github.com/DawnbrandBots/bastion-for-reddit/actions/workflows/docker.yml/badge.svg)](https://github.com/DawnbrandBots/bastion-for-reddit/actions/workflows/docker.yml)\n[![Release to production (Compose)](https://github.com/DawnbrandBots/bastion-for-reddit/actions/workflows/release-compose.yml/badge.svg)](https://github.com/DawnbrandBots/bastion-for-reddit/actions/workflows/release-compose.yml)\n\n## Usage\n\nSummon [/u/BastionBotYuGiOh](https://reddit.com/u/BastionBotYuGiOh) in your submissions and comments on related subreddits\nwith doubled curly braces, e.g. `{{Tindangle Jhrelth}}`. This is a fuzzy search on OCG and TCG cards and their prereleases.\nTo summon Bastion elsewhere on Reddit, you can mention the bot user in your comments that contain curly brace search terms.\nIf [/u/BastionBotYuGiOh](https://reddit.com/u/BastionBotYuGiOh) is mentioned without any search terms, it will reply with\na short explanation about itself.\n\nFor bot safety, currently Bastion is tuned very conservatively to prevent bad behaviour,\nso it will ignore any summons in replies to its comments,\nthere is a maximum of five card searches per submission or comment,\nand it will comment a maximum of 10 times per submission, resetting when the program is restarted.\n\n### Subreddits\n\n- [/r/yugioh](https://reddit.com/r/yugioh)\n- [/r/YuGiOhMemes](https://reddit.com/r/YuGiOhMemes)\n- [/r/Yugioh101](https://reddit.com/r/Yugioh101)\n- [/r/YuGiOhMasterDuel](https://reddit.com/r/YuGiOhMasterDuel)\n- [/r/DuelLinks](https://reddit.com/r/DuelLinks)\n- [/r/yugiohshowcase](https://reddit.com/r/yugiohshowcase)\n\n## Getting started with development\n\nCreate a Python 3 [virtualenv](https://virtualenv.pypa.io) and install dependencies with\n[pip-tools](https://github.com/jazzband/pip-tools):\n\n```bash\nvirtualenv venv\n. venv/bin/activate\npip install pip-tools\ncd src\npip-sync\n```\n\nConfigure a [`.env`](https://pypi.org/project/python-dotenv) file with the credentials for the Reddit bot account:\n\n```dotenv\nREDDIT_CLIENT_ID=\nREDDIT_CLIENT_SECRET=\nREDDIT_USERNAME=BastionBotYuGiOh\nREDDIT_PASSWORD=\nSUBREDDITS=bastionbot\nAPI_URL=\n```\n\nRun the bot with your IDE or in the shell!\n\n```bash\npython3 src/bastion.py\n```\n\n## Licence\n\nCopyright © 2023–2024 Kevin Lu, Luna Brand.\nSee [COPYING](https://github.com/DawnbrandBots/bastion-for-reddit/blob/master/COPYING) for more details.\n\n```\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published\nby the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawnbrandbots%2Fbastion-for-reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawnbrandbots%2Fbastion-for-reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawnbrandbots%2Fbastion-for-reddit/lists"}