Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $c[ Join https://dsc.gg/codes | The place where you can share and get codes, ask for codes and get support from other BDFD Developers, we also have a Bot Labs server where you can add your bot, join us! :) ]
- $c[ Below, the limiters of who can start polls, you can change it to anything you wish fits best to you, it's always recommended to keep it as staff-only and trusted users since polls can be sent to any channel, avoid modifying it if you don't know how onlyPerms works. ]
- $c[ This part below adds a bypass for members that has a role called "Polls Manager" ]
- $try
- $if[$roleExists[$findRole[Polls Manager]]==true]
- $if[$hasRole[$authorID;$findRole[Polls Manager]]==true]
- $var[bypass;true]
- $endif
- $endif
- $endtry
- $c[ This part below determines the default permission needed to start polls, as default it's "managemessages", you can change it to any valid perm you wish. ]
- $if[$var[bypass]!=true]
- $onlyPerms[managemessages;**$username** You need `manage_messages` permissions to start a poll!]
- $endif
- $varExistError[poll_system;Hello! If you are $username[$botID]'s Developer, remember this system needs a variable to work, please create the variable `poll_system` with an empty value, and this error will disappear.
- If you still need help, join https://dsc.gg/codes]
- $if[$serverChannelExists[$mentionedChannels[<]]==true]
- $var[msg;:bar_chart: Your poll settings now include the channel ID for <#$mentionedChannels[<]>, which you have successfully selected.]
- $else
- $var[msg;:bar_chart: This setup allows you to tailor the poll to your specific needs and preferences.]
- $endif
- $setUserVar[poll_system;;$authorID]
- $title[Poll setup]
- $description[> $var[msg]]
- $addField[Settings;Access the **Settings** panel to customize various aspects of your poll, including voting options, title, and description.]
- $addField[Send Poll;Upon finishing the setup of your poll, press the **Send Poll** button to initiate the voting process.]
- $addButton[no;poll_settings-$authorID-$mentionedChannels[<];Settings;primary;no;;]
- $addButton[no;poll_send-$authorID;Send Poll;success;no;;]
- $color[#5865f2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement