Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Fixed bug with new @command (replies went to first user only)
Browse files Browse the repository at this point in the history
Made !merlin better
  • Loading branch information
mutewinter committed Jun 3, 2011
1 parent 73a580b commit c95fad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands.rb
Expand Up @@ -403,7 +403,7 @@ def command_merlin(args = [])
end

def command_drphil(args = [])
chat("From the wise Mr. Mann: \"#{$drphil.random}\".")
chat("\"#{$drphil.random}\"")
end

def command_sandy(args = [])
Expand Down
4 changes: 2 additions & 2 deletions showbot.rb
Expand Up @@ -34,15 +34,15 @@ def bot_start

on :message, /^!(.+?)(?:$|\s)(.*?)\s*(\d*|next)$/ do |m, command, arg1, arg2|

@commands ||= Commands.new(m, $shows)
commands ||= Commands.new(m, $shows)

args = []

args.push arg1 if arg1 and arg1.strip != ""
args.push arg2 if arg2 and arg1.strip != ""

# Call the method in Commands via method_missing
@commands.run(command, args)
commands.run(command, args)
end
end
bot.start
Expand Down

0 comments on commit c95fad7

Please sign in to comment.