Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/TagsPublic

🏷️ Tags allows for servers to answer the most frequent questions easier

License

NotificationsYou must be signed in to change notification settings

buape/Tags

Repository files navigation

Buape Logo

Buape Tags

Buape Tags is a simple Discord bot that allows you to save custom text snippets and use them for later. It's a great way to save time and effort when you're typing out the same thing over and over again.

Some of the use cases Tags might serve are:

  • A bot support server where users ask the same questions often,
  • A server with frequent live moderation where rules may need to be quoted often,
  • A development server where you may need to share code snippets often,
  • Or even just a server where you want to share a funny meme or quote often

Commands

CommandArgumentsDescription
/create-tagprivate: true/falseOpens a modal where the user is asked for the tag trigger and tag content.
/send-tagtag: auto-populates, user: auto-populates, private: true/falseReplies to the command with the tag content, with an optional user to mention.
/edit-tagtag: auto-populates, private: true/falseOpens a modal where the user is asked for the new tag trigger and/or content.
/delete-tagtag: auto-populates, private: true/falseDeletes the tag.
/list-tagsprivate: true/falseLists all tags in the server and their usage count, author, last editor, etc.

Future Plans

  • Move away from a HTTP based bot to a gateway based bot
  • Web dashboard to allow for a much better user experience
  • Setup repository with Buape standards for maintenance
  • Role, channel lock tags
  • Log actions

Self Hosting

Prerequisites

Right now the bot is pretty simple to setup and run. You'll need to have the following:

  • A non-ancient version of Node.js
  • pnpm installed globally
  • A Discord bot application
  • A CockroachDB database

Setup

  1. Clone the repositorygit clone https://github.com/Buape/Tags.git
  2. Runpnpm install
  3. Create a.env file in the root of the project based on.env.example, allDISCORD_ variables can be found in the Discord Developer Portal, theDATABASE_URL variable can be found in the CockroachDB Console,COMMANDS_DEBUG andDEVELOPMENT_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.
  4. Runpnpm run build
  5. Runpnpm run db:push
  6. Runpnpm run sync
  7. Runpnpm run start

Hosting

For the sake of transparency, thepublic version of Tags is hosted onDokploy running on aHetzner VPS but you can host it anywhere you want.

The main thing to keep in mind is that once your application is hosted on a public URL, you'll need to add it to theInteractions Endpoint URL in the Discord Developer Portal.

License

This project is licensed under theMIT License.

Notes

No additional permissions are required for the bot to run, other than the base Send Messages permission.

If you have any questions, or similarly if you find any issues with the bot, feel free tocreate an issue or join theBuape Discord Server.

About

🏷️ Tags allows for servers to answer the most frequent questions easier

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp