rename Ideaas to Ideas, fix listen for Markovian
This commit is contained in:
parent
5aba27d95b
commit
750b8b6f50
|
@ -0,0 +1,60 @@
|
|||
require 'cinch'
|
||||
require_relative '../classes/Util.rb'
|
||||
class RainbowPuke
|
||||
include Cinch::Plugin
|
||||
include Util::PluginHelper
|
||||
#@clist = %w{fuck}
|
||||
#@@commands["fuck"] = ":fuck <text>: your mom"
|
||||
set :prefix, /^:/
|
||||
#match /fuck (.*)$/, method: :fuck
|
||||
#match /transform :([\w\d]+) (.+)$/, method: :transform,
|
||||
@keycodes = {
|
||||
:color => 3,
|
||||
:bold => 2,
|
||||
:italic => 29,
|
||||
:bold => 31,
|
||||
:reverse => 22,
|
||||
:reset => 15
|
||||
}
|
||||
@colors => [
|
||||
:white,
|
||||
:black,
|
||||
:blue,
|
||||
:green,
|
||||
:red,
|
||||
:brown,
|
||||
:purple,
|
||||
:orange,
|
||||
:yellow,
|
||||
:lime,
|
||||
:teal,
|
||||
:cyan,
|
||||
:light-blue,
|
||||
:pink,
|
||||
:grey,
|
||||
:light-grey
|
||||
}
|
||||
@formats => {
|
||||
:fgcolor => [:color, :random_color, ",", :random_color]
|
||||
}
|
||||
#def process(template,variables)
|
||||
# content = variables[:text]
|
||||
# map = {
|
||||
# :color => @keycodes[:color],
|
||||
# :randomcolor => makeRandom
|
||||
#@templates = {
|
||||
# :color => [:color, :randomcolor, :comma, :randomcolor, :text, :
|
||||
#def github (m)
|
||||
# m.reply "http://github.com/8dx/extendobot"
|
||||
|
||||
def fuck(m, text)
|
||||
#uhh do stuff here
|
||||
end
|
||||
|
||||
def transform(m, transformation, text)
|
||||
#txt = process(transformation.to_sym, text)
|
||||
#m.reply(txt)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -9,8 +9,9 @@ class Markovian
|
|||
set :prefix, /^:/
|
||||
@clist = %w{markov}
|
||||
@@commands["markov"] = ":markov <length> <seed>- generates a markov chain of <length> words, starting with optional word <seed>"
|
||||
match /markov (\d+)( \w+)?/, method: :markov
|
||||
match /markov$/, method: :markov
|
||||
match /markov (\w+)/, method: :markov
|
||||
match /markov (\w+) (\d+)/, method: :markov
|
||||
listen_to :channel
|
||||
|
||||
def listen(m)
|
||||
|
|
Loading…
Reference in New Issue