commit 158def302a50bfc8b45f507641c367bf0f66e286 from: mischa date: Wed Jan 01 13:25:49 2025 UTC change prices for 2025 commit - 1f7cf7d9e59ba11fd7e5bb3263ec34c8c2572ee7 commit + 158def302a50bfc8b45f507641c367bf0f66e286 blob - 742dcbd0e25c5d57f81bb42ba565a89c3bbee0fa blob + b44b2586a31bc923744aa62285e93254c1c888c2 --- notify.pl +++ notify.pl @@ -20,6 +20,8 @@ # 2022/11/13 added price structure for notifications # 2023/05/05 variable clean up, rework IP logic # 2023/12/03 price increase, +3 +# 2024/09/02 long term users thanx (longterm) +# 2024/12/23 price increase, +2 # use 5.024; use strict; @@ -41,7 +43,7 @@ if ($function_variable =~ m/.txt/) { } # define the prices for the different components of the VM -my $base_price = '67'; +my $base_price = '69'; my %memory_prices = ('2G' => '10', '4G' => '30', '8G' => '70'); my %hdd_prices = ('50G' => '50', '100G' => '100', '150G' => '150', '200G' => '200'); my $ideal_url; @@ -49,15 +51,15 @@ my $paypal_url; my %stripe_urls = ( 'sponsor' => 'SPONSORED', 'sponsored' => 'SPONSORED', - '47' => 'https://buy.stripe.com/28odR0aWK0jq0aAeV0', - '67' => 'https://buy.stripe.com/8wMaEO0i67LS1eE288', - '77' => 'https://buy.stripe.com/aEU5kuc0Ofek4qQ001', - '97' => 'https://buy.stripe.com/3cs28i6GuaY4f5ueUZ', - '117' => 'https://buy.stripe.com/14k00ae8W2ryg9y28a', - '127' => 'https://buy.stripe.com/cN2fZ81mac28g9ydQT', - '147' => 'https://buy.stripe.com/cN214ec0O1nuf5u6ow', - '277' => 'https://buy.stripe.com/28o5kuaWK6HO3mMeV8', - '337' => 'https://buy.stripe.com/9AQfZ80i6gio8H64gq', + '49' => 'https://buy.stripe.com/28odR0aWK0jq0aAeV0', + '69' => 'https://buy.stripe.com/8wMaEO0i67LS1eE288', + '79' => 'https://buy.stripe.com/aEU5kuc0Ofek4qQ001', + '99' => 'https://buy.stripe.com/3cs28i6GuaY4f5ueUZ', + '119' => 'https://buy.stripe.com/14k00ae8W2ryg9y28a', + '129' => 'https://buy.stripe.com/cN2fZ81mac28g9ydQT', + '149' => 'https://buy.stripe.com/cN214ec0O1nuf5u6ow', + '279' => 'https://buy.stripe.com/28o5kuaWK6HO3mMeV8', + '339' => 'https://buy.stripe.com/9AQfZ80i6gio8H64gq', ); # fuction to parse _deploy.conf and vm*.txt files @@ -223,7 +225,7 @@ my @files = glob "$conf{'conf'}{'VMS'}/*.txt"; if ($function =~ /notify/) { mailout(\%conf, \%vms); -} elsif ($function =~ /(deployed|redeployed|cpu|msg|thanx)/ and $function_variable !~ /empty/) { +} elsif ($function =~ /(deployed|redeployed|cpu|msg|thanx|longterm)/ and $function_variable !~ /empty/) { my %slice = %vms{$function_variable}; mailout(\%conf, \%slice); } elsif ($function =~ /(renewal|subscription|deprovision)/) { @@ -252,5 +254,5 @@ if ($function =~ /notify/) { } mailout(\%conf, \%vms); } else { - print "usage: " . basename($0) . " [stopped | renewal | notify | deprovision] | [deployed | redeployed | cpu | msg | thanx] \n"; + print "usage: " . basename($0) . " [stopped | renewal | notify | deprovision] | [deployed | redeployed | cpu | msg | thanx | longterm ] \n"; }