tipjar 0.1.194 → 0.1.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/bitbot/plugin/balance.rb +1 -1
- data/lib/bitbot/plugin/deposit.rb +1 -1
- data/lib/bitbot/plugin/tip.rb +3 -3
- data/lib/bitbot/plugin/withdraw.rb +1 -1
- data/tipjar.gemspec +1 -1
- metadata +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
module Bitbot::Balance
|
2
2
|
def on_balance(m)
|
3
|
-
user_id = db.get_or_create_user_id_for_username(m.user.
|
3
|
+
user_id = db.get_or_create_user_id_for_username(m.user.user)
|
4
4
|
m.reply "Your current balance is #{satoshi_with_usd(db.get_balance_for_user_id(user_id))}"
|
5
5
|
m.reply "Please note that a transaction fee of #{satoshi_to_str(withdrawal_fee)} will be added to your withdrawal"
|
6
6
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Bitbot::Deposit
|
2
2
|
def on_deposit(m, create = true)
|
3
|
-
user_id = db.get_or_create_user_id_for_username(m.user.
|
3
|
+
user_id = db.get_or_create_user_id_for_username(m.user.user)
|
4
4
|
|
5
5
|
unless cached_addresses
|
6
6
|
m.reply "Sorry, TipJar is initializing its database. Please try again in a minute."
|
data/lib/bitbot/plugin/tip.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Bitbot::Tip
|
4
4
|
def on_tip(m, recipient, amount, message)
|
5
5
|
# Look up sender
|
6
|
-
user_id = db.get_or_create_user_id_for_username(m.user.
|
6
|
+
user_id = db.get_or_create_user_id_for_username(m.user.user)
|
7
7
|
|
8
8
|
# Look up recipient
|
9
9
|
recipient_ircuser = m.channel.users.keys.find {|u| u.name == recipient }
|
@@ -30,7 +30,7 @@ module Bitbot::Tip
|
|
30
30
|
|
31
31
|
# Success! Let the room know...
|
32
32
|
m.reply "[✔] Verified: ".irc(:grey).irc(:bold) +
|
33
|
-
m.user.
|
33
|
+
m.user.user.irc(:bold) +
|
34
34
|
" ➜ ".irc(:grey) +
|
35
35
|
satoshi_with_usd(satoshi) +
|
36
36
|
" ➜ ".irc(:grey) +
|
@@ -47,7 +47,7 @@ module Bitbot::Tip
|
|
47
47
|
"."
|
48
48
|
|
49
49
|
# ... and let the recipient know privately.
|
50
|
-
recipient_ircuser.msg m.user.
|
50
|
+
recipient_ircuser.msg m.user.user.irc(:bold) +
|
51
51
|
" just sent you " +
|
52
52
|
satoshi_with_usd(satoshi) +
|
53
53
|
" in " +
|
@@ -4,7 +4,7 @@ module Bitbot::Withdraw
|
|
4
4
|
satoshi = str_to_satoshi($1)
|
5
5
|
address = $2
|
6
6
|
|
7
|
-
user_id = db.get_or_create_user_id_for_username(m.user.
|
7
|
+
user_id = db.get_or_create_user_id_for_username(m.user.user)
|
8
8
|
|
9
9
|
# Perform the local transaction in the database. Note that we
|
10
10
|
# don't do the blockchain update in the transaction, because we
|
data/tipjar.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{tipjar}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.195"
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ["WeirdThall", "Zach Wily"]
|
8
8
|
s.email = ["weirdthall@gmail.com", "zach@zwily.com"]
|