Compare commits
2 commits
224fba34bb
...
dae2a45710
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dae2a45710 | ||
![]() |
e294fcf762 |
2 changed files with 7 additions and 4 deletions
|
@ -2,14 +2,17 @@
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* lua
|
* lua >= 5.3
|
||||||
* curl
|
* curl
|
||||||
* sed
|
* sed
|
||||||
* date
|
* date
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
c4mate [-u <user>] [ <query> | -b <id> | -l | +/-<amount> | -g <amount> <user> [<reason>]]
|
If no username is given via the "-u" command line flag, c4mate will use the
|
||||||
|
value of the $USER environment variable as username.
|
||||||
|
|
||||||
|
Usage: c4mate [-u <user>] [ <query> | -b <id> | -l | +/-<amount> | -g <amount> <user> [<reason>]]
|
||||||
Display current balance:
|
Display current balance:
|
||||||
c4mate
|
c4mate
|
||||||
Find and buy item (interactive):
|
Find and buy item (interactive):
|
||||||
|
|
4
c4mate
4
c4mate
|
@ -189,8 +189,8 @@ function MatePad:print_log(log)
|
||||||
event = log[i]
|
event = log[i]
|
||||||
if event.method == "buy" or event.method == "recharge" then
|
if event.method == "buy" or event.method == "recharge" then
|
||||||
print(string.format(
|
print(string.format(
|
||||||
"[%s] Bought %s",
|
"[%s] Bought %s (#%d)",
|
||||||
event.time, event.name
|
event.time, event.name, event.parameter
|
||||||
))
|
))
|
||||||
elseif event.method == "set_balance" then
|
elseif event.method == "set_balance" then
|
||||||
print(string.format(
|
print(string.format(
|
||||||
|
|
Loading…
Add table
Reference in a new issue