Added typing when receiving command

This commit is contained in:
Balazs Toldi 2021-02-04 11:56:19 +01:00
parent b1c1545dee
commit 4bd89316a9
Signed by: Bazsalanszky
GPG key ID: 933820884952BE27

View file

@ -80,6 +80,7 @@ struct Magdi : public Matrix::EventListener {
void handleCommand(const std::string& type, const Matrix::Event& event) {
std::string message;
client->setTyping(event.getRoomId(),true,5000);
std::string horoszkop = event.getContent()["body"].asString();
horoszkop.replace(horoszkop.begin(),horoszkop.begin() + 6,"");
horoszkop = replaceAllEkezet(horoszkop);