feat: Custom presence

This commit is contained in:
Siwoo Jeon 2023-11-25 13:04:29 +09:00
parent 8b70b6a44a
commit 4d1d259882
Signed by: migan
GPG key ID: C4151385FFD2082A

View file

@ -50,14 +50,21 @@ export default class MuffinAI extends Client {
if (NODE_ENV === 'development') console.log(b.name)
})
this.once('ready', () => {
this.once('ready', client => {
console.log(
`Build Number: ${execSync('git rev-parse --short HEAD').toString()}`,
)
this.user!.setActivity({
type: ActivityType.Playing,
name: 'ㅅ살려주세요..!',
})
function setStatus() {
client.user.setActivity({
type: ActivityType.Custom,
name: 'ㅅ살려주세요..!',
})
}
setStatus()
setInterval(() => setStatus(), 600000)
console.log(`먹힐 준비 완료`)
}).on('messageCreate', async msg => {
if (msg.author.bot) return