/yesno

A simple Discord yes/no poll bot with slash commands!

Primary LanguageTypeScriptMIT LicenseMIT

YesNo

status servers chat dependencies

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!

Website | Add to Discord

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 v12 (Docs, Repo) and a fork of Spark (Docs, Repo). Cloud Firestore is used for the database. YesNo uses TypeScript and Node.js v14.

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.