-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.sample.php
61 lines (49 loc) · 2.42 KB
/
config.sample.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
<?php
return array(
// set this to either 'discord', 'raw' (output in CLI) or 'rocketchat'
'client' => 'raw',
// Root domain of your Rocket Chat installation.
'host' => 'https://open.rocket.chat',
// The token generated by Rocket.Chat. Info on obtaining this is located in README.md.
'token' => 'InsertYourToken',
// Discord specific
'discord_webhook_url' => 'https://discordapp.com/api/webhooks/XXX',
// The user(s) that will be mentioned by the bot each time a message is triggered. Spaces can be used to separate users.
'mention' => '@example',
// VAT percentage for EU customers. This is displayed as x% MwSt by thWe bot and a calculated price (price of server + VAT) will be displayed by the bot. Dutch BTW 21%.
// Reference for VAT rates: https://www.ricksteves.com/travel-tips/money/vat-rates-in-europe
// BOTH of these conditions MUST be fulfilled by a server in order for you to be notified.
'vat' => 21,
// ALL filter MUST be fulfilled by a server in order for you to be notified.
'filter' => [
/**
* here you can configure all filter which will be applied on the Hetzner response.
* You can use all fields which are in the main server-object (exact names needed as array key) e.g.:
* - cpu_benchmark
* - is_ecc
* - hdd_size
* - hdd_count
* (see Hetzner response for more fields)
*
* available operators:
* - ">=" (greater equals)
* - "<=" (less equals)
* - "==" (equals) - needed for bool comparison (see example below)
*
* Examples:
*
* 'hdd_size' => ['amount' => 2048, 'operator' => '<='],
* 'is_ecc' => ['bool' => true, 'operator' => '=='],
*/
//Maximum price for a server in the auction that you wish to be notified of. Price is in Euros (€).
'price' => ['amount' => 30, 'operator' => '<='],
//Minimum amount of RAM (in GB) a server must have in order for you to be notified.
'ram' => ['amount' => 1, 'operator' => '>='],
],
// Maximum amount of new servers to show. SETTING THIS VALUE TOO HIGH WILL CAUSE HIGH CPU USAGE ON THE ROCKET.CHAT CLIENT AND SERVER!
'max_list' => 10,
// Whether you wish to give credit to me (the creator of this script) via a small footer in each message sent by the bot.
'thanks' => true,
// Caching on/off
'cache' => true
);