Basic Chat and Message model implementation
This commit is contained in:
parent
1dab219764
commit
6442469437
10 changed files with 118 additions and 18 deletions
|
|
@ -19,7 +19,7 @@ client.on('ready', () => {
|
|||
client.on('message', (msg) => {
|
||||
console.log('MESSAGE RECEIVED', msg);
|
||||
|
||||
if (!msg.id.fromMe && msg.body == 'ping') {
|
||||
if (msg.body == 'ping') {
|
||||
client.sendMessage(msg.from, 'pong');
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue