mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
8 lines
211 B
TypeScript
8 lines
211 B
TypeScript
const fs = require('fs');
|
|
|
|
export function log(msg: any) {
|
|
let currentDateTime = new Date().toLocaleString();
|
|
fs.appendFile("./llonebot.log", currentDateTime + ":" + msg + "\n", (err: any) => {
|
|
|
|
})
|
|
} |