require "ruboty" module Ruboty module Handlers class Snack < Base OYATSU = %w( ๐ŸŒฐ ๐Ÿ ๐ŸŽ ๐Ÿ ๐ŸŠ ๐Ÿ‹ ๐ŸŒ ๐Ÿ‰ ๐Ÿ‡ ๐Ÿ“ ๐Ÿˆ ๐Ÿ’ ๐Ÿ‘ ๐Ÿ ๐Ÿ… ๐Ÿ† ๐ŸŒฝ ๐Ÿ  ๐Ÿž ๐Ÿง€ ๐Ÿ— ๐Ÿ– ๐Ÿค ๐Ÿณ ๐ŸŸ ๐ŸŒญ ๐Ÿ• ๐Ÿ ๐ŸŒฎ ๐ŸŒฏ ๐Ÿœ ๐Ÿฒ ๐Ÿฅ ๐Ÿฃ ๐Ÿฑ ๐Ÿ› ๐Ÿ™ ๐Ÿš ๐Ÿ˜ ๐Ÿข ๐Ÿก ๐Ÿง ๐Ÿจ ๐Ÿฆ ๐Ÿฐ ๐ŸŽ‚ ๐Ÿฎ ๐Ÿฌ ๐Ÿญ ๐Ÿซ ๐Ÿฟ ๐Ÿฉ ๐Ÿช ๐Ÿ„ ) on( /ใŠ่…น(?.+)/, name: "feed_snack", description: "Gives you some snacks" ) def feed_snack(message) oyatsu = case message[:status] when /ใ™ใ„/, /็ฉบ/, /ใธใฃ/, /ๆธ›/, /ใ™ใ/, /ใƒšใ‚ณใƒšใ‚ณ/, /ใบใ“ใบใ“/ OYATSU.sample when /็—›ใ„/, /ใ„ใŸใ„/ "๐Ÿ’Š" when /ใ„ใฃใฑใ„/, /ใฑใ‚“ใฑใ‚“/, /ใƒ‘ใƒณใƒ‘ใƒณ/, /ใ/, /่‹ฆ/ "โ˜•" end message.reply("ใค#{oyatsu}") end end end end