Coder Social home page Coder Social logo

net-tech / pinbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeize/pinbot

0.0 0.0 0.0 57 KB

๐Ÿ“Œ PinBot enables communities to allow users to pin messages even without the MANAGE_MESSAGES permission.

Home Page: https://go.buape.com/PinBot

License: MIT License

JavaScript 14.81% TypeScript 85.19%

pinbot's Introduction

PinBot Logo

PinBot

๐Ÿ“Œ PinBot enables communities to allow users to pin messages even without the MANAGE_MESSAGES permission.

Some of the use cases PinBot might serve are:

  • A community that wants to allow members to pin messages, but aren't comfortable giving them the MANAGE_MESSAGES permission.
  • 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.

Commands

  • 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.
  • Unpin Message - This is a message context menu command that allows users to unpin messages.

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

Setup

  1. Clone the repository git clone https://github.com/Codeize/PinBot.git
  2. Run pnpm install
  3. 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.
  4. Run pnpm run build
  5. Run pnpm run sync
  6. Run pnpm run start

Hosting

For the sake of transparency, the public version of PinBot is hosted on Hop.io 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 the Interactions Endpoint URL in the Discord Developer Portal.

License

This project is licensed under the MIT License.

Notes

The only permission the bot requires aside from basic VIEW_CHANNEL and SEND_MESSAGES is MANAGE_MESSAGES.

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

pinbot's People

Contributors

net-tech avatar codeize avatar thewilloftheshadow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.