Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'cinch'
- require 'ruby_cowsay'
- require 'open-uri'
- require 'nokogiri'
- kekbot = CinchBot.new do
- configure do c
- c.server = irc.rizon.net
- c.port = 6660
- c.nick = kekbot
- c.channels = [#homescreen]
- end
- on message, ^.g (.+) do m, query
- begin
- search_l = query.split( )
- search = search_l.join(+)
- srch_pg = NokogiriHTML(open('httpwww.google.comsearchq='.concat(search)))
- out = Result for #{query}n
- link = srch_pg.css('h3 a')[0]['href']
- 7.times { link[0] = }
- link_splt = link.split(&sa)
- out.concat(link_splt.first)
- m.reply(out)
- rescue
- m.reply(No results found!)
- end
- end
- on message, ye do m
- m.reply YEEZY YEEZY WHATS GOOD
- m.reply ITS YA BOI MAX B
- end
- on message, yeezy do m
- m.reply YEEZY YEEZY WHATS GOOD
- end
- on message, yeezus do m
- m.reply JUST ROSE AGAIN
- end
- on message, [4][2][0] do m
- m.reply blaze it fegit
- end
- on message, .pomf do m
- m.reply O C==3
- m.reply OC==3
- m.reply C==3
- m.reply C=3
- m.reply C3
- m.reply 3
- end
- on message, [Nn][Aa][Vv][Yy] do m
- m.reply What the fuck did you just fucking say about me, you little bitch
- end
- on message, linux do m
- if rand(5) == 1
- m.reply I'd just like to interject for a moment.
- m.reply What you’re referring to as Linux, is in fact, GNULinux, or as I’ve recently taken to calling it, GNU + Linux.
- end
- end
- on message, [Mm][Aa][Kk][Ii] do m
- m.reply 5 Cute Facts About Maki
- m.reply - She's a girl!
- m.reply - She's a tomato!
- m.reply - I love her!!!
- m.reply - MAKI!!!!!!!!!
- end
- on message, ayy do m
- m.reply lmao
- end
- on message, o shit do m
- m.reply waddup
- end
- on message, dude do m
- m.reply weed lmao
- end
- on message, lok do m
- m.reply lol
- end
- on message, do m
- m.reply
- end
- on message, meme do m
- m.reply i love memes!
- end
- on message, ^) do m
- m.reply ^^^)
- end
- on message, ^.cowsay (.+) do m, say
- m.reply Cow.new.say(say)
- end
- on message, ^.eat (.+) do m, target
- m.channel.action(eats .concat(target))
- end
- on message, ^.rwb (.+) do m, words
- out =
- col = 0
- w_arr = words.split( )
- w_arr.each do word
- if col == 0
- out.concat(Format(red, word).concat( ))
- end
- if col == 1
- out.concat(Format(white, word).concat( ))
- end
- if col == 2
- out.concat(Format(blue, word).concat( ))
- col = 0
- else
- col = col + 1
- end
- end
- m.reply(out)
- end
- on message, ^.rwg (.+) do m, words
- out =
- col = 0
- w_arr = words.split( )
- w_arr.each do word
- if col == 0
- out.concat(Format(red, word).concat( ))
- end
- if col == 1
- out.concat(Format(white, word).concat( ))
- end
- if col == 2
- out.concat(Format(green, word).concat( ))
- col = 0
- else
- col = col + 1
- end
- end
- m.reply(out)
- end
- on message, ^.meme (.+) do m, meme
- meme_list = meme.split()
- meme_spaced = meme_list.join( )
- m.reply(meme_spaced)
- for i in 1..meme.length do
- m.reply(meme[i])
- end
- end
- on message, ^.shill (.+) do m, amd
- m.reply(amd.upcase.concat(!!!))
- m.reply(amd.upcase.concat(!!!))
- m.reply(amd.upcase.concat(!!!))
- end
- on message, .part do m
- m.channel.part()
- end
- end
- kekbot.start
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- require 'cinch'
- require 'ruby_cowsay'
- require 'open-uri'
- require 'nokogiri'
- kekbot = CinchBot.new do
- configure do c
- c.server = zozzle.info
- c.port = 16000
- c.user = kekbot
- c.password = iamabot
- c.nick = kekbot
- c.channels = [#homescreen, #ensorcell]
- end
- on message, ^.g (.+) do m, query
- begin
- search_l = query.split( )
- search = search_l.join(+)
- srch_pg = NokogiriHTML(open('httpwww.google.comsearchq='.concat(search)))
- out = Result for #{query}n
- link = srch_pg.css('h3 a')[0]['href']
- 7.times { link[0] = }
- link_splt = link.split(&sa)
- out.concat(link_splt.first)
- m.reply(out)
- rescue
- m.reply(No results found!)
- end
- end
- on message, ye do m
- m.reply YEEZY YEEZY WHATS GOOD
- m.reply ITS YA BOI MAX B
- end
- on message, yeezy do m
- m.reply YEEZY YEEZY WHATS GOOD
- end
- on message, yeezus do m
- m.reply JUST ROSE AGAIN
- end
- on message, [4][2][0] do m
- m.reply blaze it fegit
- end
- on message, .pomf do m
- m.reply O C==3
- m.reply OC==3
- m.reply C==3
- m.reply C=3
- m.reply C3
- m.reply 3
- end
- on message, [Nn][Aa][Vv][Yy] do m
- m.reply What the fuck did you just fucking say about me, you little bitch
- end
- on message, linux do m
- if rand(5) == 1
- m.reply I'd just like to interject for a moment.
- m.reply What you’re referring to as Linux, is in fact, GNULinux, or as I’ve recently taken to calling it, GNU + Linux.
- end
- end
- on message, [Mm][Aa][Kk][Ii] do m
- m.reply 5 Cute Facts About Maki
- m.reply - She's a girl!
- m.reply - She's a tomato!
- m.reply - I love her!!!
- m.reply - MAKI!!!!!!!!!
- end
- on message, ayy do m
- m.reply lmao
- end
- on message, o shit do m
- m.reply waddup
- end
- on message, dude do m
- m.reply weed lmao
- end
- on message, lok do m
- m.reply lol
- end
- on message, do m
- m.reply
- end
- on message, meme do m
- m.reply i love memes!
- end
- on message, ^) do m
- m.reply ^^^)
- end
- on message, ^.cowsay (.+) do m, say
- m.reply Cow.new.say(say)
- end
- on message, ^.eat (.+) do m, target
- m.channel.action(eats .concat(target))
- end
- on message, ^.rwb (.+) do m, words
- out =
- col = 0
- w_arr = words.split( )
- w_arr.each do word
- if col == 0
- out.concat(Format(red, word).concat( ))
- end
- if col == 1
- out.concat(Format(white, word).concat( ))
- end
- if col == 2
- out.concat(Format(blue, word).concat( ))
- col = 0
- else
- col = col + 1
- end
- end
- m.reply(out)
- end
- on message, ^.rwg (.+) do m, words
- out =
- col = 0
- w_arr = words.split( )
- w_arr.each do word
- if col == 0
- out.concat(Format(red, word).concat( ))
- end
- if col == 1
- out.concat(Format(white, word).concat( ))
- end
- if col == 2
- out.concat(Format(green, word).concat( ))
- col = 0
- else
- col = col + 1
- end
- end
- m.reply(out)
- end
- on message, ^.meme (.+) do m, meme
- meme_list = meme.split()
- meme_spaced = meme_list.join( )
- m.reply(meme_spaced)
- for i in 1..meme.length do
- m.reply(meme[i])
- end
- end
- on message, ^.shill (.+) do m, amd
- m.reply(amd.upcase.concat(!!!))
- m.reply(amd.upcase.concat(!!!))
- m.reply(amd.upcase.concat(!!!))
- end
- on message, .part do m
- m.channel.part()
- end
- end
- kekbot.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement