diff --git a/src/Twitch.ts b/src/Twitch.ts index 8484014..92b0240 100644 --- a/src/Twitch.ts +++ b/src/Twitch.ts @@ -220,13 +220,14 @@ export default class Client { } private async prepareMsg (msg: PrivmsgMessage): Promise { + if (msg.senderUserID === this.id) { + return + } + // TODO: REFACTOR THIS LATER. if (msg.messageText === '!befriendlier') { - const msgBot = { - senderUserID: msg.senderUserID, - senderUsername: msg.senderUsername, - messageText: '@@bot', - } + const msgBot = { ...msg } + msgBot.messageText = '@@bot' const foundChannel = this.channels.get(msg.channelID)