Class: Twitter::User

Inherits:
Object
  • Object
show all
Defined in:
lib/twittbot/gem_ext/twitter/user.rb

Instance Method Summary collapse

Instance Method Details

#admin?Boolean

Returns whether the current user is a botadmin.

Returns:

  • (Boolean)

    whether the current user is a botadmin



4
5
6
7
# File 'lib/twittbot/gem_ext/twitter/user.rb', line 4

def admin?
  return false if $bot.nil? or $bot[:config].nil?
  $bot[:config][:admins].include? self.id
end