forked from AcalaNetwork/faucet-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.temple.toml
70 lines (60 loc) · 1.72 KB
/
config.temple.toml
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
[storage]
[storage.redis]
url = "redis://127.0.0.1:6379"
[task]
redis = "redis://127.0.0.1:6379"
maxPendingCount = 20
[faucet]
endpoint = "ENDPOINT"
assets = ['SETM', 'SERP', 'DNAR', 'SETR', 'SETUSD']
[faucet.account]
mnemonic = "CUSTOM MNEMONIC"
[faucet.strategy]
[faucet.strategy.normal]
amounts = [
{ asset = 'SETM', amount = 3 },
{ asset = 'SERP', amount = 2 },
{ asset = 'DNAR', amount = 1 },
{ asset = 'SETR', amount = 2000 },
{ asset = 'SETUSD', amount = 2000 }
]
limit = 2
frequency = ["1", "day"]
[channel]
[channel.api]
port = 3000
limit = 2
frequency = ["1", "day"]
[channel.matrix]
token = "TEST_TOKEN"
userId = "@test-bot:matrix.org"
limit = 2
frequency = ["1", "day"]
[channel.discord]
activeChannelName = 'faucet-test-channel'
token = "TEST_TOKEN"
limit = 2
frequency = ["1", "day"]
[template]
usage = """
Usage:
!balance - Get the faucet's balance.
!drip <Address> - Send Test Tokens to <Address>.
!faucet - Prints usage information.
"""
balance = "<%= account %> The faucet has ${balance} remaining."
success = """
Sent <%= account %> <%= amount %>. [View on Subscan](https://setheum-testnet.subscan.io/extrinsic/<%= tx %>)
"""
riotSuccess = """
Sent <%= account %> <%= amount %>. <a href="https://setheum-testnet.subscan.io/extrinsic/<%= tx %>">Viewd on Subscan</a>
"""
[template.error]
"COMMON_ERROR" = "<%= account %> something error, please check your input."
"PADDING_TASK_MAX" = "Fauct is busy, please retry later."
"LIMIT" = "<%= account %> has reached their quota. Only request 2 per 1 day."
"NO_STRATEGY" = "No strategy found."
"CHECK_TX_FAILED" = "Build Extrinsic Failed"
"CHECK_LIMIT_FAILED" = "Check Limit Error"
"UPDATE_LIMIT_FAILED" = "Update Limit Error"
"INSERT_TASK_FAILED" = "Insert Task Error"