mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 20:23:08 +02:00
Use Array.prototype.length to avoid magic number
This commit is contained in:
parent
aa9fe38c25
commit
fa95641f88
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
export default () => [
|
const kaos = [
|
||||||
'(=^・・^=)',
|
'(=^・・^=)',
|
||||||
'v(\'ω\')v',
|
'v(\'ω\')v',
|
||||||
'🐡( \'-\' 🐡 )フグパンチ!!!!',
|
'🐡( \'-\' 🐡 )フグパンチ!!!!',
|
||||||
'🖕(´・_・`)🖕'
|
'🖕(´・_・`)🖕',
|
||||||
][Math.floor(Math.random() * 4)];
|
];
|
||||||
|
|
||||||
|
export default () => kaos[Math.floor(Math.random() * kaos.length)];
|
||||||
|
|
Loading…
Reference in a new issue