Skip to content

Commit 7ea7c8e

Browse files
authored
Merge pull request #69 from acmutd/fix/hehe
Add circle remind disable, shoutout pings
2 parents f422f8d + ffb40ea commit 7ea7c8e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/interaction/command/shoutout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ export default class ShoutoutCommand extends SlashCommand {
6262
const channel = guild!.channels.resolve(
6363
settings.channels.shoutout
6464
) as TextChannel;
65-
await channel.send({ embeds: [embed] });
65+
await channel.send({ content: users, embeds: [embed] });
6666
}
6767
}

src/util/manager/circle.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ export default class CircleManager extends Manager {
251251

252252
public async sendActivityReminder(payload: any) {
253253
try {
254+
// Consider disabled if threshold is non-positive
255+
if (this.remindThresholdDays <= 0) return;
256+
254257
// Create list of inactive circles & their last messages
255258
const circles = [...this.bot.managers.database.cache.circles.values()];
256259
let inactiveCircles: [Circle, Message][] = [];

0 commit comments

Comments
 (0)