Git Product home page Git Product logo

pina's Introduction

Pina

A Discord bot that allows anyone to pin messages in your server.

Why would I need a bot for that?

If you want users to pin message, they must have the "Manage Messages" permission.
However, that includes the ability to delete messages, so it can be a bit risky to give it to everyone.
Thanks to this bot, anyone is now able to pin message by writing p.pin or by adding ?? emote to the corresponding message.

Command list

Command Description Example
pin [(optional) message/user ID] Pin a message. pin 000000000000000000
unpin [message ID] Unpin a message. unpin 000000000000000000
language [language name] Set my speaking language. language french
verbosity [none/error/info] Set if I say something or not when something occurs. verbosity none
whitelist [(optionnal)roles] Set the roles that can pin messages, don't write anything for all. whitelist @MyRole
blacklist [(optionnal)roles] Set the users that can't pin messages, don't write anything for none, admins are not affected by this. blacklist @MyRole
prefix [(optional)prefix] Set the prefix for bot command, don't write anything to allow the use of command without one. prefix p!
botinteract [true/false] Set if other bots are allowed to do commands. botinteract false
canunpin [true/false] Set if users can unpin messages. canunpin false
voterequired [votes required] Set the number of people that need to vote to pin/unpin a message, set to 1 to disable.
You can also pin message by adding the ๐Ÿ“Œ reaction to a message, and unpin them by adding a โ›” reaction.
voterequired 2
gdpr Display the information I have about this guild.
info Display various information about me.
invite Display the invite link of the bot.

Invite Pina to your server

Just click here.

Contact me

Have any question?
You can either contact me on Discord (Zirk#0001) or by Email ([email protected])

Anything else?

Yes, Pina is also released on top.gg so go check her page.

pina's People

Contributors

xwilarg avatar xayanide avatar

Stargazers

Bonita Sharif avatar Hayden avatar Kart avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

xayanide

pina's Issues

Feature Request: Option to require a certain amount of Pin reactions

I would like to request a feature for the Bot - for the option for a "community based voting" for pinning subjects - say for example I want to require 5 Pin reactions for Pina to pin something in a channel.

Something really basic like this, nothing crazy like per channel settings or anything just a global setting that could be configured and require more than one person reacting in order to pin a topic

Thanks for the great bot!

Feature Request: An option for Pina to not give a prompt when a user starts a vote for a message to get pinned.

My feature request.

An option in the command list so that Pina will not send a prompt whenever a user starts a vote to get a message pinned or unpinned using the ๐Ÿ“Œ emoji or the ๐Ÿšซ.

Referring to this prompt:
#1 (comment)


Introduction: Overview on how it currently works on default & with voterequired setting changed.

Pina bot on default:

  • Only requires 1 ๐Ÿ“Œ emoji reaction to pin a message in a channel,
  • Does not send a prompt or message & embed when a user reacts to a message with ๐Ÿ“Œ emoji.

Pina bot with voterequired setting changed:
Setting up votesrequired to anything other than 1, for instance:
Pina bot settings:
voterequired = 5

When a user reacts with ๐Ÿ“Œ on a message:
Pina bot:

  • Sends a message in that channel about a user that started a pin vote on the message & says that it only requires 4 votes left.

Image example:
#1 (comment)

Pina bot prompts whenever a user starts a vote on a message because they're requesting to pin it but requires a certain amount of votes for Pina to pin it.


Why implement this?

A channel gets quickly flooded especially in a public server whenever a user starts a vote to a message with ๐Ÿ“Œ because Pina bot always prompts whenever a vote is started.

This feature request prevents that from happening.


How will it going to work with this feature?

When a user starts a vote for a message to get pinned using ๐Ÿ“Œ that requires x number of votes:

Pina bot should:

  • Neither prompt nor send or create any new messages about a vote that started.
  • Read the message's number of reactions that got voted.
  • Wait for the message reach the number of reactions to get pinned.

When that message reaches the required x number of votes:

Pina should:

  • Pin the message.
  • Neither prompt, nor send a message or any embed about the votes.

Pretty simple.


To clarify, Pina bot should:

  1. Not give a prompt when a user starts a vote.
  2. Continue reading the message's reactions that got voted.
  3. Wait for that message to reach x number of reactions.
  4. Passively pin the message when a message meets the required number of reactions.

Off-topic

This feature can also be improved by adding a setting that allows a specific channel to get prompts & channels that do not get any prompts, a whitelist/ignorelist for prompts, but this one is out of the main point of this issue.

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.