UNPKG
petpet
Version:
latest (1.0.0)
1.0.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
virtual pet server
github.com/stawberri/petpet
stawberri/petpet
petpet
/
lib
/
server
/
stats.js
15 lines
(12 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module
.
exports
=
class
Stats
{
constructor
(
petpet
) {
this
.
_petpet
= petpet }
_stats
(
) {
return
this
.
_petpet
.
stats
() }
async
happiness
(
) {
const
{ happiness } =
await
this
.
_stats
()
return
happiness } }