Skip to content

Commit

Permalink
fix emoji replies not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Jun 22, 2024
1 parent 9c041cb commit 83e6fb1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/services/discord/modules/shitposting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,10 @@ export default async (bot: DiscordBot) => {
) => {
posting = true;
if (options.msg) (options.msg.channel as Discord.TextChannel).sendTyping();
const rng = Math.random();
const shouldUseAuthor = rng <= MSG_USE_AUTHOR_FREQ;
const shouldSendImg = rng <= DISCORD_IMAGE_FREQ;
const shouldSendSticker = rng <= STICKER_FREQ;
const shouldSendEmoji = rng <= EMOJI_REPLY_FREQ;
const shouldUseAuthor = Math.random() <= MSG_USE_AUTHOR_FREQ;
const shouldSendImg = Math.random() <= DISCORD_IMAGE_FREQ;
const shouldSendSticker = Math.random() <= STICKER_FREQ;
const shouldSendEmoji = Math.random() <= EMOJI_REPLY_FREQ;
const shat = await Shat({
msg: shouldUseAuthor
? options.msg?.author.globalName?.toLowerCase() ??
Expand Down

0 comments on commit 83e6fb1

Please sign in to comment.