tipjar 0.1.191 → 0.1.192
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/common.rb +1 -1
- data/lib/bitbot/plugin/deposit.rb +1 -1
- data/lib/bitbot/plugin/tip.rb +1 -1
- 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.nick)
|
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
|
data/lib/bitbot/plugin/common.rb
CHANGED
@@ -111,7 +111,7 @@ module Bitbot::Common
|
|
111
111
|
btc_str = btc_str.irc(:green)
|
112
112
|
end
|
113
113
|
|
114
|
-
usd_str = "[".irc(:grey) + satoshi_to_usd(satoshi).irc(:
|
114
|
+
usd_str = "[".irc(:grey) + satoshi_to_usd(satoshi).irc(:white) + "]".irc(:grey)
|
115
115
|
|
116
116
|
"#{btc_str} #{usd_str}"
|
117
117
|
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.nick)
|
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.nick)
|
7
7
|
|
8
8
|
# Look up recipient
|
9
9
|
recipient_ircuser = m.channel.users.keys.find {|u| u.name == recipient }
|
@@ -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.nick)
|
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.192"
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ["WeirdThall", "Zach Wily"]
|
8
8
|
s.email = ["weirdthall@gmail.com", "zach@zwily.com"]
|