lambdabot-4.3: src/Lambdabot/Plugin/OEIS.hs
-- | Look up sequences in the Online Encyclopedia of Integer Sequences
-- Based on the Math.OEIS library
module Lambdabot.Plugin.OEIS (theModule) where
import Lambdabot.Plugin
import Math.OEIS
theModule :: Module ()
theModule = newModule
{ moduleCmds = return
[ (command "oeis")
{ aliases = ["sequence"]
, help = say "oeis <sequence>. Look up a sequence in the Online Encyclopedia of Integer Sequences"
, process = ios80 . fmap concat . lookupOEIS
}
]
}