﻿CraftBot will be your customers' best friend for in-game crafting information. 

It provides other people an automated way to find out which crafting skills you currently have, and optionally which reagents are required for a particular recipe.

CraftBot is heavily modified from EnchantBot.

Features:
- Silently scans and store crafts whenever crafting windows are open (except Enchanting).
- Send reagent list to user easily via slash command.
- Dynamic event registration.

Authors: Krakhaan of Khaz'goroth

Translators: Put your name here by helping with the translation.

Slash Commands:
'/cb ( on | off )' - Toggles CraftBot on or off.
'/cb send <user> <number | craft link | unique keyword>' - Sends first matching craft link and reagent list to user. e.g. /cb send krakhaan mooncloth bag
'/cb sendr <user> <reagent link | name>' - Sends recipe that uses specified reagent to user. e.g. /cb sendr krakhaan bolt of mageweave
'/cb reset' - Clears crafting data for current character.
'/cb resetall' - Clears crafting data for all characters.
'/cb option' - Displays CraftBot options interface for limit, search and faction.
'/cb limit <number>' - Sets the maximum number of results returned for each search (defaults to 10). To not limit, set limit to 0.
'/cb search ( player | realm | xrealm )' - Toggles search mode where,
player - searches only current player data
realm - searches all characters' data in the current realm (default)
xrealm - searches all
'/cb faction ( on | off )' - Toggles if search includes all factions or current faction, only applicable in realm/xrealm modes, where,
on - searches only characters of the same faction (default)
off - searches any characters of any faction

Whisper Commands:
cbhelp - Replies with welcome message and provides simple guidance to making a query.
cbsearch ( [category] | [item link] | keyword | key phrase ) - Replies with matching results and their [x.y.z] indices.
cbreagents [x.y.z] - Replies with material list for item with matching indices.

Sample Conversation:
[someone]: cbhelp
[cb]: Welcome to cb's shoppe!
[cb]: Whisper me "cbsearch" followed by a part of the craft's name/desc/category (stew, felcloth, iron, consumable) to browse e.g. "cbsearch felcloth"
[someone]: cbsearch [Mooncloth]
[cb]: [1.2.3] [Mooncloth]
[cb]: Whisper me "cbreagents <number>" e.g. "cbreagents 1.2.3"!
[someone]: cbreagents 1.2.3
[cb]: Reagents for [Mooncloth]:
[cb]:  2 x [Felcloth]
[someone]: cbsearch bag
[cb]: [1.2.110] [Mooncloth Bag]
[cb]: [1.2.111] [Runecloth Bag]
[cb]: [1.2.112] [Mageweave Bag]
[cb]: Whisper me "cbreagents <number>" e.g. "cbreagents 1.2.3"!
[someone]: cbsearch rare
[cb]: [1.2.210] [Rare Item 1]
[cb]: [1.2.211] [Rare Item 2]
[cb]: [1.2.212] [Rare Item 3]
[cb]: Whisper me "cbreagents <number>" e.g. "cbreagents 1.2.3"!
[someone]: WoW Amazing mod you have there!

Optional dependencies:
None at the moment.

Version History:
1.0.6
- Minor code optimizations
- Updated code, search and faction options now affects all searches i.e. /cb send, /cb sendr, cbsearch, cbreagents
- Added options interface and slash command
- Updated readme.txt
- Updated localization.lua
- Fixed bug where craft items' description were not captured

1.0.5
- Added configurable maximum number of results
- Added reset of data
- Added sending of recipe that uses a specific reagent
- Added handling of weapon and armor item links in ebsearch queries e.g. cbsearch [Mooncloth Bag]

1.0.4
- Added faction and category information filtering
- Fixed bug for not scanning when it should
- Minor code optimizations

1.0.3
- Removed status text during scans
- Added search modes: player, realm, xrealm
- Changed custom trim function to lua function
- Minor code optimizations

1.0.2
- Added code to prevent multiple concurrent scans within CraftBot

1.0.1
- Added /cb send command that was erronously omitted
- Minor code revisions
- Fixed misc bugs
- Added trimming of whitespaces on queries, fix for 'cbsearch  ' queries

1.0
- Initial Release