Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/advaith1/yesno
A simple Discord yes/no poll bot with slash commands!
https://github.com/advaith1/yesno
discord discordbot discordjs
Last synced: 3 months ago
JSON representation
A simple Discord yes/no poll bot with slash commands!
- Host: GitHub
- URL: https://github.com/advaith1/yesno
- Owner: advaith1
- License: mit
- Created: 2020-02-22T04:11:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T20:46:36.000Z (over 2 years ago)
- Last Synced: 2024-05-01T14:30:51.551Z (9 months ago)
- Topics: discord, discordbot, discordjs
- Language: TypeScript
- Homepage: https://yesno.advaith.io
- Size: 734 KB
- Stars: 31
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YesNo
![status](https://botlist.space/bot/526189797711151114/badge?property=status) ![servers](https://botlist.space/bot/526189797711151114/badge?property=servers) [![chat](https://img.shields.io/discord/398998849026261003?color=%237289DA&logo=discord&logoColor=white)](https://discord.gg/SztAXAh) [![dependencies](https://img.shields.io/david/advaith1/yesno)](https://david-dm.org/advaith1/yesno)
YesNo is a simple Discord yes/no poll bot for created by advaith. It is based on the YesNo bot built in to Google Allo, which shut down in March 2019.
YesNo now has [Slash Commands](https://discord.com/developers/docs/interactions/slash-commands)!
[Website](https://yesno.advaith.io) | [Add to Discord](https://discord.com/api/oauth2/authorize?client_id=526189797711151114&scope=bot+applications.commands&response_type=code)
## Using YesNo
YesNo is super easy to use and requires no setup. To create a poll, mention the bot (`@YesNo`) and ask the question. For example: `@YesNo is YesNo the best bot?`. Polls will be pinned to the channel so people can easily find them.
You can close a poll (which will unpin it and send the results) by using `/close`.
## YesNo Development
YesNo uses [discord.js](https://discord.js.org) v13 ([Docs](https://discord.js.org/#/docs/discord.js/stable/general/welcome), [Repo](https://github.com/discordjs/discord.js)) and a fork of [Spark](https://sparkdocs.advaith.fun) ([Docs](https://sparkdocs.advaith.fun/documentation/intro), [Repo](https://github.com/advaith1/Spark-djs12)). [Cloud Firestore](https://firebase.google.com/products/firestore) is used for the database. YesNo uses TypeScript and Node.js v16.
Tokens are loaded from a `.env` file: `TOKEN` is the Discord bot token, `PORT` is the port that the webserver (`web.ts`) runs on, `DATADOG_API_KEY` is the Datadog API key, and the bot list tokens from `functions/engines/botlists.ts` are there.
The Cloud Firestore service account JSON file should be in `FIRESTORE.json`.
Self-hosting YesNo is not recommended, but please don't make a public clone.