From 0da6cdc224afa3e9cc448487d7cb6abeb1b21bac Mon Sep 17 00:00:00 2001 From: j Date: Sun, 24 Mar 2024 00:54:10 -0400 Subject: [PATCH] Cleanup/removal of reddit functionality --- src/messages/rdrama_PreviousMessage.txt | 183 --------------- src/messages/rdrama_ShouldntNotify.txt | 231 ------------------- src/messages/rdrama_messages.txt | 282 ------------------------ src/messages/reddit_messages.txt | 110 --------- src/reddit/model/Subreddit.ts | 44 ---- src/reddit/model/User.ts | 71 ------ src/reddit/services/Reddit.ts | 68 ------ src/reddit/session/SessionManager.ts | 157 ------------- src/workflows/WorkflowOrchestrator.ts | 2 - 9 files changed, 1148 deletions(-) delete mode 100644 src/messages/rdrama_PreviousMessage.txt delete mode 100644 src/messages/rdrama_ShouldntNotify.txt delete mode 100644 src/messages/rdrama_messages.txt delete mode 100644 src/messages/reddit_messages.txt delete mode 100644 src/reddit/model/Subreddit.ts delete mode 100644 src/reddit/model/User.ts delete mode 100644 src/reddit/services/Reddit.ts delete mode 100644 src/reddit/session/SessionManager.ts diff --git a/src/messages/rdrama_PreviousMessage.txt b/src/messages/rdrama_PreviousMessage.txt deleted file mode 100644 index 03ce56c..0000000 --- a/src/messages/rdrama_PreviousMessage.txt +++ /dev/null @@ -1,183 +0,0 @@ -Hi {author_name}, - -We noticed your recent mention of a Reddit user in your post/comment. While fostering a community built on respect and privacy, we wanted to inform you that the mentioned user has already been notified of a similar mention before. We didn't send another notification to respect their inbox. Please continue to consider the implications of mentioning users in the future. - -Thank you for helping us maintain a respectful community. - -Warm regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your recent action involving the mention of a Reddit user caught our attention. Our community values privacy and respectful discourse above all. Given that the mentioned individual has previously been notified of a mention, we have chosen not to send another notification this time. We encourage you to reflect on the privacy and respect of others in all your interactions. - -Best wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings {author_name}, - -We're writing to you about your mention of a Reddit user in your communication. As part of our commitment to privacy and respectful interactions, we wanted to let you know that the individual you mentioned has already been informed about a previous mention. To avoid redundant notifications, we did not send an additional message. We kindly ask you to keep the potential impact of your mentions in mind for future posts and comments. - -Thank you for your understanding, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -We observed your mention of a Reddit user in your recent post/comment. Our community cherishes the principles of privacy and respect. The user you mentioned has been previously notified about a mention. To prevent overwhelming them, we've opted not to send a second notification. Your mindfulness in future mentions is greatly appreciated. - -Kind regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, - -Just a quick heads-up about your mention of a Reddit user. We're all about keeping things respectful and private here. The mentioned user has been notified before, so we skipped sending another alert to keep their notifications tidy. Let's continue to be thoughtful about our mentions, shall we? - -Cheers, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your recent mention of a Reddit user has been noted. Our aim is to foster a space of respect and privacy. Since the mentioned user has previously received a notification, we refrained from sending another to avoid repetition. Please be considerate of the impacts of your mentions going forward. - -With appreciation, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi there, {author_name}, - -We caught your mention of a Reddit user in your post/comment. As a friendly reminder, our community values privacy and kindness. The user mentioned has already been alerted once, so we decided not to send a repeat notification. Thanks for understanding and for your cooperation in maintaining a positive space. - -Warm wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Regarding your mention of a Reddit user: we're dedicated to respectful and private interactions. The user has been notified previously, hence we did not send an additional message this time. It's all part of ensuring everyone's experience remains pleasant. Thank you for playing your part! - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -We noticed your mention of a Reddit user. In line with our respect for privacy, we want to inform you that the mentioned user has been previously notified, so we've refrained from sending another message. Your awareness and discretion in future mentions are much appreciated. - -Kindly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, - -Saw your mention of a Reddit user! Just so you know, we've already notified them about a past mention, so we didn't send another one to keep things chill. Let's keep being awesome and respectful in our mentions, okay? - -Thanks a bunch, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings {author_name}, - -In your recent post/comment, you mentioned a Reddit user. We value our community's privacy and have previously informed the user about a mention. To avoid notification overload, we opted out of sending another. Your understanding and respect for privacy are appreciated. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your mention of a Reddit user was noted. Since they've been notified previously, we chose not to send a duplicate notification, aligning with our community's values of respect and discretion. We trust you understand and will continue to consider these values in your future engagements. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, - -You mentioned a Reddit user recently. To maintain a respectful atmosphere and prevent redundancy, we didn't send another notification since they were already informed once before. Your help in keeping our community considerate and respectful is invaluable. - -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -We've observed your recent activity involving a mention of a Reddit user. To maintain our community's commitment to discretion and respect, we've chosen not to resend a notification to the mentioned user, as they have already been contacted. We appreciate your understanding and your contributions to a respectful community atmosphere. - -Best regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your recent mention of a Reddit user caught our attention. In line with our dedication to privacy and respect, we've decided against sending another notification to avoid duplicity. Your continued mindfulness and consideration in interactions are what make our community great. Thank you for your cooperation. - -Cheers, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, - -Thanks for your engagement in our community. Regarding your mention of a Reddit user: they've already been made aware of a previous mention. To prevent notification fatigue, we've not sent another alert. Your understanding and adherence to our community values are greatly appreciated. - -Kindly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings {author_name}, - -We noticed your mention of a Reddit user and wanted to remind you of the importance of respect and privacy within our community. As the mentioned user has previously been notified, we have refrained from sending an additional message. Your thoughtful participation helps us maintain a positive community environment. - -Warm regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -Your action of mentioning a Reddit user has been noted. Our policy is to keep our community respectful and private, so we've chosen not to resend a notification to the mentioned user, who has already been informed once. We're thankful for your understanding and for helping us preserve a respectful space. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -In your recent contribution, you mentioned a Reddit user. Our community principles guide us to avoid over-notifying users who've already been mentioned, to respect their privacy. Therefore, we did not send an additional notification. Your cooperation in these matters is highly valued. - -Thanks, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, - -Just touching base about your recent mention of a Reddit user. To keep our community vibe positive and respectful, we've held off on sending another notification to the user you mentioned since they've been notified before. Thanks for helping us keep the peace and privacy! - -All the best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -We've seen your mention of a Reddit user in your recent post/comment. Our community ethos of privacy and respect means we've opted not to send another notification, as the user has been previously informed. Your understanding and respect in this matter help us maintain a healthy community dynamic. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your mention of a Reddit user has been registered. In keeping with our commitment to privacy, we've chosen not to issue another notification to them, considering they've been alerted before. We trust you appreciate our discretion and thank you for your thoughtful participation in our community. - -Warm wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, - -We noticed your recent mention of a Reddit user. Our aim is to respect everyone's privacy and avoid notification overload, so we didn't send another alert to the mentioned user, who has been previously notified. Thanks for understanding and for being a valued member of our respectful community. - -Take care, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- \ No newline at end of file diff --git a/src/messages/rdrama_ShouldntNotify.txt b/src/messages/rdrama_ShouldntNotify.txt deleted file mode 100644 index f4a85c4..0000000 --- a/src/messages/rdrama_ShouldntNotify.txt +++ /dev/null @@ -1,231 +0,0 @@ -Hi {author_name}, - -Thanks for engaging within our community. We noticed your mention of a Reddit user who's quite the connoisseur of Reddit's ways. Their rich history and karma speak to their deep engagement, so we've opted not to send a notification. Your consideration in these matters is invaluable. - -Kindly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey {author_name}, - -We caught your mention of a user who's no stranger to the Reddit scene. Their impressive karma and platform wisdom mean we'll skip the notification this time. Thanks for being a part of our respectful and privacy-conscious community. - -All the best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -Your recent reference to a Reddit stalwart caught our attention. Given their storied journey and significant karma, we've decided it's best to hold back on sending them another ping. Your engagement is what makes our community vibrant. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings {author_name}, - -We've noticed you mentioned a user deeply woven into the fabric of Reddit. Their experience and karma levels suggest they're already adept at navigating the platform's nuances. To avoid overburdening them, we won't be sending a notification. Thanks for helping maintain a considerate environment. - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -Your mention of a seasoned Reddit navigator has been duly noted. Their extensive karma and active participation highlight their expertise. As such, we believe an additional notification might not be necessary. We appreciate your efforts in cultivating a thoughtful community. - -Warmly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, - -You've mentioned a Reddit veteran, someone well-versed in the ebb and flow of this vast platform. Considering their significant karma and contributions, we're skipping the notification step this round. Your mindfulness is what makes this community special. - -Thanks, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, - -It seems you've mentioned a Reddit user who's quite familiar with the platform's ins and outs, judging by their high karma and active engagement. We'll forgo the notification to respect their seasoned user status. Your thoughtful interaction is what keeps our community thriving. - -Cheers, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your reference to a Reddit user known for their extensive engagement and high karma has been recorded. In recognition of their profound experience, we'll hold off on sending a notification. Your sensitivity to community dynamics is truly valued. - -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings {author_name}, - -We've seen your mention of a user who's no newbie to Reddit's corridors. Their impressive karma tally and history suggest they're well-equipped to handle mentions, so we'll skip the extra notification. Thank you for contributing to a respectful community. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -Your recent activity brought to light a mention of a Reddit user whose karma and historical engagement are nothing short of remarkable. With respect to their seasoned presence, we see no need for an additional notification. Your participation in fostering a considerate community is greatly appreciated. - -Best wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, - -You've highlighted a user who's a Reddit aficionado, someone with a karma score and engagement level that speaks volumes. We'll hold off on notifying them this time, trusting in their seasoned approach to community interactions. Thanks for being considerate and respectful. - -Take care, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, - -Your engagement has led to the mention of a Reddit user whose journey on the platform is both extensive and impressive. Given their high karma and active participation, we'll refrain from sending a notification. Your thoughtful presence is a boon to our community. - -With gratitude, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -Your shoutout to a seasoned Reddit user caught our eye. With their wealth of experience and karma, they're well-equipped to navigate mentions. To honor their established presence, we're holding back on sending a notification this time. Your understanding enhances our community's respectfulness. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -You've highlighted a Reddit veteran in your recent post. Their journey through Reddit's corridors, marked by significant karma, suggests they're adept at managing interactions. We're skipping the notification to acknowledge their seasoned expertise. Thanks for your thoughtful engagement. - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings {author_name}, - -We noticed you mentioned a Reddit luminary. Given their extensive karma and notable contributions, we believe they're more than capable of handling mentions independently. In respect of their veteran status, no notification will be sent. Your sensitivity to these nuances is much appreciated. - -Warmly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi there, {author_name}, - -Your recent nod to a Reddit heavyweight was observed. Their towering karma and active participation speak volumes of their adeptness on the platform. Recognizing their capability, we've decided against a notification. We value your contribution to our thoughtful community. - -Cheers, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -You've referenced a Reddit stalwart in your dialogue. Their profound karma and enduring presence underscore a comprehensive Reddit experience. To honor their adept handling of such mentions, no additional notification will be dispatched. We're grateful for your discerning interaction. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -Your mention of a Reddit sage has been noted. Their extensive karma accumulation and insightful contributions signify a seasoned journey on Reddit. Acknowledging their familiarity with community dynamics, we're omitting the notification. Thank you for promoting respectful discourse. - -Best wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, - -Your callout to a Reddit old-timer didn't go unnoticed. Their enviable karma score and history of engagement demonstrate their thorough Reddit literacy. In deference to their seasoned insight, we'll forego the notification. Your mindfulness is what makes our community special. - -Take care, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, - -In your recent post, you've acknowledged a Reddit authority. Their rich karma and history of insightful interactions highlight a profound engagement with the Reddit community. Recognizing their adeptness, we've opted out of sending a notification. Your respect for community pillars is commendable. - -Kind regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, - -We've taken note of your homage to a Reddit icon. With a karma score that's through the roof and countless contributions, they epitomize the essence of Reddit. This time, we'll hold back on the notification to honor their mastery. We thank you for your understanding and respectful engagement. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, - -Your pointer towards a Reddit legend has been appreciated. Their stellar karma and active presence are a testament to their Reddit savviness. To respect their well-earned stature, no notification will be sent. Your actions contribute greatly to our community's positive ethos. - -Warmest regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings, {author_name}, -You've mentioned a Reddit veteran whose contributions have already painted them as a notable figure. Recognizing their seasoned presence, we're holding back on the notification. It's the shared understanding and respect that keep our community thriving. -Cheers, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello {author_name}, -Your shoutout to a user well-versed in the Reddit realm caught our eye. Given their established rapport and karma wealth, we'll forgo the alert. It's contributors like you that make our community a richer place. -With gratitude, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Dear {author_name}, -We observed your nod to an esteemed Reddit user. Their journey and karma milestones suggest they're well acquainted with the ebb and flow here, so we've decided not to dispatch a notification. Thanks for helping maintain a courteous environment. -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi there, {author_name}, -A tip of the hat to a distinguished Reddit user, we see! Their legacy and karma scores are testament enough, thus negating the need for further notice. Your actions reinforce the mutual respect that underpins our community. -Warmly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hey {author_name}, -A shoutout to a seasoned Redditor, eh? Their karma and tenure are indicative of a well-trodden path here, sparing us the need to send out a notification. It's this thoughtful engagement that cultivates our community's spirit. -Appreciatively, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Good day, {author_name}, -Your recent mention of a Reddit stalwart didn't go unnoticed. With their karma echoing years of engagement, we'll refrain from sending a notice. It's the understanding and respect you show that keeps our community's foundation strong. -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Salutations, {author_name}, -Recognizing a Reddit luminary, we noted your mention. Their vast karma and contributions make further notification redundant. Your mindfulness in community interactions is truly commendable. -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hello again, {author_name}, -You've acknowledged a Reddit user who's practically a legend here, given their karma and activity. In light of their veteran status, we see no need for an additional notification. Your insight into community dynamics is appreciated. -Take care, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Hi {author_name}, -You've tipped your hat to a user whose Reddit karma and history speak volumes. As such, we're bypassing the notification step. Your keen sense of community etiquette doesn't go unnoticed. -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- - -Greetings, {author_name}, -Your mention of a Reddit user known for their extensive karma and platform engagement caught our attention. Given their familiarity with the Reddit ecosystem, we'll omit the notification. Your thoughtful participation helps shape a respectful community. -Warm regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- \ No newline at end of file diff --git a/src/messages/rdrama_messages.txt b/src/messages/rdrama_messages.txt deleted file mode 100644 index 2ec1d1f..0000000 --- a/src/messages/rdrama_messages.txt +++ /dev/null @@ -1,282 +0,0 @@ -Hi {author_name}, - -We've noticed your recent mention of a Reddit user in your post/comment. It's essential to remember the value of privacy and respect in our community. We've informed the individual mentioned, but we kindly ask you to consider the implications of such actions in the future. - -Thank you for contributing to a respectful and positive environment. - -Warm regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -Your recent activity involving the mention of a Reddit user has been noted. We advocate for privacy and respectful discourse. The mentioned user has been notified. Please reflect on the importance of privacy and respect in all your future interactions. - -Best wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings {author_name}, - -We're reaching out regarding your mention of a Reddit user. As a community, we emphasize respect and privacy. We've alerted the mentioned individual and encourage you to consider the potential impact of such mentions in the future. - -Thank you for understanding, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -A recent comment of yours mentioning a Reddit user has prompted this message. We believe in maintaining respect and privacy across platforms. The mentioned user has been informed. Moving forward, we urge you to keep these values in mind. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey {author_name}, - -We've picked up on your mention of a Reddit user. Our platform stands for respectful and privacy-conscious interactions. The Reddit user has been notified of the mention. Please consider the implications of such mentions and strive for positive dialogue. - -Thanks for your cooperation, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -Your mention of a Reddit user caught our attention. We aim to foster a community where respect and privacy are paramount. The mentioned user has been made aware. We kindly ask you to reflect on this and encourage respectful engagement moving forward. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We're addressing a mention you made of a Reddit user. It's a good moment to remember the significance of privacy and respectful conduct. The individual has been notified, and we encourage you to consider these principles in your future interactions. - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -A recent action of yours mentioning a Reddit user has been brought to our attention. We prioritize respect and the privacy of individuals. The Reddit user has been informed. Please keep these values in mind as you continue to participate in our community. - -Many thanks, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey {author_name}, - -We need to talk about your recent mention of a Reddit user. Our community respects privacy and encourages thoughtful interactions. We've let the mentioned user know. Let's all strive for a kinder, more respectful community. - -Appreciatively, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -We've observed your mention of a Reddit user in your content. Our platform cherishes respectful and private interactions. The mentioned individual has been alerted. We ask you to consider the broader impact of your words and promote positivity. - -Thank you for being part of our community, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -We noticed your mention of a Reddit username in your discussion. At CrossTalk PM, we prioritize privacy and respectful communication. The Reddit user has been notified about this mention. Please be mindful of others' privacy in your future interactions. - -Best regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings {author_name}, - -Your recent activity mentioned a Reddit user, which has been brought to our attention. CrossTalk PM encourages a culture of respect and privacy. We've informed the mentioned individual. Reflecting on the impact of such mentions is crucial for a positive community atmosphere. - -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We're reaching out due to your mention of a Reddit user. CrossTalk PM is committed to fostering respectful interactions and protecting privacy. The user has been notified. Let's continue to create a welcoming environment for everyone. - -Warmly, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -A mention you made of a Reddit user has prompted this automated message. At CrossTalk PM, we value privacy and respectful discourse. The mentioned user has been alerted. Your cooperation in maintaining these values is appreciated. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey {author_name}, - -Your mention of a Reddit username has been noted. CrossTalk PM supports a community built on respect and privacy. We've informed the Reddit user of this mention. Going forward, please keep the privacy of others in mind. - -Thanks, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -We've detected your mention of a Reddit user. CrossTalk PM stands for respectful and considerate communication. The individual has been notified. We kindly ask you to be thoughtful about privacy and respect in all your posts and comments. - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings {author_name}, - -Your recent mention of a Reddit user has caught our attention. As part of CrossTalk PM's commitment to privacy and respect, the user has been informed. We encourage you to reflect on the importance of these values in our community. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We're addressing your mention of a Reddit user. CrossTalk PM values the privacy and dignity of all individuals. The mentioned user has been made aware. Please consider the implications of your actions and contribute to a respectful community dialogue. - -Thank you for your understanding, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -Your action of mentioning a Reddit user has prompted us to send this reminder. CrossTalk PM believes in the power of respectful and private interactions. The mentioned individual has been notified. Let's all contribute to a respectful and caring community environment. - -Many thanks, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey {author_name}, - -We noticed you mentioned a Reddit user in your comment. Here at CrossTalk PM, we champion respect and the right to privacy. The Reddit user has been informed of your mention. As we move forward, let's remember to treat everyone's privacy with the utmost respect. - -Appreciatively, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -Your recent mention of a Reddit user raised our attention. At CrossTalk PM, we emphasize the importance of respecting individual privacy and fostering a positive online environment. The mentioned Reddit user has been informed. We kindly ask you to consider the impact of your words and to promote a culture of respect and understanding in all your interactions. - -Best wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We've observed your mention of a Reddit username in one of your comments. CrossTalk PM is dedicated to maintaining a respectful and safe space for discussions. As part of our efforts to ensure privacy and respect for all users, the Reddit user mentioned has been notified. Please take a moment to reflect on the implications of mentioning others without their consent and strive to maintain a respectful discourse in our community. - -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings {author_name}, - -It has come to our attention that you've mentioned a Reddit user in your post. CrossTalk PM values the privacy and well-being of individuals both within and outside our community. The individual has been alerted to your mention. Moving forward, we encourage you to be mindful of others' privacy and to contribute positively to the online community. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -Your action of mentioning a Reddit user has led to this automated notification. CrossTalk PM advocates for a community where privacy is respected and upheld. The Reddit user mentioned has been made aware. We urge you to consider the personal boundaries of others and to foster a respectful environment in all your online engagements. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey there {author_name}, - -We noticed that you mentioned a Reddit user's username in a recent post. CrossTalk PM is committed to creating a respectful and privacy-conscious community. The mentioned user has been informed about this mention. We hope you understand the importance of respecting privacy and encourage you to continue engaging in positive and respectful interactions. - -Cheers, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello again {author_name}, - -A mention of a Reddit user by you has prompted us to send you this message. At CrossTalk PM, we stand for respectful interactions and the privacy of all internet users. The Reddit user involved has been notified of your mention. We kindly remind you to be considerate of others' privacy in your future posts and comments. - -Warm regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -We've detected your mention of a Reddit username in your recent activity. CrossTalk PM encourages a community ethos of respect and privacy. The individual mentioned has been informed. Let's all make an effort to ensure our community remains a respectful and welcoming space for everyone. - -Thanks, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings {author_name}, - -Your mention of a Reddit user has been brought to our notice. CrossTalk PM is built on principles of respect, privacy, and positive communication. The mentioned Reddit user has been alerted. We request that you keep these principles in mind, ensuring our platform remains a respectful space for all. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We're reaching out because of your mention of a Reddit user. At CrossTalk PM, we prioritize the privacy and respect of all users. The Reddit user has been notified of the mention. We encourage you to reflect on the impact of such mentions and to contribute positively to the community atmosphere. - -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -You recently mentioned a Reddit user in a discussion. CrossTalk PM is dedicated to fostering a respectful online environment, emphasizing privacy and positive interactions. The Reddit user has been informed. Please remember to respect the privacy and feelings of others in your future interactions. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We noticed your recent mention of a Reddit username. As a community, CrossTalk PM values privacy and constructive dialogue. The mentioned individual has been alerted. We ask you to please consider the privacy implications of such mentions in the future and help us maintain a respectful environment. - -Kind regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi {author_name}, - -Your recent activity involving the mention of a Reddit user has prompted this message. CrossTalk PM is committed to upholding privacy and fostering respectful interactions. The person mentioned has been notified. We encourage you to be mindful of others' privacy and to contribute to our community's positive culture. - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings {author_name}, - -It has come to our attention that you mentioned a Reddit user in your comment. At CrossTalk PM, we strive for a culture of respect and privacy awareness. The Reddit user has been informed of this mention. We hope you understand the significance of privacy and respect in our community. - -Regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -A recent mention of a Reddit username by you has led us to send this reminder. CrossTalk PM champions a respectful and privacy-conscious online space. The mentioned Reddit user has been made aware. We kindly ask you to consider the impact of your online actions on others' privacy and well-being. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hey {author_name}, - -We saw that you mentioned a Reddit user's name in one of your posts. Here at CrossTalk PM, we're all about respecting each other's privacy and fostering positive interactions. The mentioned user has been notified. Please remember to respect everyone's privacy and contribute positively to our community. - -Take care, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -Your mention of a Reddit user has triggered this notification. We at CrossTalk PM hold the values of privacy and respect in high regard. The individual you mentioned has been alerted. We encourage you to reflect on the importance of privacy and to ensure your future communications are respectful and considerate. - -Warmest regards, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hi again {author_name}, - -We're writing to address your mention of a Reddit username in a recent interaction. CrossTalk PM is dedicated to promoting an environment of respect and privacy protection. The Reddit user mentioned has been informed. We remind you to be thoughtful of privacy and to foster a positive community space. - -Thank you, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Greetings once more {author_name}, - -Your recent mention of a Reddit username has prompted us to reach out. CrossTalk PM prioritizes the privacy and respect of individuals across the web. The mentioned Reddit user has been notified. Please join us in our efforts to create a respectful and welcoming environment for all. - -Best wishes, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Hello {author_name}, - -We've noticed your mention of a Reddit username in a discussion. CrossTalk PM is built on respect for privacy and positive community interactions. The Reddit user has been informed of the mention. We invite you to reflect on the importance of privacy and to help us maintain a respectful community atmosphere. - -Best, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- -Dear {author_name}, - -You've recently mentioned a Reddit user, which has led to this message. CrossTalk PM stands for respect, privacy, and positive online interactions. The individual mentioned has been alerted. We ask you to be considerate of others' privacy and to contribute to making our community a positive space for all. - -Sincerely, -CrossTalk PM - Automated Message (Unmonitored Account) ----END--- \ No newline at end of file diff --git a/src/messages/reddit_messages.txt b/src/messages/reddit_messages.txt deleted file mode 100644 index fda8356..0000000 --- a/src/messages/reddit_messages.txt +++ /dev/null @@ -1,110 +0,0 @@ -Hi {username}, - -We noticed your Reddit username was mentioned on rDrama. CrossTalk PM values your privacy and wants to keep you informed while ensuring your well-being. - -To check out the mention, manually enter: rdrama[dot]net{permalink}. Remember, your privacy is key, so think it over before visiting. - -Concerns? Reach the rDrama team at rdrama[dot]net/contact for support. - -Take care, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Dear {username}, - -A mention of your username has popped up on rDrama. At CrossTalk PM, we're all about respecting your space and privacy. - -Curious? Modify this URL to visit: rdrama[dot]net{permalink}. Your discretion is advised. - -For any discomfort or queries, kindly connect with rDrama's admins at rdrama[dot]net/contact. - -Best, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Hello {username}, - -Your Reddit username surfaced in a conversation on rDrama. As advocates for privacy, CrossTalk PM is here to inform you, gently. - -Should you wish to see the mention, adjust this link: rdrama[dot]net{permalink}. Please prioritize your privacy and safety. - -For assistance, the rDrama admins are available at rdrama[dot]net/contact. - -Yours, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Hey {username}, - -Just a heads-up: your username was mentioned on rDrama. CrossTalk PM respects your right to privacy and wants to keep you in the loop. - -To view it, tweak this URL: rdrama[dot]net{permalink}. Think about your privacy first, though. - -Got concerns? The rDrama admins can help: rdrama[dot]net/contact. - -Cheers, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Greetings {username}, - -We've detected a mention of your username on rDrama. With CrossTalk PM, your privacy and peace of mind come first. - -Interested in the details? Edit this path: rdrama[dot]net{permalink}, but remember, your safety is paramount. - -For issues or worries, contact rDrama's support at rdrama[dot]net/contact. - -Kind regards, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Hi there {username}, - -Your Reddit username got a shoutout on rDrama. CrossTalk PM is here to ensure you're informed with a focus on your privacy. - -To dive in, adjust: rdrama[dot]net{permalink}. Yet, weigh your privacy options carefully. - -If something bothers you, rDrama's admins are at rdrama[dot]net/contact. - -All the best, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Dear {username}, - -We found your username in an rDrama discussion. As your privacy champions, CrossTalk PM brings this to your notice with care. - -To explore, change: rdrama[dot]net{permalink} to a proper URL. Privacy comes first, so please be cautious. - -Feel uneasy? Reach out to rDrama at rdrama[dot]net/contact. - -Warmly, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Hello {username}, - -A mention of your Reddit handle has been spotted on rDrama. CrossTalk PM believes in keeping you informed while safeguarding your privacy. - -If curious, here's how you can check it out: rdrama[dot]net{permalink}. As always, consider your privacy and well-being before proceeding. - -Should you need to discuss this, the rDrama admin team is available at rdrama[dot]net/contact. - -Sincerely, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Hey there {username}, - -We caught a mention of your username over on rDrama. CrossTalk PM is all about keeping you updated and respecting your online space. - -For a peek, here's a tweakable link: rdrama[dot]net{permalink}. Please proceed with caution and your privacy in mind. - -Questions or concerns? The friendly admins at rDrama are reachable at rdrama[dot]net/contact. - -Best wishes, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- -Greetings {username}, - -Your Reddit username was mentioned in an rDrama thread. At CrossTalk PM, we're committed to your privacy and timely notifications. - -To see the mention, here's a URL you can adjust: rdrama[dot]net{permalink}. Your privacy and security should always come first. - -If you're concerned or have questions, don't hesitate to contact rDrama's admins at rdrama[dot]net/contact. - -Respectfully, -The CrossTalk PM Team - Automated Message (Unmonitored Account) ----END--- \ No newline at end of file diff --git a/src/reddit/model/Subreddit.ts b/src/reddit/model/Subreddit.ts deleted file mode 100644 index 108a991..0000000 --- a/src/reddit/model/Subreddit.ts +++ /dev/null @@ -1,44 +0,0 @@ -export type Subreddit = { - default_set?: boolean; - user_is_contributor?: boolean; - banner_img?: string; - allowed_media_in_comments?: any[]; - user_is_banned?: boolean; - free_form_reports?: boolean; - community_icon?: string | null; - show_media?: boolean; - icon_color?: string; - user_is_muted?: boolean | null; - display_name?: string; - header_img?: string | null; - title?: string; - coins?: number; - previous_names?: any[]; - over_18?: boolean; - icon_size?: number[] | null; - primary_color?: string; - icon_img?: string; - description?: string; - submit_link_label?: string; - header_size?: number[] | null; - restrict_posting?: boolean; - restrict_commenting?: boolean; - subscribers?: number; - submit_text_label?: string; - is_default_icon?: boolean; - link_flair_position?: string; - display_name_prefixed?: string; - key_color?: string; - name?: string; - is_default_banner?: boolean; - url?: string; - quarantine?: boolean; - banner_size?: number[] | null; - user_is_moderator?: boolean; - accept_followers?: boolean; - public_description?: string; - link_flair_enabled?: boolean; - disable_contributor_requests?: boolean; - subreddit_type?: string; - user_is_subscriber?: boolean; -}; \ No newline at end of file diff --git a/src/reddit/model/User.ts b/src/reddit/model/User.ts deleted file mode 100644 index 1657dd7..0000000 --- a/src/reddit/model/User.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Subreddit } from "./Subreddit"; - -export type RedditUser = { - kind: string; - data: { - is_employee?: boolean; - has_visited_new_profile?: boolean; - is_friend: boolean; - pref_no_profanity?: boolean; - has_external_account?: boolean; - pref_geopopular?: string; - pref_show_trending?: boolean; - subreddit: Subreddit - pref_show_presence?: boolean; - snoovatar_img?: string; - snoovatar_size?: number[] | null; - gold_expiration?: null; - has_gold_subscription?: boolean; - is_sponsor?: boolean; - num_friends?: number; - features?: any; - can_edit_name?: boolean; - is_blocked?: boolean; - verified?: boolean; - new_modmail_exists?: null; - pref_autoplay?: boolean; - coins?: number; - has_paypal_subscription?: boolean; - has_subscribed_to_premium?: boolean; - id: string; - can_create_subreddit?: boolean; - over_18?: boolean; - is_gold?: boolean; - is_mod?: boolean; - awarder_karma?: number; - suspension_expiration_utc?: null; - has_stripe_subscription?: boolean; - is_suspended?: boolean; - pref_video_autoplay?: boolean; - in_chat?: boolean; - has_android_subscription?: boolean; - in_redesign_beta?: boolean; - icon_img: string; - has_mod_mail?: boolean; - pref_nightmode?: boolean; - awardee_karma?: number; - hide_from_robots?: boolean; - password_set?: boolean; - modhash?: null; - link_karma: number; - force_password_reset?: boolean; - total_karma: number; - inbox_count?: number; - pref_top_karma_subreddits?: boolean; - has_mail?: boolean; - pref_show_snoovatar?: boolean; - name: string; - pref_clickgadget?: number; - created: number; - has_verified_email: boolean; - gold_creddits?: number; - created_utc: number; - has_ios_subscription?: boolean; - pref_show_twitter?: boolean; - in_beta?: boolean; - comment_karma: number; - accept_followers: boolean; - has_subscribed: boolean; - accept_pms?: boolean; - } -}; diff --git a/src/reddit/services/Reddit.ts b/src/reddit/services/Reddit.ts deleted file mode 100644 index 31ad666..0000000 --- a/src/reddit/services/Reddit.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { RedditUser } from '../model/User'; -import RedditSessionManager from '../session/SessionManager'; - -/** - * Provides services for interacting with Reddit user data and sending messages. - */ -export class RedditService { - - /** - * Retrieves information about a Reddit user. - * - * @param {string} username - The username of the Reddit user to retrieve information for. - * @returns {Promise} A promise that resolves with the RedditUser object containing user information. - * @throws {Error} Throws an error if fetching user information fails. - * @example - * RedditService.getUserInfo('exampleUser') - * .then(userInfo => console.log(userInfo)) - * .catch(error => console.error(error)); - */ - static async getUserInfo(username: string): Promise { - try { - const redditSession = await RedditSessionManager.getInstance() - const response = await redditSession.axiosInstance.get(`/user/${username}/about`); - return response.data; - } catch (error) { - console.error('Error fetching user info:', error); - throw error; - } - } - - /** - * Sends a private message to a Reddit user. - * - * @param {string} username - The username of the recipient Reddit user. - * @param {string} subject - The subject of the message. - * @param {string} message - The body text of the message. - * @returns {Promise} A promise that resolves when the message is successfully sent. - * @throws {Error} Throws an error if sending the message fails. - * @example - * RedditService.sendMessage('exampleUser', 'Hello', 'This is a test message.') - * .then(() => console.log('Message sent successfully.')) - * .catch(error => console.error('Error sending message:', error)); - */ - static async sendMessage(username: string, subject: string, message: string): Promise { - try { - const redditSession = await RedditSessionManager.getInstance(); - // Create a URLSearchParams object with your data - const params = new URLSearchParams(); - params.append('api_type', 'json'); - params.append('to', `u/${username}`); - params.append('subject', subject); - params.append('text', message); - - // Use the params object directly in the data field - await redditSession.axiosInstance.post('/api/compose', params, { - headers: { - // Ensure the content type is set to application/x-www-form-urlencoded - 'Content-Type': 'application/x-www-form-urlencoded' - } - }); - console.log(JSON.stringify(params, null, 4)) - console.log(`Message sent to ${username}`); - } catch (error) { - console.error('Error sending message:', error); - throw error; - } - } -} diff --git a/src/reddit/session/SessionManager.ts b/src/reddit/session/SessionManager.ts deleted file mode 100644 index 2ffc15e..0000000 --- a/src/reddit/session/SessionManager.ts +++ /dev/null @@ -1,157 +0,0 @@ -import axios, { AxiosInstance, AxiosError, AxiosResponse, AxiosRequestConfig } from 'axios'; -const qs = require('qs'); -import dotenv from 'dotenv'; -import axiosRetry from 'axios-retry'; -import Bottleneck from 'bottleneck'; -import { DatabaseService } from '../../db/services/Database'; - -dotenv.config(); - -class RedditSessionManager { - private static instance: RedditSessionManager; - public readonly axiosInstance: AxiosInstance; - private limiter: Bottleneck; - - private constructor() { - - // Initialize the Bottleneck limiter - this.limiter = new Bottleneck({ - id: "reddit-limiter", - datastore: "ioredis", - clearDatastore: false, - clientOptions: { - host: process.env.REDIS_HOST, - port: Number(process.env.REDIS_PORT), - password: process.env.REDIS_PASSWORD || undefined, // Use undefined if no password is set - enableOfflineQueue: true - }, - maxConcurrent: 1, // Maximum number of concurrent requests - minTime: 1000 // Minimum time between dispatches of requests in milliseconds - }); - - this.axiosInstance = axios.create({ - baseURL: 'https://oauth.reddit.com/', // Base URL for OAuth2 Reddit API - headers: { - 'User-Agent': 'CrossTalk PM/0.1 by Whitneywisconson' - } - }); - - // Wrap axios requests with the limiter - this.wrapAxiosInstance(this.axiosInstance); - - axiosRetry(this.axiosInstance, { - retries: 3, - retryDelay: this.retryDelayStrategy, - retryCondition: this.retryCondition, - }); - } - - public static async getInstance(): Promise { - if (!RedditSessionManager.instance) { - RedditSessionManager.instance = new RedditSessionManager(); - await RedditSessionManager.instance.initializeAuthentication(); - } - return RedditSessionManager.instance; - } - - public async shutdown(): Promise { - await this.limiter.disconnect(); - } - - private async initializeAuthentication() { - // Check the database for an existing token - const currentToken = await DatabaseService.getCurrentOAuthToken(this.axiosInstance.defaults.baseURL as string); - if (currentToken && new Date() < new Date(currentToken.expiry_timestamp * 1000)) { - this.axiosInstance.defaults.headers.common['Authorization'] = `Bearer ${currentToken.access_token}`; - console.log('Using existing Reddit API token from database.'); - return; - } - console.log('No current Reddit API token from database requesting one') - - // Authenticate with Reddit API to get a new token - await this.authenticate(); - } - - private async authenticate() { - if (!process.env.redditUsername) throw 'No Reddit Username Found in .env' - if (!process.env.redditPassword) throw 'No Reddit Password Found in .env' - const redditUsername = process.env.redditUsername as string - const redditPassword = process.env.redditPassword as string - const credentials = qs.stringify({ - grant_type: 'password', - username: redditUsername, - password: redditPassword, - }); - - const authString = `${process.env.redditClientId}:${process.env.redditSecret}`; - const buffer = Buffer.from(authString); - const base64AuthString = buffer.toString('base64'); - - try { - const response = await this.axiosInstance.post('https://www.reddit.com/api/v1/access_token', credentials, { - headers: { - 'User-Agent': `CrossTalk PM/0.1 by ${redditUsername}`, //TODO Dynamically set app name here - 'Authorization': `Basic ${base64AuthString}`, - 'Content-Type': 'application/x-www-form-urlencoded', - }, - }); - - // Upsert the new token into the database - await DatabaseService.upsertOAuthToken( - this.axiosInstance.defaults.baseURL as string, - { - access_token: response.data.access_token, - token_type: response.data.token_type, - expires_in: response.data.expires_in, - scope: response.data.scope, - }); - - this.axiosInstance.defaults.headers.common['Authorization'] = `Bearer ${response.data.access_token}`; - console.log('Reddit API authenticated successfully.'); - } catch (error) { - console.error('Error authenticating with Reddit API:', error); - } - } - - private retryDelayStrategy(retryCount: number, error: AxiosError): number { - const retryAfter = error.response?.headers['retry-after']; - if (retryAfter) { - console.log(`429 Retry After: ${retryAfter}`); - return +retryAfter * 1000; - } - return Math.pow(2, retryCount) * 2000; - } - - private retryCondition(error: AxiosError): boolean { - const status = error.response?.status ?? 0; - return status === 429 || status >= 400; - } - - private wrapAxiosInstance(instance: AxiosInstance): void { - // Wrap the get method - const originalGet = instance.get; - instance.get = >(url: string, config?: AxiosRequestConfig): Promise => { - return this.limiter.schedule(() => originalGet.apply(instance, [url, config])) as Promise; - }; - - // Wrap the post method - const originalPost = instance.post; - instance.post = >(url: string, data?: any, config?: AxiosRequestConfig): Promise => { - return this.limiter.schedule(() => originalPost.apply(instance, [url, data, config])) as Promise; - }; - - // Wrap the put method - const originalPut = instance.put; - instance.put = >(url: string, data?: any, config?: AxiosRequestConfig): Promise => { - return this.limiter.schedule(() => originalPut.apply(instance, [url, data, config])) as Promise; - }; - - // Wrap the delete method - const originalDelete = instance.delete; - instance.delete = >(url: string, config?: AxiosRequestConfig): Promise => { - return this.limiter.schedule(() => originalDelete.apply(instance, [url, config])) as Promise; - }; - } -} - -export default RedditSessionManager; diff --git a/src/workflows/WorkflowOrchestrator.ts b/src/workflows/WorkflowOrchestrator.ts index cda7d15..353c0e8 100644 --- a/src/workflows/WorkflowOrchestrator.ts +++ b/src/workflows/WorkflowOrchestrator.ts @@ -2,7 +2,6 @@ import { CommentParser } from "../rdrama/services/CommentParser"; import { CommentPoster } from "../rdrama/services/CommentPoster"; import { MessageFileName, MessageService } from "../utils/MessageService"; import { DatabaseService } from "../db/services/Database"; -import { RedditService } from "../reddit/services/Reddit"; import { shouldNotifyUser } from "../utils/ShouldNotify"; import { Comment } from "../rdrama/models/Comment"; @@ -80,7 +79,6 @@ class WorkflowOrchestrator { username: redditUser, message: redditMessage, }); - await RedditService.sendMessage(redditUser, 'Crosstalk PM Notification', redditMessage); } }