class Twitter::User

Public Instance Methods

admin?() click to toggle source

@return [Boolean] whether the current user is a botadmin

# 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