feat: Add Discord Bot for Activity Tracking#84
Merged
joelamouche merged 2 commits intoTheSoftwareDevGuild:mainfrom Oct 2, 2025
Merged
feat: Add Discord Bot for Activity Tracking#84joelamouche merged 2 commits intoTheSoftwareDevGuild:mainfrom
joelamouche merged 2 commits intoTheSoftwareDevGuild:mainfrom
Conversation
joelamouche
requested changes
Oct 1, 2025
Contributor
joelamouche
left a comment
There was a problem hiding this comment.
Overall great job!
I have a few comments
discord-bot/package.json
Outdated
Contributor
There was a problem hiding this comment.
probably "the-guild-discord-bot"
Closed
Author
|
i have made the changes you requested @joelamouche. Kindly review |
Contributor
|
Nice work @PeterOche ! Don't hesitate to create a profile on theguild.dev to get badges for this task, or sharing twitter profile if you want some promotion 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Add Discord Bot for Activity Tracking
Closes: #77
This pull request introduces a new
discord-botservice to track user activity within the Discord server. The bot listens for user messages and records corresponding "activity events" into the PostgreSQL database, laying the foundation for a future points and rewards system.Key Features Implemented:
discord-botService: A standalone TypeScript service built with Node.js and thediscord.jslibrary.messageCreateevents and records them as activity points.activity_eventstable to the existing PostgreSQL database. A migration script is included..envfile, with schema validation using Zod.docker-compose.ymlfor easy setup and deployment.How to Test:
.envfile: In thediscord-botdirectory, copyenv.exampleto.envand fill in your Discord Bot Token, App ID, and Server (Guild) ID.cd discord-bot npm run dev