{"id":18234647,"url":"https://github.com/codeize/pinbot","last_synced_at":"2025-04-08T14:33:53.813Z","repository":{"id":233262820,"uuid":"786386847","full_name":"Codeize/PinBot","owner":"Codeize","description":"📌 PinBot enables communities to allow users to pin messages even without the MANAGE_MESSAGES permission.","archived":false,"fork":false,"pushed_at":"2024-05-20T20:47:12.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T10:55:39.856Z","etag":null,"topics":["buape","discordjs","pinbot","slash-commands","slash-create"],"latest_commit_sha":null,"homepage":"https://go.buape.com/PinBot","language":"TypeScript","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/Codeize.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-14T09:57:19.000Z","updated_at":"2024-12-07T19:14:05.000Z","dependencies_parsed_at":"2024-12-22T06:15:34.576Z","dependency_job_id":null,"html_url":"https://github.com/Codeize/PinBot","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"2fcec2b724d2982b200989e5ba174ec88cfa1926"},"previous_names":["codeize/pinbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeize%2FPinBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeize%2FPinBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeize%2FPinBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeize%2FPinBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeize","download_url":"https://codeload.github.com/Codeize/PinBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247861187,"owners_count":21008443,"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":["buape","discordjs","pinbot","slash-commands","slash-create"],"created_at":"2024-11-04T23:05:03.010Z","updated_at":"2025-04-08T14:33:53.787Z","avatar_url":"https://github.com/Codeize.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"256\" style=\"border-radius:25%\" src=\"https://cdn.buape.com/PinBot.png\" alt=\"PinBot Logo\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n# PinBot\n\n📌 PinBot enables communities to allow users to pin messages even without the MANAGE_MESSAGES permission.\n\nSome of the use cases PinBot might serve are:\n\n- A community that wants to allow members to pin messages, but aren't comfortable giving them the MANAGE_MESSAGES permission.\n- A lazy admin who doesn't want to click the three dots and then click \"Pin Message\" every time they want to pin a message.\n\n## Commands\n\n- `Pin Message` - This is a message context menu command that allows users to pin messages. If a channel has reached its pin limit, the bot will offer the user the option to unpin the oldest pinned message.\n- `Unpin Message` - This is a message context menu command that allows users to unpin messages.\n\n## Self Hosting\n\n### Prerequisites\n\nRight now the bot is pretty simple to setup and run. You'll need to have the following:\n\n- A non-ancient version of Node.js\n- [pnpm](https://pnpm.io) installed globally\n- A Discord bot application\n\n### Setup\n\n1. Clone the repository `git clone https://github.com/Codeize/PinBot.git`\n2. Run `pnpm install`\n3. Create a `.env` file in the root of the project based on `.env.example`, all `DISCORD_` variables can be found in the Discord Developer Portal, `COMMANDS_DEBUG` and `DEVELOPMENT_GUILD_ID` aren't required but are useful for development, `PORT` can remain as it is, if you know you need to change it, you probably know how to change it.\n4. Run `pnpm run build`\n5. Run `pnpm run sync`\n6. Run `pnpm run start`\n\n### Hosting\n\nFor the sake of transparency, the [public version of PinBot](https://go.buape.com/PinBot) is hosted on [Hop.io](https://hop.io) but you can host it anywhere you want.\n\nThe main thing to keep in mind is that once your application is hosted on a public URL, you'll need to add it to the [Interactions Endpoint URL](https://discord.com/developers/docs/tutorials/upgrading-to-application-commands#adding-an-interactions-endpoint-url) in the Discord Developer Portal.\n\n## License\n\nThis project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\n\n## Notes\n\nThe only permission the bot requires aside from basic `VIEW_CHANNEL` and `SEND_MESSAGES` is `MANAGE_MESSAGES`.\n\nIf you have any questions, or similarly if you find any issues with the bot, feel free to [create an issue](https://github.com/Codeize/PinBot/issues/new) or join the [Buape Discord Server](https://go.buape.com/discord).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeize%2Fpinbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeize%2Fpinbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeize%2Fpinbot/lists"}