openra-irc_bot 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/VERSION +1 -1
- data/config/dictionaries/wee_man.yml +26 -0
- data/lib/openra/irc_bot/plugins/pinkman.rb +15 -0
- data/lib/openra/irc_bot/plugins/wee_man.rb +44 -0
- data/lib/openra/irc_bot/plugins.rb +2 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64ed3302ed56f480ff54308fae1678f5711a76fb51e285d62b1eff626f45d63e
|
4
|
+
data.tar.gz: 6ac99cff446b3aea5ce4c0448c40ad1e665e5bab66482aefc566ade559c1fd13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e5279d03ea0277921d8d62fb669a495cf9943e1f12d09805dfa0cd9201e5c376a0e0419943703fc879fdd0198da0fc5047a01bd0e5cc311564b5d46db1fda05
|
7
|
+
data.tar.gz: 884c85c91878424bf12e0fedcd4846587322759f5d8201c3e1c5e3e977152f1fb26100d4e73eb33ff58112b0e4a103c1065624ae16c046f8e6a60f705243fae6
|
data/README.md
CHANGED
@@ -33,6 +33,11 @@ argument with my rebbutal of no substance
|
|
33
33
|
I'm not playing this map, it's imbalanced!
|
34
34
|
```
|
35
35
|
|
36
|
+
#### `!pinkman` - `Openra::IRCBot::Plugins::Pinkman`
|
37
|
+
```
|
38
|
+
ello boys
|
39
|
+
```
|
40
|
+
|
36
41
|
#### `!.1` - `Openra::IRCBot::Plugins::PointOne`
|
37
42
|
```
|
38
43
|
# Generates a random excuse, i.e.
|
@@ -49,6 +54,15 @@ rarararararara
|
|
49
54
|
RAGLHF!
|
50
55
|
```
|
51
56
|
|
57
|
+
#### `!weeman #{username}` - `Openra::IRCBot::Plugins::PointOne`
|
58
|
+
```
|
59
|
+
# Generates a random insult, i.e.
|
60
|
+
# !weeman Pinkman
|
61
|
+
Pinkman is a sheep shagging dick bandit
|
62
|
+
# !weeman
|
63
|
+
You are a whore loving piss gobbler
|
64
|
+
```
|
65
|
+
|
52
66
|
Example usage:
|
53
67
|
|
54
68
|
```ruby
|
@@ -67,9 +81,11 @@ bot = Openra::IRCBot.new do
|
|
67
81
|
Openra::IRCBot::Plugins::Happy,
|
68
82
|
Openra::IRCBot::Plugins::Na,
|
69
83
|
Openra::IRCBot::Plugins::Orb,
|
84
|
+
Openra::IRCBot::Plugins::Pinkman,
|
70
85
|
Openra::IRCBot::Plugins::PointOne,
|
71
86
|
Openra::IRCBot::Plugins::SoScared,
|
72
|
-
Openra::IRCBot::Plugins::Talix
|
87
|
+
Openra::IRCBot::Plugins::Talix,
|
88
|
+
Openra::IRCBot::Plugins::WeeMan
|
73
89
|
]
|
74
90
|
end
|
75
91
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
@@ -0,0 +1,26 @@
|
|
1
|
+
en:
|
2
|
+
wee_man:
|
3
|
+
prefix:
|
4
|
+
user: '%{user} is a'
|
5
|
+
anon: You are a
|
6
|
+
first:
|
7
|
+
- cock
|
8
|
+
- sheep
|
9
|
+
- shit
|
10
|
+
- whore
|
11
|
+
second:
|
12
|
+
- loving
|
13
|
+
- eating
|
14
|
+
- shagging
|
15
|
+
- milking
|
16
|
+
third:
|
17
|
+
- arse
|
18
|
+
- dick
|
19
|
+
- piss
|
20
|
+
- crack
|
21
|
+
- meth
|
22
|
+
fourth:
|
23
|
+
- bandit
|
24
|
+
- goblin
|
25
|
+
- gobbler
|
26
|
+
- chewer
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Openra
|
2
|
+
class IRCBot < Cinch::Bot
|
3
|
+
module Plugins
|
4
|
+
class WeeMan
|
5
|
+
include Cinch::Plugin
|
6
|
+
|
7
|
+
match /weeman\s?(.+)?$/
|
8
|
+
|
9
|
+
def execute(m, user)
|
10
|
+
m.reply <<-QUOTE.strip.gsub(/\s+/, ' ')
|
11
|
+
#{prefix(user)}
|
12
|
+
#{first.sample} #{second.sample} #{third.sample} #{fourth.sample}
|
13
|
+
QUOTE
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def first
|
19
|
+
@first ||= Openra::IRCBot.dict('wee_man.first')
|
20
|
+
end
|
21
|
+
|
22
|
+
def second
|
23
|
+
@second ||= Openra::IRCBot.dict('wee_man.second')
|
24
|
+
end
|
25
|
+
|
26
|
+
def third
|
27
|
+
@third ||= Openra::IRCBot.dict('wee_man.third')
|
28
|
+
end
|
29
|
+
|
30
|
+
def fourth
|
31
|
+
@fourth ||= Openra::IRCBot.dict('wee_man.fourth')
|
32
|
+
end
|
33
|
+
|
34
|
+
def prefix(user)
|
35
|
+
if user
|
36
|
+
prefix = Openra::IRCBot.dict('wee_man.prefix.user', user: user)
|
37
|
+
else
|
38
|
+
prefix = Openra::IRCBot.dict('wee_man.prefix.anon')
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -4,6 +4,8 @@ require 'openra/irc_bot/plugins/gatekeeper'
|
|
4
4
|
require 'openra/irc_bot/plugins/happy'
|
5
5
|
require 'openra/irc_bot/plugins/na'
|
6
6
|
require 'openra/irc_bot/plugins/orb'
|
7
|
+
require 'openra/irc_bot/plugins/pinkman'
|
7
8
|
require 'openra/irc_bot/plugins/point_one'
|
8
9
|
require 'openra/irc_bot/plugins/so_scared'
|
9
10
|
require 'openra/irc_bot/plugins/talix'
|
11
|
+
require 'openra/irc_bot/plugins/wee_man'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openra-irc_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenRA Community
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- Rakefile
|
95
95
|
- VERSION
|
96
96
|
- config/dictionaries/point_one.yml
|
97
|
+
- config/dictionaries/wee_man.yml
|
97
98
|
- lib/openra-irc_bot.rb
|
98
99
|
- lib/openra/irc_bot.rb
|
99
100
|
- lib/openra/irc_bot/dictionary.rb
|
@@ -104,9 +105,11 @@ files:
|
|
104
105
|
- lib/openra/irc_bot/plugins/happy.rb
|
105
106
|
- lib/openra/irc_bot/plugins/na.rb
|
106
107
|
- lib/openra/irc_bot/plugins/orb.rb
|
108
|
+
- lib/openra/irc_bot/plugins/pinkman.rb
|
107
109
|
- lib/openra/irc_bot/plugins/point_one.rb
|
108
110
|
- lib/openra/irc_bot/plugins/so_scared.rb
|
109
111
|
- lib/openra/irc_bot/plugins/talix.rb
|
112
|
+
- lib/openra/irc_bot/plugins/wee_man.rb
|
110
113
|
- lib/openra/irc_bot/version.rb
|
111
114
|
- openra-irc_bot.gemspec
|
112
115
|
homepage: https://github.com/openra-community/openra-irc_bot
|