This commit is contained in:
Lamp 2018-11-09 13:11:32 -08:00
parent d12b882dfc
commit 857425aaa1
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module.exports = async function(gClient, site, room, DiscordChannel) {
var filepath = path + "/" + filename;
var size = 0;
var startDate = new Date();
gClient.on('message', function(){
gClient.on('message', function(msg){
var data = msg.data;
if (data instanceof ArrayBuffer) data = Buffer.from(data).toString('base64');
var line = `${Date.now()} ${data}\n`;