Compare commits
No commits in common. "2efe702309ab1abf7a38fc1a6cd84f4ee3756c79" and "dceac4b653c0e42a8542fafa3b6e709f22fcf88f" have entirely different histories.
2efe702309
...
dceac4b653
2 changed files with 2 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "muffinbot",
|
"name": "muffinbot",
|
||||||
"version": "4.0.0-pudding.p241018a",
|
"version": "4.0.0-pudding.d241009a",
|
||||||
"main": "dist/src/index.js",
|
"main": "dist/src/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -11,21 +11,13 @@ 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(getLastUpdated())
|
container.lastUpdated = new Date('2024-10-09')
|
||||||
container.embedColors = {
|
container.embedColors = {
|
||||||
default: 0xaddb87,
|
default: 0xaddb87,
|
||||||
fail: 0xff0000,
|
fail: 0xff0000,
|
||||||
|
|
Loading…
Reference in a new issue