rename Ideaas to Ideas, fix listen for Markovian

This commit is contained in:
oz modic 2016-07-27 15:57:15 -05:00
parent 5aba27d95b
commit 750b8b6f50
2 changed files with 62 additions and 1 deletions

60
Ideas/RainbowPuke.rb Normal file
View File

@ -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

View File

@ -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)