mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 12:36:01 +00:00
ffmpeg error detections system
This commit is contained in:
@ -28,6 +28,7 @@ module.exports = class extends Client {
|
||||
this.funcs.msToTime = require('./funcs/msToTime.js');
|
||||
this.funcs.dbget = require('./funcs/dbget.js');
|
||||
this.funcs.exe = require('./funcs/exe.js');
|
||||
this.funcs.ffmpegTest = require('./funcs/ffmpeg.js');
|
||||
|
||||
admin.initializeApp({
|
||||
credential: admin.credential.cert(serviceAccount),
|
||||
|
7
Struct/funcs/ffmpeg.js
Normal file
7
Struct/funcs/ffmpeg.js
Normal file
@ -0,0 +1,7 @@
|
||||
module.exports = async function (client) {
|
||||
try {
|
||||
await client.channels.get('570531724002328577').join()
|
||||
} catch (error) {
|
||||
client.channels.get(client.config.debug_channel).send("Error detected: " + error);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user