forked from delta1512/GRC-Wallet-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.py
119 lines (95 loc) · 3.15 KB
/
docs.py
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import grcconf as g
import emotes as e
hlp = '''```
Type %help [topic] for more detailed information about the following:
- new
- balance
- withdraw
- donate
- rdonate
- give
- faucet
- qr
- status
- info
```'''
new = '''```
Create an new account: %new
An account is required to use the bot. (No personal details required)
```'''
bal = '''```
Balance: %bal, %balance
Checks your current balance and shows your deposit address.
To get a clipboard friendly address, use %addr.
Deposits should arrive within 5 minutes of a transaction taking place.
If the bot is offline, you are still safe to make deposits.
```'''
wdr = '''```
Withdraw your funds: %wdr, %withdraw, %send
Format: %wdr [address to send to] [amount-GRC]
Takes your GRC out of the bot's wallet.
Fee for withdraw is {} GRC and is automatically deducted.
If you wish to transfer to another user, use %give instead.
```'''.format(g.tx_fee)
donate = '''```
Donate to someone: %donate
Format: %donate [selection no.] [amount-GRC]
A list of possible donation addresses to encourage generosity.
Choose a number from the list of selections and then the amount to donate.
```'''
rdonate = '''```
Donate to a random contributor: %rdonate
Format: %rdonate [amount-GRC]
Same as %donate but a random person on the bot's donation list is chosen for you.
```'''
give = '''```
Give funds to another user: %give
Format: %give [discord mention of user] [amount-GRC]
Give some GRC to another person within the server. (no fees apply)
Requires the mentioned user to also have an account with the bot through %new.
```'''
faucet = '''```
Get some free GRC: %faucet
Type this command to get some free Gridcoins.
Amounts are random and you can only request once per {} hours.
To help fund the faucet, you can type `%fgive [amount-GRC]`.
```'''.format(g.FCT_REQ_LIM)
qr = '''```
Generate a QR code: %qr
Format: %qr [optional data]
Generates a qr code. If no data is given, it will send a QR code of your
wallet address. Any data given must contain no spaces.
```'''
status = '''```
Bot and network status: %status
```'''
info_help = '''```
Info about author and this bot: %info
```'''
info = '''
**This bot is the original work of Delta and various contributors.**
The source code for the bot can be found here: https://github.com/delta1512/GRC-Wallet-Bot
If there are any problems, glitches or crashes, please notify me or the contributors below as soon as possible. Any queries can be sent to `[email protected]`.
Notable mentions:
- Jorkermc https://github.com/jorkermc
- Foxifi
'''
help_dict = {
'default' : hlp,
'new' : new,
'balance' : bal,
'withdraw' : wdr,
'donate' : donate,
'rdonate' : rdonate,
'give' : give,
'faucet' : faucet,
'qr' : qr,
'status' : status,
'info' : info_help
}
faucetmsg = '''
The faucet currently contains `{} GRC` and has a timeout of {} hours.
Donate GRC to this address `{}`
or type `%fgive [amount-GRC]` to help refill the faucet
'''
PM_msg = '{} The bot cannot process this command through private messages.'.format(e.CANNOT)