Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@bochilteam/scraper/lib/cjs/primbons/zodiac.js
1126 views
1
"use strict";
2
Object.defineProperty(exports, "__esModule", { value: true });
3
function getZodiac(months, dates) {
4
var _a;
5
// https://github.com/Nurutomo/wabot-aq/blob/master/plugins/zodiac.js
6
const d = new Date(1970, months - 1, dates + 1);
7
// https://www.primbon.com/zodiak.htm
8
const zodiac = [
9
['capricorn', new Date(1970, 0, 21)],
10
['aquarius', new Date(1970, 1, 20)],
11
['pisces', new Date(1970, 2, 21)],
12
['aries', new Date(1970, 3, 20)],
13
['taurus', new Date(1970, 4, 21)],
14
['gemini', new Date(1970, 5, 22)],
15
['cancer', new Date(1970, 6, 23)],
16
['leo', new Date(1970, 7, 24)],
17
['virgo', new Date(1970, 8, 23)],
18
['libra', new Date(1970, 9, 24)],
19
['scorpio', new Date(1970, 10, 23)],
20
['sagitarius', new Date(1970, 11, 22)] // SAGITARIUS (23 November - 21 Desember)
21
];
22
return (_a = zodiac.find(([_, _d]) => _d >= d)) === null || _a === void 0 ? void 0 : _a[0];
23
}
24
exports.default = getZodiac;
25
//# sourceMappingURL=zodiac.js.map
26