mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
update
This commit is contained in:
parent
0ec773d5e4
commit
671950cb9c
77
.gitignore
vendored
77
.gitignore
vendored
@ -1,81 +1,6 @@
|
|||||||
package-lock.json
|
package-lock.json
|
||||||
|
|
||||||
|
logs/
|
||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
node_modules/
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# next.js build output
|
|
||||||
.next
|
|
||||||
|
|
||||||
# nuxt.js build output
|
|
||||||
.nuxt
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
config.json
|
config.json
|
||||||
./config.json
|
|
||||||
|
@ -1,30 +1,35 @@
|
|||||||
const leeks = require('leeks.js');
|
const leeks = require('leeks.js');
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
const d = now.getDate();
|
||||||
const h = now.getHours();
|
const h = now.getHours();
|
||||||
const m = now.getMinutes();
|
const m = now.getMinutes();
|
||||||
const s = now.getSeconds();
|
const s = now.getSeconds();
|
||||||
let timestamp = `${h}:${('0' + m).slice(-2)}:${('0' + s).slice(-2)}`;
|
let timestamp = `${h}:${('0' + m).slice(-2)}:${('0' + s).slice(-2)}`;
|
||||||
|
|
||||||
|
exports.init = x => {
|
||||||
|
console.log(`INIT FUNCTION TRIGGERED`)
|
||||||
|
};
|
||||||
|
|
||||||
exports.basic = (m) => {
|
exports.basic = (m) => {
|
||||||
console.log(m)
|
console.log(m)
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.console = (m) => {
|
exports.console = (m) => {
|
||||||
console.log(`[INFO | ${timestamp}] ${m}`)
|
console.log(`[INFO | ${timestamp}] ${m}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.info = (m) => {
|
exports.info = (m) => {
|
||||||
console.info(leeks.colours.cyan(`[INFO | ${timestamp}] ${m}`))
|
console.info(leeks.colours.cyan(`[INFO | ${timestamp}] ${m}`));
|
||||||
};
|
};
|
||||||
exports.success = (m) => {
|
exports.success = (m) => {
|
||||||
console.info(leeks.colours.green(`[INFO | ${timestamp}] ${m}`))
|
console.info(leeks.colours.green(`[INFO | ${timestamp}] ${m}`));
|
||||||
};
|
};
|
||||||
exports.debug = (m) => {
|
exports.debug = (m) => {
|
||||||
console.info(leeks.colours.blueBright(`[DEBUG | ${timestamp}] ${m}`))
|
console.info(leeks.colours.blueBright(`[DEBUG | ${timestamp}] ${m}`));
|
||||||
};
|
};
|
||||||
exports.warn = (m) => {
|
exports.warn = (m) => {
|
||||||
console.warn(leeks.colours.yellowBright(`[WARN | ${timestamp}] ${m}`))
|
console.warn(leeks.colours.yellowBright(`[WARN | ${timestamp}] ${m}`));
|
||||||
};
|
};
|
||||||
exports.error = (m) => {
|
exports.error = (m) => {
|
||||||
console.error(leeks.colours.red(`[ERROR | ${timestamp}] ${m}`))
|
console.error(leeks.colours.red(`[ERROR | ${timestamp}] ${m}`));
|
||||||
};
|
};
|
||||||
|
2
index.js
2
index.js
@ -50,7 +50,7 @@ const cooldowns = new Discord.Collection();
|
|||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
|
|
||||||
const commands = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
const commands = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||||
|
log.init()
|
||||||
log.basic(leeks.colours.magentaBright(`
|
log.basic(leeks.colours.magentaBright(`
|
||||||
######## #### ###### ###### ####### ######## ########
|
######## #### ###### ###### ####### ######## ########
|
||||||
## ## ## ## ## ## ## ## ## ## ## ## ##
|
## ## ## ## ## ## ## ## ## ## ## ## ##
|
||||||
|
Loading…
Reference in New Issue
Block a user