UltrosBot / Ultros-contrib

Contributed plugins, protocols and extensions for Ultros
8 stars 5 forks source link

World of Warcraft Armoury Plugin. #10

Closed Zarthus closed 10 years ago

Zarthus commented 10 years ago

This plugin interacts with the World of Warcraft API and returns information about the specified character.

Syntax: .armoury [realm] [character name] [region = eu], also supports the American spelling .armory Realm: Any realm from any (supported) region. You'll have to specify the region if it is not Europe. Use dashes or underscores if your realm contains a space.
Character name: Name of your character, it can be any unicode name, but may not be longer than 18 characters, or contain digits.
Region: By default Europe, supported regions are eu (Europe), us (United States), sea (South East Asia), kr (Korea), tw (Taiwan), which should cover all of them.

An example message string by .armoury is:

(12:21:59) <Zarthus> .armoury stormrage zarthus
(12:22:00) <notultros> Zarthus is a level 90 female Death Knight on Stormrage with 5515 achievement points and 124 honourable kills. Armoury Profile: http://eu.battle.net/wow/en/character/stormrage/zarthus/simple

(12:22:01) <Zarthus> .armoury stormrage notzarthus
(12:22:02) <notultros> Character not found.

(12:22:05) <Zarthus> .armoury notrealm zarthus
(12:22:06) <notultros> Realm not found.

Visual Representation, Second Visual Representation

It's been tested, but I'm still very much new to Python, so there may be certain optimizations that I skipped over. I'm open to critique.