aboutsummaryrefslogtreecommitdiff
path: root/commands/info.js
blob: ed427f8e61292e27bfdfa5fd51c276973c248454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import constants from "../util/constants"
import { addCommas } from "../util/helperFunctions"
const PREFIX = constants.PREFIX

export function info()
{
    let cwinfo = constants.CWINFO,
     values = {"experience" : "", "powder": "", "collection": "", "miscellaneous": ""}
    
    cwinfo.forEach(info => {
        values[info.category] += `&b${addCommas(info.cost)} ${info.nameStringed}\n`
    })

    ChatLib.chat(
    `${PREFIX}&bEach of the following are equivalent to one unit of ColeWeight` +
    "\n&4&lExperience\n" + values.experience +
    "\n&4&lPowder\n" + values.powder +
    "\n&4&lCollections\n" + values.collection +
    "\n&4&lMiscellaneous\n" + values.miscellaneous)
}