Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
New method for Powerbot CMS needs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksymilian Tomczyk authored Jun 10, 2019
1 parent 250d1d6 commit 6b98b8c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions models/Sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ class Sender {
this.emitter = emitter
that = this
}

async rawNoWait(message) {
try {
const response = axios.post(this.api_url, message)
this.emitter.emit('request_outgoing', message, response)
this.emitter.emit('message_sent', message, response)
return response
} catch (e) {
throw createError(e)
}
}

async raw(message) {
try {
Expand Down

0 comments on commit 6b98b8c

Please sign in to comment.