Your addon identifier in RiftAddon.toc is Wrytch_it, but you reference it as a WrytchIt in your addon (:SetTexure()), but Wrytch_It in the Event handlers.
These all need to be consistent.
One thing you can do to make life easier.
At the very top of your .lua files, put :
local addon, shareddata = ...
Then, you can refer to the addon using addon.identifier :
closeButton:SetTexture(addon.identifier, "Textures/close.png")
table.insert(Command.Slash.Register("wrytchit"), {showWrytchIt, addon.identifier, "Slash command"})
|