From 0e308cf5a11bb3ec53524e0282f6f5f629f2f4b8 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 5 Apr 2026 02:39:10 -0700 Subject: [PATCH] chore: remove HelloWorld test addon --- .../AddOns/HelloWorld/HelloWorld.lua | 36 ------------------- .../AddOns/HelloWorld/HelloWorld.toc | 5 --- 2 files changed, 41 deletions(-) delete mode 100644 Data/interface/AddOns/HelloWorld/HelloWorld.lua delete mode 100644 Data/interface/AddOns/HelloWorld/HelloWorld.toc diff --git a/Data/interface/AddOns/HelloWorld/HelloWorld.lua b/Data/interface/AddOns/HelloWorld/HelloWorld.lua deleted file mode 100644 index 5ee38fd6..00000000 --- a/Data/interface/AddOns/HelloWorld/HelloWorld.lua +++ /dev/null @@ -1,36 +0,0 @@ --- HelloWorld addon — demonstrates the WoWee addon system - --- Initialize saved variables (persisted across sessions) -if not HelloWorldDB then - HelloWorldDB = { loginCount = 0 } -end -HelloWorldDB.loginCount = (HelloWorldDB.loginCount or 0) + 1 - --- Create a frame and register for events (standard WoW addon pattern) -local f = CreateFrame("Frame", "HelloWorldFrame") -f:RegisterEvent("PLAYER_ENTERING_WORLD") -f:RegisterEvent("CHAT_MSG_SAY") - -f:SetScript("OnEvent", function(self, event, ...) - if event == "PLAYER_ENTERING_WORLD" then - local name = UnitName("player") - local level = UnitLevel("player") - print("|cff00ff00[HelloWorld]|r Welcome, " .. name .. "! (Level " .. level .. ")") - print("|cff00ff00[HelloWorld]|r Login count: " .. HelloWorldDB.loginCount) - elseif event == "CHAT_MSG_SAY" then - local msg, sender = ... - if msg and sender then - print("|cff00ff00[HelloWorld]|r " .. sender .. " said: " .. msg) - end - end -end) - --- Register a custom slash command -SLASH_HELLOWORLD1 = "/hello" -SLASH_HELLOWORLD2 = "/hw" -SlashCmdList["HELLOWORLD"] = function(args) - print("|cff00ff00[HelloWorld]|r Hello! " .. (args ~= "" and args or "Type /hello ")) - print("|cff00ff00[HelloWorld]|r Sessions: " .. HelloWorldDB.loginCount) -end - -print("|cff00ff00[HelloWorld]|r Addon loaded. Type /hello to test.") diff --git a/Data/interface/AddOns/HelloWorld/HelloWorld.toc b/Data/interface/AddOns/HelloWorld/HelloWorld.toc deleted file mode 100644 index f50ef105..00000000 --- a/Data/interface/AddOns/HelloWorld/HelloWorld.toc +++ /dev/null @@ -1,5 +0,0 @@ -## Interface: 30300 -## Title: Hello World -## Notes: Test addon for the WoWee addon system -## SavedVariables: HelloWorldDB -HelloWorld.lua