Sha256: f006080f8d233d95cd559b5535cc1af13d78ae43e76402267e0d4ec0aaaf8dd1
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 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.2 | lib/ruboty/handlers/snack.rb |