Skip to content

Commit

Permalink
✨ Added the possibility to add an item via chat command
Browse files Browse the repository at this point in the history
  • Loading branch information
AssisrMatheus committed Sep 18, 2019
1 parent 50f87f7 commit 1eebb54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TodoChecklister.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: TodoChecklister
## Author: Matheus Assis Rios (github.com/AssisrMatheus)
## Notes: I have bad memory so I made this. A todolist/checklist AddOn for World of Warcraft.
## Version: 1.1.3
## Version: 1.1.4
## DefaultState: enabled
## SavedVariables: TodoChecklisterDB, TodoChecklisterMapIcon

Expand Down
7 changes: 6 additions & 1 deletion chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ Chat.commands = {
["tg"] = function()
core.TodoChecklisterFrame:Toggle()
end,

["add"] = function(...)
core.TodoChecklisterFrame:AddItem(tostringall(...))
end,

["help"] = function()
print(" ");
Chat:Print("List of slash commands:")
Chat:Print("|cff00cc66/todo tg|r - Toggle todo window");
Chat:Print("|cff00cc66/todo tg|r - Toggle todo window");
Chat:Print("|cff00cc66/todo add|r {message} - Adds a message from chat");
print(" ");
end,

Expand Down

0 comments on commit 1eebb54

Please sign in to comment.