Skip to content

Commit

Permalink
Added who said in TTSChannelHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
moonstar-x committed Mar 26, 2022
1 parent ea96f8c commit 843159f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/classes/tts/TTSChannelHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class TTSChannelHandler {
const { me: { voice: myVoice }, name: guildName, members, channels, roles } = message.guild;
const { channel: memberChannel } = message.member.voice;
const myChannel = myVoice?.channel;
const textToSay = cleanMessage(message.content, {

const messageIntro = this.client.config.get('ENABLE_WHO_SAID') ? `${message.member.displayName} said ` : '';
const textToSay = cleanMessage(`${messageIntro}${message.content}`, {
members: members.cache,
channels: channels.cache,
roles: roles.cache
Expand Down

0 comments on commit 843159f

Please sign in to comment.