Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadowlp174/poll-bot
A Discord bot to create nice-looking polls. Based on u/Feeeeddmmmeeee's concept art.
https://github.com/shadowlp174/poll-bot
bot discord discord-bot discord-js discordjs poll
Last synced: about 1 month ago
JSON representation
A Discord bot to create nice-looking polls. Based on u/Feeeeddmmmeeee's concept art.
- Host: GitHub
- URL: https://github.com/shadowlp174/poll-bot
- Owner: ShadowLp174
- Created: 2021-12-27T20:42:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T22:06:18.000Z (almost 2 years ago)
- Last Synced: 2024-12-28T03:26:40.871Z (about 1 month ago)
- Topics: bot, discord, discord-bot, discord-js, discordjs, poll
- Language: JavaScript
- Homepage:
- Size: 18.4 MB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord Poll Bot
This Bot was designed to create easy understandable polls with nice UI for Discord servers.
Based on [u/Feeeeddmmmeee's](https://www.reddit.com/user/Feeeeddmmmeee) ([GitHub](https://github.com/Feeeeddmmmeee)) suggestion for Discord polls.*Note: This bot is not perfect and is full of bugs... So please report issues on GitHub. If you need a presentation of the bot write me on Discord (ShadowLp174#2717)*
## Installation
1. Clone the repository using git from the following url: ```https://github.com/ShadowLp174/poll-bot.git```
2. Create a new Discord application as described [here]("https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot")
3. Add the bot to your server. **IMPORTANT**: When creating the invite link, make sure to give the bot permission to register application commands! See [image](#images)
4. Replace `clientId` and `token` in the config.json file with your own tokens.
5. Get the server id of the server you want to use your bot in. And add it to the config.json like described [here](#setting-guildID)
6. Run `node command-deployer.js`
7. After it finished run `node .` - The bot should be online now!
8. You're done!### Setting GuildID
* First you need to get the ID of your server because only this way the slash-commands can be registered instantly.
* To do this right-click the icon of your server and select `Copy ID`. If you can't see this option you'll have to go to Discord settings and turn on `Developer Mode` on the `Advanced` page.
* Now, open the config.json file and set your ID like this: `[""]` (It **has to be** encapsulated in Quotation marks)
* If you have more than one server, you'll need to add all the ids seperated by commas: `["", "", ""]`#### Images
The needed authorization scopes for the invite link:
![description of the needed scopes is available at: https://discordjs.guide/preparations/adding-your-bot-to-servers.html#bot-invite-links](docs/adding-to-server.png)