Update ChatTriggerContext.h

Added OpenItem chat command handling
This commit is contained in:
avirar
2024-10-03 12:40:15 +10:00
committed by GitHub
parent 53fca2b78b
commit c4d0f830a4

View File

@@ -16,6 +16,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
public:
ChatTriggerContext()
{
creators["open items"] = &ChatTriggerContext::open_items;
creators["quests"] = &ChatTriggerContext::quests;
creators["stats"] = &ChatTriggerContext::stats;
creators["leave"] = &ChatTriggerContext::leave;
@@ -128,6 +129,7 @@ public:
}
private:
static Trigger* open_items(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "open items"); }
static Trigger* ra(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "ra"); }
static Trigger* range(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "range"); }
static Trigger* flag(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "flag"); }