-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.php
84 lines (66 loc) · 3.08 KB
/
Settings.php
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
<?php
class Settings
{
/*******************************************************************************************************************
* Basic configuration
* Should be enough to get your bot running.
* Dont forget to setup a cron job executing cron.php every $MAX_RUN_TIME + a small safety offset
* Running each 5 minutes should be fine with the default $MAX_RUN_TIME
******************************************************************************************************************/
// Entity ids you want to display killmails for.
// You may have different hooks used for watching different entities, just duplicate 'default'.
public static $watchingConfigurations = [
'default' => [
'SLACK_HOOK' => 'https://hooks.slack.com/services/ABC/ABC/ABC',
'WATCHED_ENTITIES' => [
'corporations' => [
123,
],
'alliances' => [
1234,
12345,
],
'systems' => [
30000142,
],
],
],
];
// 4 minutes default max run time
public static $MAX_RUN_TIME = 4 * 60;
public static $KILL_HISTORY_MAX_LENGTH = 50;
/*******************************************************************************************************************
* Mail settings
* Allow script to send mail alert when something goes wrong
******************************************************************************************************************/
// Enable sending mails
public static $SEND_MAIL = false;
// Server configuration
public static $SMTP_SERVER = 'smtp.example.com';
public static $SMTP_PORT = 465;
public static $SMTP_USER = '[email protected]';
public static $SMTP_PASSWORD = 'my_password';
// Use null or ssl if required
public static $SECURITY = 'ssl';
// Mail addresses
public static $MAIL_RECIPIENT = '[email protected]';
public static $MAIL_SENDER = '[email protected]';
/*******************************************************************************************************************
* Advanced configuration
* Do not edit unless you know what you are doing
******************************************************************************************************************/
// HTTP header sent with each bot request
public static $HTTP_HEADER = 'RedisQ-Slack-Bot https://github.com/Slivo-fr/RedisQ-Slack-Bot';
// URL to redisQ
public static $REDISQ_URL = 'https://redisq.zkillboard.com/listen.php?ttw=1';
// Enable debugging behaviors
public static $DEBUG = false;
// Define running environment, use 'DEV' or 'PROD'
public static $ENV = 'PROD';
// Logs path
public static $LOG_PATH = 'var/logs/';
// Pending kills path
public static $UNPROCESSED_PATH = 'var/pending/';
// ESI base URL
public static $ESI_URL = 'https://esi.evetech.net/';
}