Files
aux-addon-ClassicAPI/slash.lua
T
Manuel Simon Hirsig 31a8618967 added back localization
2016-01-18 03:29:28 +01:00

21 lines
790 B
Lua

SLASH_AUX1 = '/aux'
function SlashCmdList.AUX(parameter)
if parameter == 'scan' then
Aux.history_frame.start_scan()
elseif parameter == 'clear snapshot' then
Aux.persistence.load_dataset().snapshot = {}
Aux.log('Snapshot cleared.')
elseif parameter == 'clear database' then
aux_database = {}
Aux.log('Database cleared.')
elseif parameter == 'clear' then
aux_database = {}
Aux.persistence.load_dataset().snapshot = {}
Aux.log('Snapshot and database cleared.')
elseif parameter == 'generate item cache' then
Aux.static.generate_cache()
elseif parameter == 'delete item cache' then
aux_auctionable_items = nil
Aux.log('Item cache deleted; falling back to the default.')
end
end