JSPM

dota2guilds

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q34931F
  • License MIT

Get information about Dota2 guilds

Package Exports

  • dota2guilds

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dota2guilds) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

dota2guilds

Get information about Dota2 guilds

Installation

npm i dota2guilds

Usage

const dg = require('dota2guilds')

dg.getByID(115638, guild => {
    if( guild.error ) throw guild.error
    else {
        console.log(guild.data)
    }
})

dg.getByTag("L C", guild => {
    if( guild.error ) throw guild.error
    else {
        console.log(guild.data)
    }
})

Result object example

{
  guild_info: {
    guild_name: 'Loud Cowboys',   
    guild_tag: 'L C',
    created_timestamp: 1590500903,
    guild_language: 'ru',
    guild_flags: 0,
    guild_logo: '1028456111586489737',
    guild_region: 8,
    guild_chat_group_id: '13644205',
    guild_description: 'Фанаты жизни (нет)',
    default_chat_channel_id: '44549976',
    guild_primary_color: 'ECD247',
    guild_secondary_color: '676AC1',
    guild_pattern: 9,
    guild_refresh_time_offset: 101700,
    guild_required_rank_tier: 0,
    guild_motd_timestamp: 1590501323,
    guild_motd: 'Welcome to the club, buddy *slap sound*',
    guild_id: 115638
  },
  member_count: 23,
  event_points: [
    {
      event_id: 19,
      guild_points: 55620,
      guild_weekly_rank: 11297,
      guild_weekly_percentile: 81,
      guild_current_percentile: 80
    }
  ]
}