fjaros / wowchat

WoWChat is a clientless Discord integration chat bot for old versions of World of Warcraft.
GNU General Public License v3.0
139 stars 96 forks source link

Help. Newbie. Format massege #119

Closed Rorifer closed 5 months ago

Rorifer commented 5 months ago

Help me figure out how to separate individual messages into separate disord channels Example: [Player]: Hello Word! This message should be output to the "wow_Chat" channel [Player]: EPGP: +270 GP (slak) for PlayerTwo This message should be output to the channel "wow_Epgp" I am using the following code but it is not working. What's my mistake?

`chat { channels=[

{
  direction=both
  wow {
    type=Guild
    format="[%user]: %message"
  }
  discord {
    channel=wow_chat
    format="[%user]: %message"
  }
}

{
  direction=wow_to_discord
  wow {
    type=Guild
    format="[%user]: EPGP: %message"
  }
  discord {
    channel=wow_epgp
    format="[%user]: EPGP: %message"
  }
}

`

fjaros commented 5 months ago

Unfortunately that's not what format means. All this will do is send the message from Guild to "wow_chat" and to "wow_epgp" with whatever the player said in the place of %message.

What you are looking for is not implemented.

Rorifer commented 5 months ago

Understood thanks! The solution was circumvented by creating Custom channels. Thank you again for the wonderful program! I would like to draw your attention to the fact that when compiling the project, it was discovered that the project in the link (tag) differs from the kit in the “code”