feat: Custom presence
This commit is contained in:
parent
8b70b6a44a
commit
4d1d259882
1 changed files with 12 additions and 5 deletions
|
@ -50,14 +50,21 @@ export default class MuffinAI extends Client {
|
||||||
if (NODE_ENV === 'development') console.log(b.name)
|
if (NODE_ENV === 'development') console.log(b.name)
|
||||||
})
|
})
|
||||||
|
|
||||||
this.once('ready', () => {
|
this.once('ready', client => {
|
||||||
console.log(
|
console.log(
|
||||||
`Build Number: ${execSync('git rev-parse --short HEAD').toString()}`,
|
`Build Number: ${execSync('git rev-parse --short HEAD').toString()}`,
|
||||||
)
|
)
|
||||||
this.user!.setActivity({
|
|
||||||
type: ActivityType.Playing,
|
function setStatus() {
|
||||||
|
client.user.setActivity({
|
||||||
|
type: ActivityType.Custom,
|
||||||
name: 'ㅅ살려주세요..!',
|
name: 'ㅅ살려주세요..!',
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
setStatus()
|
||||||
|
setInterval(() => setStatus(), 600000)
|
||||||
|
|
||||||
console.log(`먹힐 준비 완료`)
|
console.log(`먹힐 준비 완료`)
|
||||||
}).on('messageCreate', async msg => {
|
}).on('messageCreate', async msg => {
|
||||||
if (msg.author.bot) return
|
if (msg.author.bot) return
|
||||||
|
|
Loading…
Reference in a new issue