Skip to content

Commit

Permalink
Forgot to document a function
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxine-senpai committed Mar 13, 2024
1 parent 7f84fbd commit f5afcc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ Client.getServerKL().then(killLogs => {
"Kill Logs: " + console.log(killLogs)
}).catch(console.error)

// How about server info?
Client.getServerInfo().then(info => {
"Server Info: " + console.log(info)
}).catch(console.error)

// Finally, lets run a command
Client.runCmd(':h Hello World!').then(response => {
"Command: " + console.log(response)
Expand Down
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a simple API wrapper for the new ERLC API, this is my first NPM package

```javascript
const client = require('erlc-js-wrapper')
const client = require('../index.js')

const Client = new client.init({
token: 'your-token-here'
Expand All @@ -39,6 +39,11 @@ Client.getServerKL().then(killLogs => {
"Kill Logs: " + console.log(killLogs)
}).catch(console.error)

// How about server info?
Client.getServerInfo().then(info => {
"Server Info: " + console.log(info)
}).catch(console.error)

// Finally, lets run a command
Client.runCmd(':h Hello World!').then(response => {
"Command: " + console.log(response)
Expand Down

0 comments on commit f5afcc6

Please sign in to comment.