update/hide-tick-logs
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "9.0.0",
|
"version": "9.0.1",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
@@ -197,14 +197,14 @@ class DayzRBot extends Client {
|
|||||||
|
|
||||||
async logsUpdateTimer(c) {
|
async logsUpdateTimer(c) {
|
||||||
let t = new Date();
|
let t = new Date();
|
||||||
c.log(`...Logs Tick - ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}...`);
|
// c.log(`...Logs Tick - ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}...`);
|
||||||
c.activePlayersTick++;
|
c.activePlayersTick++;
|
||||||
|
|
||||||
await DownloadNitradoFile(c, `/games/${c.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async (status) => {
|
await DownloadNitradoFile(c, `/games/${c.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async (status) => {
|
||||||
if (status == -1) return c.error('...Failed to Download logs...');
|
if (status == -1) return c.error('...Failed to Download logs...');
|
||||||
c.log('...Downloaded logs...');
|
// c.log('...Downloaded logs...');
|
||||||
await c.readLogs(c.config.GuildID).then(async () => {
|
await c.readLogs(c.config.GuildID).then(async () => {
|
||||||
c.log('...Analyzed logs...');
|
// c.log('...Analyzed logs...');
|
||||||
HandleExpiredUAVs(c, c.config.GuildID);
|
HandleExpiredUAVs(c, c.config.GuildID);
|
||||||
HandleEvents(c, c.config.GuildID)
|
HandleEvents(c, c.config.GuildID)
|
||||||
if (c.activePlayersTick == 12) await HandleActivePlayersList(c, c.config.GuildID);
|
if (c.activePlayersTick == 12) await HandleActivePlayersList(c, c.config.GuildID);
|
||||||
|
|||||||
Reference in new issue
Block a user