Added message select menues (mentionable not available)

This commit is contained in:
ION606
2023-04-16 19:50:45 -04:00
parent ed16d4aeca
commit 7996d6af7c
16 changed files with 313 additions and 51 deletions
+17
View File
@@ -0,0 +1,17 @@
import fs from 'fs';
import util from 'util'
import path from 'path';
import {fileURLToPath} from 'url';
export default function writeInit() {
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
var log_file = fs.createWriteStream(path.join(__dirname, '../debug.log'), {flags : 'w'});
var log_stdout = process.stdout;
console.log = function(d) {
log_file.write(util.format(d) + '\n');
log_stdout.write(util.format(d) + '\n');
};
}