Skip to content

There should be some documentation on how to use tags #12

@treejadey

Description

@treejadey

I tried to figure out how to get the display-nametag to use in a command, and there was not a single line of documentation on how to access the tags.

I gave the bot the ["tags", "membership", "commands"] capabilities, and attempted to get the display-name tag like so

  def handle_message("k!" <> command, sender, chat, tags) do
    case command do

      "test123" ->
        say(chat, "#{tags["display-name"]}, test123")

      _ ->
        say(chat, "unrecognized command")
    end
  end

However, it did not work. I tried putting the tags from the handle message into a debug line, and it did not give me any.
At this point, I'm not sure if I'm in the wrong here, or the library.

Please send help, thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions