{"id":20105317,"url":"https://github.com/pierogis/squire","last_synced_at":"2026-05-13T19:33:00.310Z","repository":{"id":112877737,"uuid":"446373735","full_name":"pierogis/squire","owner":"pierogis","description":"a discord bot with a mind of its own","archived":false,"fork":false,"pushed_at":"2022-01-28T05:38:15.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-28T11:37:06.475Z","etag":null,"topics":["aws-lambda","bot","discord","gpt3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pierogis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-10T10:19:01.000Z","updated_at":"2022-05-03T18:17:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab9242d3-a6ce-40c6-96e5-098d7b1f3d3a","html_url":"https://github.com/pierogis/squire","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/pierogis/squire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierogis%2Fsquire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierogis%2Fsquire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierogis%2Fsquire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierogis%2Fsquire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pierogis","download_url":"https://codeload.github.com/pierogis/squire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierogis%2Fsquire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32997644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: 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":["aws-lambda","bot","discord","gpt3"],"created_at":"2024-11-13T17:46:34.438Z","updated_at":"2026-05-13T19:33:00.293Z","avatar_url":"https://github.com/pierogis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# squire\n\ndiscord bot with gpt3 integration\n\n## install\n\n`pip install squire[.env]`\n\nIncluding the `[.env]` extra installs `python-dotenv` used to load api key(s) from a `.env` file\n\n## cli\n\nTo use the commands standalone (outside discord):\n\n`squire lyrics {artist} --temperature {temperature}`\n\n`squire ramble {artist} --temperature {temperature}`\n\nProvide api keys through the environment/`.env` file (see `.env-template`)\nor enter them when prompted\n\n## slash commands\n\nThe `lambda` dir contains directions for setting up lambda function that handles slash commands\n\n`/lyrics artist:{artist} artistic_liberty:{artistic_liberty}`\n\nCreates a verse based on `artist`\n\n`/ramble artist:{prompt} artistic_liberty:{artistic_liberty}`\n\nRambles on, continuing optional `prompt`\n\nOptional value `artistic_liberty` is roughly how creative you want the bot to be (0.0 - 1.0)\n\n## hosting\n\n### lambda\n\nYou can use this package as an aws lambda function that will receive events from discord via http\n\nThere is a sam template that will create an aws lambda function, lambda layers, and api gateway trigger to handle these\ninteraction events\n\nYou will need to install `aws cli`, `sam` and create an IAM access key on aws, then:\n\n```shell\naws configure\nsam build --use-container\nsam deploy --guided\n```\n\nFinally, [register](#register) the slash command with discord.\n\n#### build\n\n`make build` will use `sam build`, but first remove the .venv directory (if present) since it causes issues with the\ndocker build.\n\n#### register\n\n`make slash` will call a python module (`slash.py`) that registers slash commands `/lyrics` `/ramble`\n\nUse the `.env-template` and `pip install -r requirements-dev.txt` to provide information needed to register the slash\ncommands with discord.\n\n`pip install python-dotenv` to install the loader package for this method\n(installed by command provided in [install](#install))\n\n### listener\n\nCreate an aws instance and run a stinky event listener using the `discord.py` library\n\n`poetry run python squire discord-bot`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierogis%2Fsquire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierogis%2Fsquire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierogis%2Fsquire/lists"}