Sha256: 304c9c269bc5f84f1209b11db6dda37f54bc8c07cff84541df2a29afc872cfe6

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

require "ruboty"

module Ruboty
  module Handlers
    class Snack < Base
      OYATSU = %w(
        ๐ŸŒฐ ๐Ÿ ๐ŸŽ ๐Ÿ ๐ŸŠ ๐Ÿ‹ ๐ŸŒ ๐Ÿ‰ ๐Ÿ‡ ๐Ÿ“ ๐Ÿˆ ๐Ÿ’ ๐Ÿ‘ ๐Ÿ ๐Ÿ… 
        ๐Ÿ† ๐ŸŒฝ ๐Ÿ  ๐Ÿž ๐Ÿง€ ๐Ÿ— ๐Ÿ– ๐Ÿค ๐Ÿณ ๐ŸŸ ๐ŸŒญ ๐Ÿ• ๐Ÿ ๐ŸŒฎ ๐ŸŒฏ
        ๐Ÿœ ๐Ÿฒ ๐Ÿฅ ๐Ÿฃ ๐Ÿฑ ๐Ÿ› ๐Ÿ™ ๐Ÿš ๐Ÿ˜ ๐Ÿข ๐Ÿก ๐Ÿง ๐Ÿจ ๐Ÿฆ ๐Ÿฐ
        ๐ŸŽ‚ ๐Ÿฎ ๐Ÿฌ ๐Ÿญ ๐Ÿซ ๐Ÿฟ ๐Ÿฉ ๐Ÿช ๐Ÿ„
      )

      on(
        /ใŠ่…นใ™ใ„ใŸ\z/i,
        name: "feed_snack",
        description: "Gives you some snacks"
      )

      def feed_snack(message)
        message.reply("ใค#{OYATSU.sample}")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruboty-snack-0.1.0 lib/ruboty/handlers/snack.rb