Added typing when receiving command
This commit is contained in:
parent
b1c1545dee
commit
4bd89316a9
1 changed files with 1 additions and 0 deletions
1
main.cpp
1
main.cpp
|
@ -80,6 +80,7 @@ struct Magdi : public Matrix::EventListener {
|
||||||
|
|
||||||
void handleCommand(const std::string& type, const Matrix::Event& event) {
|
void handleCommand(const std::string& type, const Matrix::Event& event) {
|
||||||
std::string message;
|
std::string message;
|
||||||
|
client->setTyping(event.getRoomId(),true,5000);
|
||||||
std::string horoszkop = event.getContent()["body"].asString();
|
std::string horoszkop = event.getContent()["body"].asString();
|
||||||
horoszkop.replace(horoszkop.begin(),horoszkop.begin() + 6,"");
|
horoszkop.replace(horoszkop.begin(),horoszkop.begin() + 6,"");
|
||||||
horoszkop = replaceAllEkezet(horoszkop);
|
horoszkop = replaceAllEkezet(horoszkop);
|
||||||
|
|
Loading…
Reference in a new issue