diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-07 12:59:32 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-07 12:59:32 +0000 |
commit | fc53135ae5098d9c6b261a03b65d44db8d035724 (patch) | |
tree | d47cba03f65e51b2504ee9bd17912f71797aaca5 /data/rbot | |
parent | 728d83c720089c552e91fffad9c38d8793e6efe1 (diff) |
wheelfortune: some work on presentation
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/games/wheelfortune.rb | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index e8853cc6..e818a7c6 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -266,7 +266,14 @@ class WheelOfFortune < Plugin return end - @bot.say chan, qa.announcement + @bot.say chan, _("%{bold}%{color}%{name}%{bold}, round %{count}:%{nocolor} %{qa}") % { + :bold => Bold, + :color => Irc.color(:green), + :name => game.name, + :count => game.round, + :nocolor => Irc.color(), + :qa => qa.announcement, + } game.running = true end @@ -313,13 +320,24 @@ class WheelOfFortune < Plugin } if want_more == :done # max score reached - m.reply _("%{who} wins the game after %{count} rounds!") % { + m.reply _("%{bold}%{color}%{name}%{bold}%{nocolor}: %{who} %{bold}wins%{bold} after %{count} rounds!\nThe final score is") % { + :bold => Bold, + :color => Irc.color(:green), :who => m.sourcenick, - :count => game.round + :name => game.name, + :count => game.round, + :nocolor => Irc.color() } score_table(m.channel, game) @games.delete(ch) else :more + m.reply _("%{bold}%{color}%{name}%{bold}, round %{count}%{nocolor} -- score so far:") % { + :bold => Bold, + :color => Irc.color(:green), + :name => game.name, + :count => game.round, + :nocolor => Irc.color() + } score_table(m.channel, game) announce(m, :next => true) end |