Sha256: ce914c12b1cfbe76e05b027b88cded08e2b9677935d00bc09e6ee5761e39d5ca
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
require "ruboty" module Ruboty module Handlers class Snack < Base OYATSU = %w( ๐ฐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฝ ๐ ๐ ๐ง ๐ ๐ ๐ค ๐ณ ๐ ๐ญ ๐ ๐ ๐ฎ ๐ฏ ๐ ๐ฒ ๐ฅ ๐ฃ ๐ฑ ๐ ๐ ๐ ๐ ๐ข ๐ก ๐ง ๐จ ๐ฆ ๐ฐ ๐ ๐ฎ ๐ฌ ๐ญ ๐ซ ๐ฟ ๐ฉ ๐ช ๐ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ถ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ฅ ๐ ๐ฅ ๐ฅ ๐ฅ ) on( /ใ่ น(?<status>.+)/, name: "feed", description: "Gives you some snacks" ) on( /(harahe|ใฏใใธ|ใใฉใธ|๏พ๏พ๏พ|ใใฉใ)/, name: "feed_snack", description: "Gives you some snacks" ) def feed(message) esa = case message[:status] when /ใใ/, /็ฉบ/, /ใธใฃ/, /ๆธ/, /ใใ/, /ใใณใใณ/, /ใบใใบใ/ oyatsu when /็ใ/, /ใใใ/ "๐" when /ใใฃใฑใ/, /ใฑใใฑใ/, /ใใณใใณ/, /ใ/, /่ฆ/ "โ" end message.reply("ใค#{esa}") end def feed_snack(message) message.reply("ใค#{oyatsu}") end private def oyatsu OYATSU.sample end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruboty-snack-0.2.3 | lib/ruboty/handlers/snack.rb |