Discord Bot Technical Specification Review #395
Replies: 2 comments 3 replies
-
"general chats" is pluraled - what channels were you thinking of other than #general? Additionally, how far in advance will it notify of events? i.e. if the bot is sending a message on the :00, :15, :30, :45 marks, and an event is set to start at :16, when will that event be notified? If at :15, will that be enough of a heads up?
I think part of the magic of Together is the immediacy. Thoughts on adding a flag
Can test the behavior of bots by testing the functions that the bots call via unit tests. You'd mock out most of the discord.js API calls but you can still ensure that specific discord.js methods are being called.
I'd go with As an aside, I'd look into using |
Beta Was this translation helpful? Give feedback.
-
I'd recommend scoping the bot to exist in just the 100Devs server for the MVP. If the bot was in multiple servers, we'd have to add some steps to the setup process.
Does this refer to the Data Model section? Also might be work changing to "make the data usable by both the Together server and the discord bot" |
Beta Was this translation helpful? Give feedback.
-
Summary
This Technical Specification covers the discord bot, potential features and goals.
Scope
Data Model
Add rsvpList array to all current and future event objects. If a user RSVP's for an event add identifying information to rsvpList array.
User Stories
User sees an event they are interested in on the together calendar, open the event modal, and click RSVP. When the event is <15 minutes away user will receive a PM from Together mentioning their event is about to start.
Allow users to RSVP for single or all events in a recurring group. Allow users to remove themselves from an RSVP list in the same manner.
Additionally, the discord bot would post upcoming events to the general chats in 15 minutes intervals.
Implementation Details
APIs
Security/Privacy
The biggest concern point is people posting events that violate rules. @InstincDev is working on admin.js to prevent events from not being available unless they are approved.
Testing
I am not familiar with testing discord bots, but we'll need to add testing to verify users can RSVP and remove themselves from events.
Open Questions
What is stored in the rsvpList MongoDB userId, disocordName, or DiscordId?
Deployment
Beta Was this translation helpful? Give feedback.
All reactions