FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
github-bot/index.js at master · shadowdevcode/github-bot · GitHub
This repository was archived by the owner on Aug 2, 2026. It is now read-only.
shadowdevcode
/
github-bot
Public archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
github-bot
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (26 loc) · 664 Bytes
Breadcrumbs
github-bot
/
index.js
Copy path
File metadata and controls
30 lines (26 loc) · 664 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const
jsonfile
=
require
(
"jsonfile"
)
;
const
moment
=
require
(
"moment"
)
;
const
simpleGit
=
require
(
"simple-git"
)
;
const
random
=
require
(
"random"
)
;
const
FILE_PATH
=
"./data.json"
;
const
makeCommit
=
n
=>
{
if
(
n
===
0
)
return
simpleGit
(
)
.
push
(
)
;
const
x
=
random
.
int
(
0
,
54
)
;
const
y
=
random
.
int
(
0
,
6
)
;
const
DATE
=
moment
(
)
.
subtract
(
1
,
"y"
)
.
add
(
1
,
"d"
)
.
add
(
x
,
"w"
)
.
add
(
y
,
"d"
)
.
format
(
)
;
const
data
=
{
date
:
DATE
}
;
console
.
log
(
DATE
)
;
jsonfile
.
writeFile
(
FILE_PATH
,
data
,
(
)
=>
{
simpleGit
(
)
.
add
(
[
FILE_PATH
]
)
.
commit
(
DATE
,
{
"--date"
:
DATE
}
,
makeCommit
.
bind
(
this
,
--
n
)
)
;
}
)
;
}
;
makeCommit
(
700
)
;
Back
|
FazBrowse Home
|
New Git URL