move files
This commit is contained in:
parent
3249697420
commit
c8e3353fe2
|
@ -32,7 +32,7 @@ dClient.once('ready', () => {
|
||||||
|
|
||||||
require('./local_events');
|
require('./local_events');
|
||||||
require('./commands');
|
require('./commands');
|
||||||
require('./mppbridger');
|
require('./mppbridger');
|
||||||
require('./misc');
|
require('./misc');
|
||||||
require('./ddpbridge');
|
require('./ddpbridge');
|
||||||
require('./prbridge');
|
require('./prbridge');
|
|
@ -1,4 +1,4 @@
|
||||||
var Client = require('../lib/Client.js');
|
var Client = require('./lib/Client.js');
|
||||||
|
|
||||||
global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
||||||
channel = dClient.channels.resolve(channel);
|
channel = dClient.channels.resolve(channel);
|
||||||
|
@ -194,7 +194,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
||||||
// addons
|
// addons
|
||||||
{
|
{
|
||||||
// record raw data
|
// record raw data
|
||||||
let createWSMessageCollector = require("../datacollector")
|
let createWSMessageCollector = require("./datacollector")
|
||||||
gClient.on("message", createWSMessageCollector(async function(data, startDate, endDate){
|
gClient.on("message", createWSMessageCollector(async function(data, startDate, endDate){
|
||||||
var attachmentName = `${uri} ${room} raw data recording from ${startDate.toISOString()} to ${endDate.toISOString()} .txt.gz`;
|
var attachmentName = `${uri} ${room} raw data recording from ${startDate.toISOString()} to ${endDate.toISOString()} .txt.gz`;
|
||||||
await channel.send(new Discord.MessageAttachment(data, attachmentName));
|
await channel.send(new Discord.MessageAttachment(data, attachmentName));
|
Loading…
Reference in New Issue