Class: Jah::Admin

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/jah/commands/admin.rb

Constant Summary

Constants included from Command

Command::COMM

Class Method Summary collapse

Methods included from Command

find, included

Class Method Details

.create_group(name) ⇒ Object



33
34
35
# File 'lib/jah/commands/admin.rb', line 33

def create_group(name)

end

.drop_user(user) ⇒ Object



23
24
25
# File 'lib/jah/commands/admin.rb', line 23

def drop_user(user)
  puts "DROP..."
end

.get_rosterObject



13
14
15
16
17
18
19
20
21
# File 'lib/jah/commands/admin.rb', line 13

def get_roster
  out = ""
  client.roster.grouped.each do |group, items|
    out << "#{'*'*3} #{group || 'Ungrouped'} #{'*'*3}\n"
    items.each { |item| out << "- #{item.name} (#{item.jid})\n" }
    out << "\n"
  end
  out
end

.join_groupObject



27
28
# File 'lib/jah/commands/admin.rb', line 27

def join_group()
end