LOL!
This commit is contained in:
parent
e127a96e9e
commit
761fefc05e
1
Gemfile
1
Gemfile
|
@ -20,3 +20,4 @@ gem 'extralite' #sqlitle never wants to instawall
|
|||
gem 'emoji' #emoji bro
|
||||
gem 'time_difference' #time deltas in human readable form
|
||||
gem 'chronic'
|
||||
gem 'urban_dict'
|
||||
|
|
|
@ -47,6 +47,7 @@ GEM
|
|||
activesupport (~> 5.1)
|
||||
tzinfo (1.2.9)
|
||||
thread_safe (~> 0.1)
|
||||
urban_dict (0.0.2)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
@ -69,6 +70,7 @@ DEPENDENCIES
|
|||
rmagick
|
||||
shellwords
|
||||
time_difference
|
||||
urban_dict
|
||||
|
||||
BUNDLED WITH
|
||||
2.2.25
|
||||
2.3.5
|
||||
|
|
|
@ -223,9 +223,9 @@ module Util #utilities and such
|
|||
puts "gotta find thgat nick for #{name} in da game mayne"
|
||||
nickname = conf.find({ 'key' => 'nick', 'server' => name }).to_a[0]["val"]
|
||||
puts "here is a thing: #{nickname}"
|
||||
c.user = "botholejones"
|
||||
c.user = "bthlj0ns"
|
||||
c.nick = nickname
|
||||
c.realname = "O Shid It Dat Bot!"
|
||||
c.realname = "Comin @ Choo!"
|
||||
passwd = nil
|
||||
pass = conf.find({ 'key' => 'pass', 'server' => name })
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
moonymoonymoonymoonymoony
|
||||
moonymoonymoonymoonymoony
|
||||
moony
|
||||
moony
|
||||
moonymoonymoonymoonymoony
|
||||
moonymoonymoonymoonymoony
|
||||
moony
|
||||
moony
|
||||
moony
|
||||
moony
|
||||
moonymoonymoonymoonymoony
|
||||
moonymoonymoonymoonymoony
|
|
@ -5,9 +5,9 @@ class Circumstantial
|
|||
include Util::PluginHelper
|
||||
@clist = %w{excuse excuse-add success success-add}
|
||||
@@commands["excuse"] = ":excuse - get a random excuse"
|
||||
@@commands["add-excuse"] = ":excuse-add <excuse> - procrastinate more, bot!"
|
||||
@@commands["add-excuse"] = ":add-excuse <excuse> - procrastinate more, bot!"
|
||||
@@commands["success"] = ":success - get a random success message"
|
||||
@@commands["add-success"] = ":success-add <msg> - add a success message. be a community!"
|
||||
@@commands["add-success"] = ":add-success <msg> - add a success message. be a community!"
|
||||
@@commands["git"] = ":git - get git repo for tcpbot"
|
||||
set :prefix, /^:/
|
||||
match /excuse$/, method: :excuse
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
require 'cinch'
|
||||
require 'open-uri'
|
||||
require 'ansirc'
|
||||
require 'uri'
|
||||
require 'net/http'
|
||||
#require 'pastebinrb'
|
||||
require "prime"
|
||||
|
||||
|
||||
|
||||
require_relative '../classes/Util.rb'
|
||||
class Shortbus
|
||||
include Cinch::Plugin
|
||||
include Hooks::ACLHook
|
||||
include Util::PluginHelper
|
||||
include Util::PasteMaker
|
||||
set :prefix, /^:/
|
||||
@clist = %w{sh0rtbus}
|
||||
@@commands["sh0rtbus"] = ":sh0rtbus - GET ON THE FUCKIN BUS B RUHVVV";
|
||||
match(/(sh[0o]rt)?bus$/i, method: :bus)
|
||||
|
||||
timer 30.minutes, method: :gather_files
|
||||
|
||||
def initialize(*args)
|
||||
super
|
||||
|
||||
@files = []
|
||||
@dir = "etc/art/"
|
||||
@urirxp = URI.regexp %w(http https)
|
||||
gather_files()
|
||||
end
|
||||
|
||||
def gather_files()
|
||||
puts "GATHERING FILES WE ARE GATHERING FILES!"
|
||||
@files = Dir.glob("*", base: @dir)
|
||||
puts "sexy files #{@files.length}"
|
||||
end
|
||||
def bus(m, art)
|
||||
return;
|
||||
response = ""
|
||||
path = "#{@dir}#{art}"
|
||||
exc = Util::Util.instance.getExcuse()
|
||||
if !File.exists? path
|
||||
response << "#{m.user.nick}: #{exc} (#{art} does not appear to EXIST smfh lern2type)"
|
||||
else
|
||||
begin
|
||||
response << "%s %s\n" % [Format(:red, "Now playing: "), Format(:red, :bold, path)]
|
||||
response << File.open(path) { |file|
|
||||
file.read
|
||||
}
|
||||
rescue => e
|
||||
response = "#{m.user.nick}: #{exc}\n(THERE WAS A FUCKIN ERROR OR SOME SHIT IDK: #{e})"
|
||||
end
|
||||
end
|
||||
m.reply response
|
||||
end
|
||||
|
||||
def artspew(m)
|
||||
play_art(m,@files.sample)
|
||||
end
|
||||
|
||||
def arternets(m, url)
|
||||
#response = ""
|
||||
end
|
||||
end
|
|
@ -7,14 +7,13 @@ class SocialEyes
|
|||
include Util::PluginHelper
|
||||
def initialize(*args)
|
||||
super
|
||||
puts "WATCH ME INITIALIZE " * 500
|
||||
@responses = [
|
||||
#{ :match => /^h$/i, :response => "h" , :offset => 10 },
|
||||
#{ :match => /^yes hell?o$/, :response => "hello yes" , :offset => 10 },
|
||||
#{ :match => /^helo$/, :response => "EHLO 255.255.255.255" , :offset => 10 },
|
||||
#{ :match => /^hie$/i, :response => "hie2u2" , :offset => 10 },
|
||||
{ :match => /^same$/i, :response => "[✔] Same" , :offset => 10 },
|
||||
#{ :match => /^h(i|ello)$/i, :response => "yes helo" , :offset => 10 },
|
||||
{ :match => /^h$/i, :response => "h" , :offset => 10 },
|
||||
{ :match => /^yes hell?o$/, :response => "hello yes" , :offset => 30 },
|
||||
{ :match => /^helo$/, :response => "EHLO 255.255.255.255" , :offset => 30 },
|
||||
{ :match => /^hie$/i, :response => "hie2u2" , :offset => 30 },
|
||||
{ :match => /^same$/i, :response => "[✔] Same" , :offset => 30 },
|
||||
{ :match => /^h(i|ello)$/i, :response => "yes hello" , :offset => 30 },
|
||||
#{ :match => /ban/i, :response => "ban 0" , :offset => 10 },
|
||||
#{ :match => /^\by(a|e[as]h?)\b(?! hell?o)/i, :method => :affirm , :offset => 10 },
|
||||
#{ :match => /r(eally|ly)/i, :response => "big if tru" , :offset => 10 },
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
# encoding: utf-8
|
||||
require 'cinch'
|
||||
require_relative '../classes/Util.rb'
|
||||
require_relative '../classes/Mooks.rb'
|
||||
require "urbandict"
|
||||
|
||||
class UrDic
|
||||
include Cinch::Plugin
|
||||
include Util::PluginHelper
|
||||
set :prefix, /^:/
|
||||
@clist = %w{ud}
|
||||
@@commands["ud"] = ":ud <term> - what does the innanet know about <term>?"
|
||||
match /ud (.+)/;
|
||||
|
||||
def execute(m, phr)
|
||||
res = ""
|
||||
puts "urbandictin em"
|
||||
dfn = UrbanDictionary.define(phr)
|
||||
puts "dfn: #{dfn.inspect}";
|
||||
if(dfn.length > 0)
|
||||
res = "#{phr} - #{dfn.shift.definition}"
|
||||
else
|
||||
puts "wtf is #{phr}?????"
|
||||
res = Util::Util.instance.getExcuse()
|
||||
res << "(no definition found for #{phr})"
|
||||
end
|
||||
puts "res: #{res}"
|
||||
m.reply "#{res}"
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue