Skip to content

Commit

Permalink
crosspost mensa message (aka auto publish)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1s70ph committed Apr 7, 2022
1 parent 30bd067 commit 00d6660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/addCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ async function mensa_automation(client: DiscordClient) {
_channel => _channel.id === client.config.ids.channelIDs.mensa,
) as TextChannel

channel.send({ embeds: [await mensa(client, weekday, 'adenauerring', null)] })
const message = channel.send({ embeds: [await mensa(client, weekday, 'adenauerring', null)] })
;(await message).crosspost()
})
}

0 comments on commit 00d6660

Please sign in to comment.