FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DEXBot2/scripts/bots at main · froooze/DEXBot2 · GitHub
froooze
/
DEXBot2
Public
Notifications
You must be signed in to change notification settings
Fork
9
Star
9
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
DEXBot2
/
scripts
/
bots
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
16 lines (14 loc) · 546 Bytes
Breadcrumbs
DEXBot2
/
scripts
/
bots
Copy path
File metadata and controls
executable file
·
16 lines (14 loc) · 546 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
#!/usr/bin/env node
process
.
argv
[
2
]
=
'bots'
;
// Shim: runs compiled dist/dexbot.js
import
{
existsSync
}
from
'node:fs'
;
import
path
from
'node:path'
;
import
{
fileURLToPath
,
pathToFileURL
}
from
'node:url'
;
const
__dirname
=
path
.
dirname
(
fileURLToPath
(
import
.
meta
.
url
)
)
;
const
root
=
path
.
resolve
(
__dirname
,
'..'
)
;
const
distTarget
=
path
.
join
(
root
,
'dist'
,
'dexbot.js'
)
;
if
(
!
existsSync
(
distTarget
)
)
{
console
.
error
(
'dist/dexbot.js not found. Run `npm run build` first.'
)
;
process
.
exit
(
1
)
;
}
await
import
(
pathToFileURL
(
distTarget
)
.
href
)
;
Back
|
FazBrowse Home
|
New Git URL