{"id":27223630,"url":"https://github.com/alextopher/apod-bot","last_synced_at":"2025-07-04T09:36:10.116Z","repository":{"id":44742208,"uuid":"469215665","full_name":"Alextopher/apod-bot","owner":"Alextopher","description":"A Discord bot sends daily NASA astronomy picture of the day","archived":false,"fork":false,"pushed_at":"2024-12-12T00:13:17.000Z","size":412,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T07:03:18.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/Alextopher.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}},"created_at":"2022-03-12T22:35:12.000Z","updated_at":"2024-06-28T20:35:50.000Z","dependencies_parsed_at":"2023-12-20T14:14:20.093Z","dependency_job_id":"5074c8fb-0cd6-4a14-a845-dc76835fdce9","html_url":"https://github.com/Alextopher/apod-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alextopher/apod-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextopher%2Fapod-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextopher%2Fapod-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextopher%2Fapod-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextopher%2Fapod-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alextopher","download_url":"https://codeload.github.com/Alextopher/apod-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextopher%2Fapod-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263483970,"owners_count":23473675,"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":[],"created_at":"2025-04-10T09:34:24.575Z","updated_at":"2025-07-04T09:36:10.091Z","avatar_url":"https://github.com/Alextopher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apod-bot\n\nA discord bot written in [go](https://go.dev/) that fetches and posts NASA's [Astronomy Picture of the Day](https://apod.nasa.gov/apod/).\n\n![:O](./example.png)\n\n## Features\n\n- Scheduled posting with `/schedule` and `/stop`\n- Manually posting today's picture with `/today`\n- Post a random picture with `/random`\n- Relive a previous APOD picture with `/specific \u003cdate\u003e`\n- Get more information with `/explanation`\n- Astronomy Picture of the Day API calls are cached\n- Today's picture is saved in memory for a faster roundtrip\n\n## Usage\n\n1. Invite the bot to your server.\n\u003chttps://discord.com/api/oauth2/authorize?client_id=952282891910512663\u0026permissions=18432\u0026scope=applications.commands%20bot\u003e\n\n2. Go to the channel you want APOD messages posted.\n\n3. Call `/schedule \u003chour UTC\u003e` with the hour you want APOD messages to be sent.\n\nI do keep some metrics of the bot usage. Including but not limited to server names,\nchannel ids, and command usage. Feel free to self-host it instead!\n\n## Development\n\n`APOD_TOKEN` and `DISCORD_TOKEN` are required as environment variables. These are set in a `.env` file like so:\n\n```text\nAPOD_TOKEN=\u003ctoken\u003e\nDISCORD_TOKEN=\u003ctoken\u003e\n\n# Optionally include an owner id to send certain events to.\nOWNER_ID=\u003cid\u003e\n```\n\nTo learn more about discord bot development, visit [discord developers docs](https://discord.com/developers/docs/intro). To create a NASA API token visit [api.nasa.gov](https://api.nasa.gov/index.html#authentication).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextopher%2Fapod-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextopher%2Fapod-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextopher%2Fapod-bot/lists"}