boty 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/boty/version.rb +1 -1
- data/locale/en.yml +2 -2
- data/template/project/bot.tt +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0749389ac8167b5c06f3ee78ec7d4c19808ac002
|
4
|
+
data.tar.gz: b325acd68074482902b5c7a4ff07d24036e9dfc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de267e986d1510895eac1a16cd1ba3c573b040773e0a8cf81606baae5eb68f3a30583910a2ae232813c791a73bbd033fbdfcba57791c9c9d79f4990020d1768e
|
7
|
+
data.tar.gz: ea8eb6e86724a64586a32c39ffcc0149c04c650fbec1585775214302b00dcf6e6881ecab470df679e33bad96baf4300bd76da6c4291a48152a047dff6e4c8842
|
data/Gemfile.lock
CHANGED
data/lib/boty/version.rb
CHANGED
data/locale/en.yml
CHANGED
@@ -4,7 +4,7 @@ en:
|
|
4
4
|
hello: "Ohay <@%{user_name}>! I'm here, that's for sure."
|
5
5
|
scripts:
|
6
6
|
knows: "List all the commands known by this bot."
|
7
|
-
|
8
|
-
|
7
|
+
pug_me: "Send some nice pug in the channel."
|
8
|
+
pug_bomb: "Send X pugs in the channel."
|
9
9
|
remember: "Instructs %{name} about something happening with the user."
|
10
10
|
about: "Retrieves information stored in the brain section :user for \"julian\"."
|
data/template/project/bot.tt
CHANGED
@@ -6,7 +6,7 @@ Boty.locale = ARGV.pop || :en
|
|
6
6
|
session = Boty::Session.new
|
7
7
|
session.start do |bot|
|
8
8
|
bot.desc I18n.t "template.presence", bot_name: bot.name
|
9
|
-
bot.message(
|
9
|
+
bot.message(/#{bot.name}/i) do |message|
|
10
10
|
next if message.from? self
|
11
11
|
say I18n.t "template.hello", user_name: message.user.name
|
12
12
|
end
|