botemon 0.4 → 0.4.1
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 +8 -8
- data/bin/botemon +4 -14
- data/lib/botemon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjQzYmM4Yzk4MmVmN2FiNjA1MzdhZmQ0NzU2MWQzN2MwNmI3YTAyNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2JjNmU0NmQ5ZjVhMzQyNzk4ZWQyMjI3YmUzYmU2MzZhMTdlZDQ5ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2U3ZTliZjRmMzdlYWU1NDk2NTg4NGVhNTMzMTEwOWI4ZGNjMDU3NDYyMjk5
|
10
|
+
ZThjNWI3MTFjNWM3MWJlNmRhMWYyZjMwNDE3YWNmYTgxNTczNDA1ZDM5MDQz
|
11
|
+
ZDBhOTliMWZmNzRjNjYzZTkzYjFhMTVhMmZhOWYyMjJiZWIxYzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjI2YWQ0MGM3YzZhNjEyNzI5YjcxMDY0MDVhMmMwNDI1ZDAzNDM0ZDJhMTQ5
|
14
|
+
OWQ0ZmQ1ZGVhNTNjMzBiOGZiMmE5NjgxNGFmMjA1YzFjNjg3OTU0ZTAwZDZi
|
15
|
+
ODk1ZDJhMTUwYTJkNTQyNWNjNDFiMjdhNDZiNzg5ZjY0MzNlMjA=
|
data/bin/botemon
CHANGED
@@ -48,33 +48,23 @@ Cinch::Bot.new {
|
|
48
48
|
name = Pokedex.id2name(name) if name.numeric?
|
49
49
|
|
50
50
|
pokemon = Pokedex.get name, @storage
|
51
|
-
m.reply pokemon ? "#{pokemon.to_s}\n#{pokemon.url}".split("\n").map { |l| Format(:red, l) }.join("\n") : 'Pokémon not found.'
|
51
|
+
m.reply pokemon ? "#{pokemon.to_s}\n#{pokemon.url}".split("\n").map { |l| Format(:red, l) }.join("\n") : Format(:red, 'Pokémon not found.')
|
52
52
|
end
|
53
53
|
|
54
54
|
on :message, /^ability (.+)/ do |m, name|
|
55
55
|
ability = Abilitydex.get name
|
56
|
-
|
57
|
-
m.reply Format(:red, "#{ability.to_s.split("\n").map { |l| Format(:red, l) }.join("\n")}")
|
58
|
-
else
|
59
|
-
m.reply Format(:red, 'Ability not found.')
|
60
|
-
end
|
56
|
+
m.reply ability ? "#{ability.to_s}\n#{ability.url}".split("\n").map { |l| Format(:red, l) }.join("\n") : Format(:red, 'Ability not found.')
|
61
57
|
end
|
62
58
|
|
63
59
|
on :message, /^move (.+)/ do |m, name|
|
64
|
-
name = Pokedex.id2name(name) if name.numeric?
|
65
|
-
|
60
|
+
name = Pokedex.id2name(name) if name.numeric?
|
66
61
|
|
67
62
|
move = Movedex.get name
|
68
|
-
|
69
|
-
m.reply Format(:red, move.to_s.split("\n").map { |l| Format(:red, l) }.join("\n"))
|
70
|
-
else
|
71
|
-
m.reply Format(:red, 'Move not found.')
|
72
|
-
end
|
63
|
+
m.reply move ? "#{move.to_s}\n#{move.url}".split("\n").map { |l| Format(:red, l) }.join("\n") : Format(:red, 'Move not found.')
|
73
64
|
end
|
74
65
|
|
75
66
|
on :message, /^moveset (.+) (.+)/ do |m, name, tier|
|
76
67
|
name = Pokedex.id2name(name) if name.numeric?
|
77
|
-
|
78
68
|
|
79
69
|
movesets = Movesetdex.get name, tier
|
80
70
|
if movesets != nil || movesets.any?
|
data/lib/botemon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: botemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Capuano
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - ! '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description: IRC bot for
|
83
|
+
description: IRC bot for pokéfag with (Poké|Ability|Move|Moveset)dex and a trivia
|
84
84
|
game.
|
85
85
|
email: webmaster@giovannicapuano.net
|
86
86
|
executables:
|