-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This wiki provides detailed documentation about the trivia-bot, including how it works, its current status, and plans for future improvements.
The trivia-bot is a robust and extensible tool for scheduling and managing trivia quizzes. It allows users to create and schedule trivia games effortlessly while integrating with platforms like Twitter.
- Easy-to-use trivia scheduling system.
- Integration with the Twitter API for updates or announcements.
- Configurable and environment-variable support via
.env. - Automated scheduling powered by
node-schedule.
- Node.js: Version 14 or higher is recommended.
- npm: Installed with Node.js.
- Clone the repository:
git clone https://github.com/tamecalm/trivia-bot.git
- Navigate to the project directory:
cd trivia-bot - Install dependencies:
npm install
- Create a .env file in the root of your project.
- Add the following variables to configure your bot:
TWITTER_API_KEY=your-twitter-api-key TWITTER_API_SECRET=your-twitter-api-secret TWITTER_ACCESS_TOKEN=your-twitter-access-token TWITTER_ACCESS_SECRET=your-twitter-access-secret
Start the bot using:
npm startOnce started, the bot will:
- Read the schedule from your configuration.
- Post trivia reminders or questions on Twitter (if configured).
- Basic scheduling functionality.
- Integration with Twitter API.
- Add support for other platforms.
- Allow customization of trivia question formats.
We welcome contributions! To get started:
- Fork the repository.
- Create a new branch for your feature or fix.
- Submit a pull request with a clear description of your changes.
-
How can I add new trivia questions?
Currently, trivia questions are added manually via the configuration file. Future updates will support dynamic input. -
Does the bot support other platforms besides Twitter?
Not yet, but it's on the roadmap!
This project is licensed under the MIT License. See the LICENSE file for details.