Commit 9b3f4f1
committed
feat: show DEXBot2 version in
Shows `DEXBot2 v<version>` at the top of `node dexbot status|stat`
output so the user always sees what's installed, regardless of
whether bots are running.
Also silences the `/bin/sh: pm2: not found` stderr message when
PM2 is not installed, by redirecting stderr in the execSync call.
## Changes
- `modules/config.ts`: add `Config.VERSION` read from root package.json
- `dexbot.ts`: print version in `status` handler; add `2>/dev/null` to
`pm2 jlist` execSync
## Testing
- `node dexbot stat` shows version and clean output when PM2 absentstatus command + suppress stderr noise1 parent d12e9da commit 9b3f4f1
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
| 947 | + | |
| 948 | + | |
947 | 949 | | |
948 | 950 | | |
949 | 951 | | |
| |||
980 | 982 | | |
981 | 983 | | |
982 | 984 | | |
983 | | - | |
| 985 | + | |
984 | 986 | | |
985 | 987 | | |
986 | 988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
0 commit comments