Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisNils committed Sep 29, 2021
1 parent f02a6bc commit 16479f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/examples/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Client } = require('fnbr');
const client = new Client();

client.on('friend:message', (message) => {
console.log(`Message from ${message.friend.displayName}: ${message.content}`);
console.log(`Message from ${message.author.displayName}: ${message.content}`);
if (message.content.toLowerCase().startsWith('ping')) {
message.reply('Pong!');
}
Expand Down
2 changes: 1 addition & 1 deletion docs/general/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { Client } = require('fnbr');
const client = new Client();

client.on('friend:message', (message) => {
console.log(`Message from ${message.friend.displayName}: ${message.content}`);
console.log(`Message from ${message.author.displayName}: ${message.content}`);
if (message.content.toLowerCase().startsWith('ping')) {
message.reply('Pong!');
}
Expand Down

0 comments on commit 16479f0

Please sign in to comment.