A feature-rich Discord bot that provides daily Quote of the Day and Question of the Day posts with beautiful embeds, multiple provider APIs, and per-server configuration.
- Daily Automated Posts - Scheduled quotes posted at configurable times
- Beautiful Embeds - Teal color scheme with author attribution and source
- Multiple Providers with smart fallbacks:
- π ZenQuotes API - Inspirational quotes
- π Quotable API - Famous quotes with metadata
- π FavQs API - Community quotes
- π‘οΈ 10 Built-in Fallbacks - Always available when APIs fail
- Duplicate Prevention - Avoids repeating the same quote
- On-Demand Access - Use
/qotdanytime
- Daily Automated Posts - Scheduled questions posted at configurable times
- Beautiful Embeds - Orange/purple color scheme with category and difficulty
- Multiple Question Types:
- π§ Trivia Questions - Multiple choice with categories and difficulty
- π Discussion Questions - Open-ended conversation starters
- π Number Facts - Interesting numerical trivia
- π‘ Life Advice - Thought-provoking advice discussions
- Multiple Providers with smart fallbacks:
- π― Open Trivia DB - Free trivia questions with categories
- π§© The Trivia API - High-quality trivia across many topics
- π’ Numbers API - Fascinating number facts
- π¬ Advice Slip API - Life advice for discussions
- π‘οΈ 15 Built-in Fallbacks - Mix of trivia and discussion questions
- Smart Question Format - Adapts display based on question type
- On-Demand Access - Use
/questionofthedayanytime
- Separate Channels - Different channels for quotes and questions
- Custom Scheduling - Set different post times for each type
- Admin Controls - Only administrators can configure settings
- Persistent Storage - SQLite database saves all settings and history
/qotd- Get the current Quote of the Day/questionoftheday- Get the current Question of the Day
/setqotdchannel #channel- Set channel for daily quote posts/setqotdhour 9- Set hour (0-23 UTC) for daily quote posts/setquestionchannel #channel- Set channel for daily question posts/setquestionhour 10- Set hour (0-23 UTC) for daily question posts
-
Install dependencies:
npm install
-
Create a
.envfile with your Discord bot token and channel ID:DISCORD_TOKEN=your-bot-token APPLICATION_ID=your-application-id
-
Run the bot:
node bot.js
- discord.js
- node-cron
- axios
- sqlite3
- dotenv
- Replace placeholders in
.envwith your actual values. - The bot avoids repeating quotes by storing them in SQLite.