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

new line in command ?who #76

Closed PentSec closed 2 years ago

PentSec commented 2 years ago

Hello mate,

how i can add a little new line per character online when i put "?who" like that

Elves (85 Shaman in Unknown Zone), Srbinlol (85 Paladin in Nagrand), Terr (85 Shaman in Hyjal), Wackycow (85 Paladin in Nagrand)

btw, amazing project.

fjaros commented 2 years ago

In https://github.com/fjaros/wowchat/blob/7ffc62e0fd343d570549b2f375b174778c23f541/src/main/scala/wowchat/game/GamePacketHandler.scala#L110 you will want to change .mkString(getGuildiesOnlineMessage(false), ", ", "") to .mkString(getGuildiesOnlineMessage(false), ",\n", "")

PentSec commented 2 years ago

amazing.

I am very new to this scala and I am learning a little with your code.

thanks for your answer. Solved

fjaros commented 2 years ago

don't waste your time on scala. pretty dead language unfortunately :)

PentSec commented 2 years ago

ya but, it would be very difficult to convert this code to another language for me.