# 專案想法 - [ ] 新增attribute Collection ```js const { Collection } = require("discord.js"); const attribute = new Collection(); let { author } = msg; let attr = attribute.get(author.id); if(!attr) { attribute.set(author.id, { isMoving: false, // 移動中,有些指令無法使用 isBattling: false, // 戰鬥中,有些指令無法使用 }); attr = null; } cmd.excute(...attr); ``` - [ ] 新增status Collection ```js const { Collection } = require("discord.js"); const status = new Collection(); let { author } = msg; let st = status.get(author.id); if(!st) { status.set(author.id, []); st = null; } cmd.excute(...st); ``` - [ ] 將進化路線刪除,採取技能點制度
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up