kag-gather 1.5.2 → 1.5.3

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDI0ODBmNjhhNDY0OWFjN2Y3MTdhYTQ2NmEzMTJiY2NiMjljY2Q5NQ==
4
+ OWM5YzRkYmEwMTIzYzAwYmQwZWRjNDgxNmI4NmJlYzUyZWFmZWIyMw==
5
5
  data.tar.gz: !binary |-
6
- YThhMWJkM2Q1ZTk2YWNiZWZkNmVlYzQyY2E4NzA4MWQ4OTFkYjY1ZQ==
6
+ NjRhYTkwMmNhNDM1MWRlZGY3ZjZkNmUxYmNhZWJlZDM3NjhhNmI0Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGMwNTUwNjBhOGU5ZTkzOGEwODg4MTE3MDM1MDFhZmJiY2U0MDExODIxNjNj
10
- Y2UwOTEyMmRjODJhNWQ3ZTE4NTRiODllMGI0OTlkYTU5NGEwN2E1ODYyYmQ4
11
- YzYwYzZmZWQ3ZTU5NmNkMzBmYjc5NDBhYzZiOTdhMTM3M2Q3N2E=
9
+ ZGZiMzQ5MDUwZTgzYzEyOTkzNTg0MTg3ODdhY2NjNmRmYmYzYzJhZDhlZDcy
10
+ MGZmMTVhYjcxNTdkNmMxOGViZmE4ZjM0OGI0MzY3YmViOWVkNWNkNzFmMTYz
11
+ ODZhOTliMjYzNTVmNDRjOWNjN2FlZWZjNWEyZjQwMDQwMGI2ZGE=
12
12
  data.tar.gz: !binary |-
13
- YzUwMzQxNThiNmI5NjdlODUxZjZlMzA4OTcxOTIyN2MwMDRiMzE2ZWYzOWRh
14
- MThkMzNjZmNiYzQxNzg2YzBkYTM4M2NlN2FhYTA4ZjI3OTUyZTE1YWRmM2Uw
15
- ZmJjZDdmZTZjZjkyMjZmYjZiYmUzNWRlMWQ5YzcyZTcyOTZmOTY=
13
+ MDFiOWZmMzgzYWI5MGVmYzMzYzY1M2UyOTA5ZWNlNTVhMDEwOTZiYTdmNDQy
14
+ OTQxOWQ1NjhiOWRiNDQxOTMzM2E2ZjExMDRjMDU3MjRkMjU3ZTYyNzc4OWZi
15
+ YjJjODZhYTMxNzQyM2VkOTVhMjVlNGI4NWNhMzM5ZDU1OTQxNDY=
@@ -9,6 +9,11 @@ module KAG
9
9
  include Cinch::Commands
10
10
  include KAG::Common
11
11
 
12
+ listen_to :connect, :method => :on_connect
13
+ def on_connect(m)
14
+ m.bot.set_mode("x")
15
+ end
16
+
12
17
  command :quit,{},
13
18
  summary: "Quit the bot",
14
19
  admin: true
@@ -65,6 +70,33 @@ module KAG
65
70
  m.reply "KAG Gather - version "+KAG::VERSION.to_s+" by splittingred - https://github.com/splittingred/kag-gather"
66
71
  end
67
72
  end
73
+
74
+ command :bot_mode,{mode: :string},
75
+ summary:"Set a mode on the bot",
76
+ admin:true
77
+ def bot_mode(m,mode)
78
+ if is_admin(m.user)
79
+ m.bot.set_mode(mode.to_s)
80
+ end
81
+ end
82
+
83
+ command :bot_join,{channel: :string,password: :string},
84
+ summary:"Tell the bot to join a channel",
85
+ admin:true
86
+ def bot_join(m,channel,password = nil)
87
+ if is_admin(m.user)
88
+ m.bot.join(channel,password)
89
+ end
90
+ end
91
+
92
+ command :bot_part,{channel: :string,reason: :string},
93
+ summary:"Tell the bot to part a channel",
94
+ admin:true
95
+ def bot_part(m,channel,reason = nil)
96
+ if is_admin(m.user)
97
+ m.bot.part(channel,reason)
98
+ end
99
+ end
68
100
  end
69
101
  end
70
102
  end
data/lib/kag/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module KAG
2
- VERSION = '1.5.2'
2
+ VERSION = '1.5.3'
3
3
  def self.version
4
4
  VERSION
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kag-gather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick