Compare commits
4 commits
dceac4b653
...
466bed7e2b
Author | SHA1 | Date | |
---|---|---|---|
466bed7e2b | |||
e9acc545e4 | |||
2efe702309 | |||
9c3f371f0c |
4 changed files with 12 additions and 11 deletions
|
@ -17,14 +17,7 @@ const compat = new FlatCompat({
|
|||
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
'**/.yarn/',
|
||||
'**/.pnp.*',
|
||||
'**/dist/',
|
||||
'**/.vscode/',
|
||||
'**/.idea/',
|
||||
'**/tsup.config.ts',
|
||||
],
|
||||
ignores: ['**/dist/', '**/.vscode/', '**/.idea/', '**/node_modules/'],
|
||||
},
|
||||
...compat.extends('plugin:@typescript-eslint/recommended', 'prettier'),
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"ext": "ts,json",
|
||||
"exec": "pnpm build --sourcemap && node dist/src",
|
||||
"exec": "tsc --sourcemap && cross-env NODE_ENV=development node --enable-source-maps dist/src",
|
||||
"ignore": ["dist/**/*.*"]
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "muffinbot",
|
||||
"version": "4.0.0-pudding.d241009a",
|
||||
"version": "4.0.0-pudding.p241018a",
|
||||
"main": "dist/src/index.js",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -11,13 +11,21 @@ const release = version
|
|||
.slice((semver.coerce(version)?.toString() + '-').length)
|
||||
.split('.')[1]
|
||||
|
||||
function getLastUpdated() {
|
||||
const updated = release.match(/[0-9]/g)!.join('')
|
||||
const year = updated.slice(0, 2)
|
||||
const month = updated.slice(2, 4)
|
||||
const day = updated.slice(4, 6)
|
||||
return `20${year}-${month}-${day}`
|
||||
}
|
||||
|
||||
container.config = config
|
||||
container.prefix = config.bot.prefix
|
||||
container.version = version
|
||||
container.database = new PrismaClient()
|
||||
container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트']
|
||||
container.chatBot = new ChatBot(container.database)
|
||||
container.lastUpdated = new Date('2024-10-09')
|
||||
container.lastUpdated = new Date(getLastUpdated())
|
||||
container.embedColors = {
|
||||
default: 0xaddb87,
|
||||
fail: 0xff0000,
|
||||
|
|
Loading…
Reference in a new issue