-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
406 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea/ | ||
/vendor/ | ||
logs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,72 @@ | ||
<?php | ||
|
||
namespace Killbot; | ||
|
||
class Settings { | ||
|
||
/******************************************************************************************************************* | ||
* Basic configuration | ||
* Should be enough to get your bot running. | ||
* Dont forget to setup a cronjob executing cron.php every $MAX_RUN_TIME + a small offset | ||
******************************************************************************************************************/ | ||
|
||
// Slack webhook URL | ||
public static $SLACK_HOOK = 'https://hooks.slack.com/services/ABC/DEF/GHI'; | ||
|
||
// 4 minutes default max run time | ||
public static $MAX_RUN_TIME = 4 * 60; | ||
|
||
// Entities you want to display killmails for | ||
public static $WATCHED_ENTITIES = [ | ||
'corporations' => [ | ||
123456, | ||
1324567 | ||
], | ||
'alliances' => [ | ||
13245678 | ||
], | ||
'systems' => [ | ||
30003504 | ||
] | ||
]; | ||
|
||
/******************************************************************************************************************* | ||
* Mail settings | ||
* Allow script to send mail alert when something goes wrong | ||
******************************************************************************************************************/ | ||
|
||
// Enable sending mails | ||
public static $SEND_MAIL = true; | ||
|
||
// 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; | ||
|
||
// Folder name for json logs | ||
public static $KILL_LOG_FOLDER = 'logs'; | ||
|
||
// ESI base URL | ||
public static $ESI_URL = 'https://esi.tech.ccp.is/latest'; | ||
} | ||
<?php | ||
|
||
namespace Killbot; | ||
|
||
class Settings { | ||
|
||
/******************************************************************************************************************* | ||
* Basic configuration | ||
* Should be enough to get your bot running. | ||
* Dont forget to setup a cronjob executing cron.php every $MAX_RUN_TIME + a small offset | ||
******************************************************************************************************************/ | ||
|
||
// Slack webhook URL | ||
public static $SLACK_HOOK = 'https://hooks.slack.com/services/ABC/DEF/GHI'; | ||
|
||
// 4 minutes default max run time | ||
public static $MAX_RUN_TIME = 4 * 60; | ||
|
||
// Entities you want to display killmails for | ||
public static $WATCHED_ENTITIES = [ | ||
'corporations' => [ | ||
123456, | ||
1324567 | ||
], | ||
'alliances' => [ | ||
13245678 | ||
], | ||
'systems' => [ | ||
30003504 | ||
] | ||
]; | ||
|
||
/******************************************************************************************************************* | ||
* Mail settings | ||
* Allow script to send mail alert when something goes wrong | ||
******************************************************************************************************************/ | ||
|
||
// Enable sending mails | ||
public static $SEND_MAIL = true; | ||
|
||
// 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; | ||
|
||
// Folder name for json logs | ||
public static $KILL_LOG_FOLDER = 'logs'; | ||
|
||
// ESI base URL | ||
public static $ESI_URL = 'https://esi.tech.ccp.is/';} |
Oops, something went wrong.