Compare commits

...

4 commits

4 changed files with 12 additions and 11 deletions

View file

@ -17,14 +17,7 @@ const compat = new FlatCompat({
export default [ export default [
{ {
ignores: [ ignores: ['**/dist/', '**/.vscode/', '**/.idea/', '**/node_modules/'],
'**/.yarn/',
'**/.pnp.*',
'**/dist/',
'**/.vscode/',
'**/.idea/',
'**/tsup.config.ts',
],
}, },
...compat.extends('plugin:@typescript-eslint/recommended', 'prettier'), ...compat.extends('plugin:@typescript-eslint/recommended', 'prettier'),
{ {

View file

@ -1,5 +1,5 @@
{ {
"ext": "ts,json", "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/**/*.*"] "ignore": ["dist/**/*.*"]
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "muffinbot", "name": "muffinbot",
"version": "4.0.0-pudding.d241009a", "version": "4.0.0-pudding.p241018a",
"main": "dist/src/index.js", "main": "dist/src/index.js",
"private": true, "private": true,
"dependencies": { "dependencies": {

View file

@ -11,13 +11,21 @@ const release = version
.slice((semver.coerce(version)?.toString() + '-').length) .slice((semver.coerce(version)?.toString() + '-').length)
.split('.')[1] .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.config = config
container.prefix = config.bot.prefix container.prefix = config.bot.prefix
container.version = version container.version = version
container.database = new PrismaClient() container.database = new PrismaClient()
container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트'] container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트']
container.chatBot = new ChatBot(container.database) container.chatBot = new ChatBot(container.database)
container.lastUpdated = new Date('2024-10-09') container.lastUpdated = new Date(getLastUpdated())
container.embedColors = { container.embedColors = {
default: 0xaddb87, default: 0xaddb87,
fail: 0xff0000, fail: 0xff0000,