Import from revbank fork
This commit is contained in:
commit
30c55d21de
6 changed files with 152 additions and 0 deletions
15
bitlair_nomunnie
Normal file
15
bitlair_nomunnie
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!perl
|
||||
|
||||
use IO::Socket::IP;
|
||||
use Net::MQTT::Simple "mqtt.bitlair.nl";
|
||||
|
||||
sub command { NEXT }
|
||||
|
||||
sub hook_user_balance {
|
||||
my ($class, $user, $old, $delta, $new, $transaction_id) = @_;
|
||||
|
||||
return if $new >= -13.37;
|
||||
return if RevBank::Users::is_hidden($user);
|
||||
|
||||
publish "bitlair/bank/shame" => "NO MUNNIE?";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue