Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # góra:
- SAY_REGEX = /\Asay (?<msg>.*)\z/i
- ADMIN = "Linux_Shines"
- CHANNEL_NAME = "#wykoppl"
- # komenda:
- on :message, SAY_REGEX do |m|
- if m.user.to_s.downcase == ADMIN.downcase
- msg = SAY_REGEX.match(m.message)[:msg]
- bot.Channel(CHANNEL_NAME).msg msg
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement