Skip to content

Release v2.0 - Sprint 2 Final(bot 6 assignment)solved 3 user stories

Choose a tag to compare

@minigithubo minigithubo released this 22 Feb 22:58
· 46 commits to main since this release
92b91f3

Release v2.0 - Sprint 2 Final
🚀 Overview
This release (v2.0) marks the completion of Sprint 2, focusing on enhancing the interactive elements of the Mafia game and improving visual feedback for players. Key updates include a dynamic voting countdown and the integration of status-specific visuals.

✨ Key Changes
Live Voting Countdown: Replaced the static "60 seconds" message with a real-time, dynamic countdown timer that updates every second in the Discord channel.

Night Resolution Visuals: Integrated doctor-save.png to provide immediate visual confirmation when a player is successfully protected by the Doctor.

Vote Visuals: Added vote-processing.png to display when a player starts their voting action.

Bug Fix: Resolved a ReferenceError in role.js to ensure stable role-checking functionality.

Game Flow Improvements: Added appropriate sleep intervals between night results and day phases for better readability.

🔗 Linked User Stories
#66: Implement Dynamic Countdown Timer for Voting Phase

#64: Enhance Night Resolution with Visual Feedback

#53: Fix Variable Scoping in Role Logic

⏱️ Reflection
Estimated Time: 3 hours

Actual Time Taken: 6 hours

Key Learning: A significant portion of time was spent managing asynchronous timing for Discord message edits to avoid rate limits and resolving complex Git merge conflicts with the new victory condition logic.

📦 Software Bill of Materials (SBOM)
The following dependencies are utilized in this production environment:

<title></title> <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} table.t1 {border-collapse: collapse} td.td1 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; padding: 1.0px 5.0px 1.0px 5.0px} </style>
Package Version Description
discord.js 14.5.0 Main library for Discord API integration
axios 0.27.2 Promise based HTTP client for API calls
dotenv 16.0.2 Environment variable management
mocha / chai 10.0.0 / 4.3.6 Testing framework and assertion library
nodemon 2.0.22 Development tool for auto-restarting the server
esbuild 0.15.9 High-performance JavaScript bundler
ascii-table 0.0.9 For rendering clean tables in logs/chat
Screenshot 2026-02-20 at 7 49 01 PM Screenshot 2026-02-20 at 8 01 23 PM

What's Changed

New Contributors

Full Changelog: v1.0.2...v2.0