Files
toho-miku/config/constants.js
Minzkraut 95c3f41fde Trade: Properly handle trade cancellation and timeouts
- Trade finishing states are now handled properly.
- Deferring cancel button press
- A user is on a 2 minute cooldown after a trade finishes or
  cancels if he is the one who initiated it.
- Updated emote IDs
2023-01-02 21:04:24 +01:00

70 lines
1.9 KiB
JavaScript

const QUALITY = {
BAD : 1,
OK : 2,
GOOD : 3,
GREAT : 4,
EXCELLENT : 5,
SHINY : 6
}
const QUALITY_NAMES = {
1 : "Bad",
2 : "Ok",
3 : "Good",
4 : "Great",
5 : "Excellent",
6 : "Shiny"
}
const QUALITY_SYMBOLS = {
1 : "<a:shyyOrcaTrain:1059541149611733002><:shyyDead:1059541444110581780><:shyyDead:1059541444110581780><:shyyDead:1059541444110581780><:shyyDead:1059541444110581780>",
2 : "<a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><:shyyDead:1059541444110581780><:shyyDead:1059541444110581780><:shyyDead:1059541444110581780>",
3 : "<a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><:shyyDead:1059541444110581780><:shyyDead:1059541444110581780>",
4 : "<a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><:shyyDead:1059541444110581780>",
5 : "<a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002><a:shyyOrcaTrain:1059541149611733002>",
6 : "⭐⭐⭐⭐⭐"
}
const CURRENCY_SYMBOLS = {
1 : "🎶",
2 : "💎"
}
const CURRENCY_NAMES = {
1 : "Notes",
2 : "Gems"
}
const QUALITY_VALUES = {
1 : {
type: 1,
value: 2
},
2 : {
type: 1,
value: 5
},
3 : {
type: 1,
value: 10
},
4 : {
type: 1,
value: 15
},
5 : {
type: 1,
value: 20
},
6 : {
type: 2,
value: 2
}
}
exports.QUALITY = QUALITY;
exports.QUALITY_NAMES = QUALITY_NAMES;
exports.CURRENCY_SYMBOLS = CURRENCY_SYMBOLS;
exports.QUALITY_SYMBOLS = QUALITY_SYMBOLS;
exports.CURRENCY_NAMES = CURRENCY_NAMES;
exports.QUALITY_VALUES = QUALITY_VALUES;