Only count biggest loser messages in one guild
This commit is contained in:
@@ -466,7 +466,11 @@ async function scheduleBiggestLoser(firstTime = false) {
|
||||
const channel = <TextChannel>await client.channels.fetch(process.env.LOSER_CHANNEL);
|
||||
if (channel) {
|
||||
try {
|
||||
const declaration = await sendBiggestLoserAnnouncement(client, channel);
|
||||
const declaration = await sendBiggestLoserAnnouncement(
|
||||
client,
|
||||
channel,
|
||||
channel.guild.id
|
||||
);
|
||||
|
||||
logInfo(`[bot] Declaring biggest loser: ${declaration}`);
|
||||
await channel.send(declaration);
|
||||
|
||||
Reference in New Issue
Block a user