-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.js
102 lines (76 loc) · 4.25 KB
/
index.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Copyright notice:
/*---------------------------------------------------------------------------------------------
* Original work: Copyright (c) 2020-2023 Refloow All rights reserved.
* Code origin: https://github.com/Refloow/Discord-Channel-Moderator
* Developer name: Veljko Vuckovic
* Licensed under the MIT License. See LICENSE in the project root for license information.
* Published License: https://github.com/Refloow/Discord-Channel-Moderator/blob/master/LICENSE
* Contact information:
Discord Support Server: https://discord.gg/D8WCtDD
Main developer steam: https://steamcommunity.com/id/MajokingGames/
* Donations:
Crypto: https://refloow.com/cdonate
Steam: https://steamcommunity.com/tradeoffer/new/?partner=994828078&token=XEUdbqp6
--------------------------------------------------------------------------------------------*/
/*
// legal advice: PERMISSIONS AND RIGHTS
* License does not prohibit modification, distribution, private/commercial use or sale of copies as long as the original LICENSE file
and authors copyright notice are left as they are in the project files.
* Copyright notice could be included ones or multiple times within the file.
* Copyright notice should not be removed even within the larger works (Larger modifications applied).
* Original file tags cannot be removed without creators exclusive permission.
* Adding own tags in files is possible in case of modification - even in that case original tags must be kept.
* Year on the copyright notice breakdown:
* Generally, the “year of first publication of the work” refers to the year in which the work was first distributed to the public (first year mentioned)
* Any year after represents the year of added modifications.
* Copyright cannot expire so therefore you cannot remove copyright notice if its not updated to the latest year.
* Editing existing copyright notice(s) is also prohibited.
===================================================================================
Removing copyright notice & distributing, using or selling the software without
the original license and copyright notice is licence agreement breach and its considered criminal offense and piracy.
===================================================================================
*/
// Checking if all modules are installed correctly
try {
colors = require('colors');
} catch (ex) {
console.log('\n\n\n | [Modules] |: Missing dependecies Run install.bat file or use npm install. \n\n\n');
console.log(ex);
process.exit(1);
}
// Importing required files
const method = require('./app/methods.js');
const package = require('./package.json');
const v = package.version;
const diagnostics = require('dcm-diagnostics')
const config = require('./settings/config.js')
// Basic infomations display on startup
console.log('8888888b. .d888888 '.cyan);
console.log('888 Y88b d88P" 888 '.cyan);
console.log('888 888 888 888 '.cyan);
console.log('888 d88P .d88b. 888888888 .d88b. .d88b. 888 888 888'.cyan);
console.log('8888888P" d8P Y8b888 888d88""88bd88""88b888 888 888'.cyan);
console.log('888 T88b 88888888888 888888 888888 888888 888 888'.cyan);
console.log('888 T88b Y8b. 888 888Y88..88PY88..88PY88b 888 d88P '.cyan);
console.log('888 T88b "Y8888 888 888 "Y88P" "Y88P" "Y8888888P" \n\n\n'.cyan);
console.log('/* Original work: Copyright (c) 2020-2021 Refloow All rights reserved. \n Code origin (Free GitHub publish): https://github.com/Refloow/Discord-Channel-Moderator*/\n'.cyan);
console.log(`Verision v${v}`.cyan);
console.log('Preparing code for launch'.cyan);
console.log(''.red);
console.log('Loading config file...\n\n'.green );
// Starting main app
require('./app/app.js');
// Checking for correct version (updates) for bot on github
method.check()
function call() {
setInterval(getit, config.showtimer);
}
function getit() {
diagnostics.getusage();
}
if(method.CheckData()) {
call();
}
// Copyright notice:
/* Original work: Copyright (c) 2020-2023 Refloow All rights reserved.
Code origin (Free GitHub publish): https://github.com/Refloow/Discord-Channel-Moderator*/