zetabot 2.0.9 → 2.1.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/lib/Zeta/plugins/fml.rb +4 -2
- data/lib/Zeta/plugins/urban.rb +1 -1
- data/lib/Zeta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3cf112f4395bf4c81f0738640cd8b31bed1ad8749e52cb8fe1a985386bc1b59
|
|
4
|
+
data.tar.gz: a184fedf9faab0a30c2be0af85845825f11f7b6ff1150534c7c0e0ed9a562fe0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04f5b194486be8bcf98da12942e7c065acaa2bcb3c8a37c0cc6ed984699a3423f9cfc46a50b81509f8b91b3006e42bdf1f1d44a696e0be56fb44d5b6203ba5b9
|
|
7
|
+
data.tar.gz: fa58eb2c5284d4926290a37fe8eecdf23237752d03e7c047804f52722b3c7ed1f825e82fdaad938b6669960e93b81e2cee0ed4ae9e5562af929e00ddc6ad4714
|
data/lib/Zeta/plugins/fml.rb
CHANGED
|
@@ -22,8 +22,10 @@ module Plugins
|
|
|
22
22
|
private
|
|
23
23
|
def fetch_random_fml
|
|
24
24
|
url = 'http://www.fmylife.com/random'
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
|
|
26
|
+
html_body = RestClient.get(url).body
|
|
27
|
+
|
|
28
|
+
fml_story = Nokogiri.HTML(html_body).at('article').text.strip
|
|
27
29
|
fml_story[/^Today, (.+) FML/]
|
|
28
30
|
rescue => e
|
|
29
31
|
e.message
|
data/lib/Zeta/plugins/urban.rb
CHANGED
|
@@ -9,7 +9,7 @@ module Plugins
|
|
|
9
9
|
|
|
10
10
|
set(
|
|
11
11
|
plugin_name: 'UrbanDictionary',
|
|
12
|
-
help: "Urban Dictionary -- Grabs a term from urbandictionary.com.\nUsage: `?
|
|
12
|
+
help: "Urban Dictionary -- Grabs a term from urbandictionary.com.\nUsage: `?ud <term>`; `?wotd`;"
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
match /urban (.*)/, method: :query
|
data/lib/Zeta/version.rb
CHANGED