You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Natsuki/bot.js

29 lines
1.0 KiB

const logger = require('./src/util/log/log');
2 years ago
const ora = require('./src/util/log/ora');
const wait = require('./src/util/misc/wait');
const chalk = require('chalk');
const client = {test: 'e', config: {logLevel: 1}};
2 years ago
2 years ago
const loggers = logger(client);
const log = loggers.log;
2 years ago
log();
log("Hello World!")
log("Hello in blue", {color: 'blue'});
log('A strange warning appears!', {color: 'yellowBright', source: 'warn', sourceColor: 'yellow'});
2 years ago
/*log('Extra line spacing before', {}, false, true);
log('regular line');
log('extra line spacing after', {}, true);
log('regular line');
log('both line spaces', {}, true, true);
2 years ago
log('regular line');
2 years ago
log('a custom fancy pink color', {color: '#ff00ff', sourceColor: '#660066'});*/
loggers.warn("A warning appears!");
loggers.error("Something bad happened!");
2 years ago
loggers.success("Something good happened!");
const r = async () => {
await ora(chalk.yellowBright("Waiting for a slow connection..."), wait(2000), () => loggers.success("Connected!", 0, true));
log('after thingy');
};
r();