Skip to content

Commit

Permalink
Allow changing messages per second in config
Browse files Browse the repository at this point in the history
  • Loading branch information
daBrado committed Aug 26, 2013
1 parent 4c9425c commit af046d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/irc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize bridge
c.server = Config::IRC::SERVER
c.port = Config::IRC::PORT
c.channels = Config::IRC::CHANNELS
c.messages_per_second = Config::IRC::MESG_PER_SECOND
end
@bot.on :private, //, self do |m, irc|
irc.received m, m.params[1] if m.command == "PRIVMSG"
Expand Down
1 change: 1 addition & 0 deletions share/config.schema
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module IRC
CHANNELS ||= []
CMDPREFIX ||= "!"
MSGFORMAT ||= "%{src} :: %{msg}"
MESG_PER_SECOND ||= 0.7
end
module Server
PATH ||= "/run/ircnotify/#{IRC::NICK}"
Expand Down

0 comments on commit af046d3

Please sign in to comment.