fix: Use command bot answer both command's result & random text. And fix version's years.

This commit is contained in:
Siwoo Jeon 2025-03-01 00:05:39 +09:00
parent 6cc359929e
commit 8609181aed
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 2 additions and 2 deletions

View file

@ -21,6 +21,6 @@ declare module '@sapphire/framework' {
container.dbDisconnect = async () => await disconnect()
container.config = new Config()
container.prefix = container.config.bot.prefix
container.version = '5.0.0-newMuffin.e240226a'
container.version = '5.0.0-newMuffin.e250301a'
await connect(container.config.databaseUrl)

View file

@ -23,7 +23,7 @@ export class MessageCreateListener extends Listener {
}).save()
if (!msg.content.startsWith(this.container.prefix)) return
if (this.container.stores.get('commands').get(content)) return
if (this.container.stores.get('commands').get(content.split(' ')[0])) return
await msg.channel.sendTyping()